Plug 'zbirenbaum/copilot.lua'
" execute 'source' fnameescape(expand('<sfile>:p:h') . '/opt/avante.vim')
+ " execute 'source' fnameescape(expand('<sfile>:p:h') . '/opt/leetcode.vim')
call plug#end()
lua require('plugin-config/avante')
endif
+"----------------------
+" leetcode.nvim setting
+"----------------------
+if has_key(plugs, 'leetcode.nvim')
+ lua require('plugin-config/leetcode')
+endif
+
nnoremap J :tabprevious<CR>
nnoremap K :tabnext<CR>
nnoremap <leader>J :tabmove -1<CR>
--- /dev/null
+require('leetcode').setup({
+ lang = "cpp",
+ injector = {
+ ["cpp"] = {
+ -- A function replaces the plugin's default C++ imports.
+ imports = function()
+ return {
+ "#include <iostream>",
+ "#include <string>",
+ "#include <vector>",
+ "using namespace std;",
+ }
+ end,
+ },
+ },
+ theme = {
+ ["normal"] = {
+ fg = "#EA4AAA",
+ },
+ },
+})
--- /dev/null
+" Source inside the plug#begin()/plug#end() block in init.vim.
+Plug 'nvim-telescope/telescope.nvim'
+Plug 'nvim-lua/plenary.nvim'
+Plug 'MunifTanjim/nui.nvim'
+Plug 'kawre/leetcode.nvim'