fix nerdcommenter custom bindings
This commit is contained in:
parent
79a651d7f7
commit
e6f42b4bd1
2 changed files with 10 additions and 3 deletions
5
init.vim
5
init.vim
|
@ -15,6 +15,7 @@ Plug 'mfussenegger/nvim-lint'
|
||||||
"Plug 'dense-analysis/ale'
|
"Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
" various plugins
|
" various plugins
|
||||||
|
Plug 'L3MON4D3/LuaSnip', {'tag': 'v1.*'}
|
||||||
Plug 'lambdalisue/suda.vim'
|
Plug 'lambdalisue/suda.vim'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'akinsho/bufferline.nvim', { 'tag': 'v3.*' }
|
Plug 'akinsho/bufferline.nvim', { 'tag': 'v3.*' }
|
||||||
|
@ -64,8 +65,8 @@ nnoremap <leader>n :NvimTreeFocus<CR>
|
||||||
nnoremap <C-t> :NvimTreeToggle<CR>
|
nnoremap <C-t> :NvimTreeToggle<CR>
|
||||||
|
|
||||||
" nerdcommenter custom bindings
|
" nerdcommenter custom bindings
|
||||||
nmap <C-_> <plug>NERDCommenterToggle
|
nmap <c-/> <plug>NERDCommenterToggle
|
||||||
vmap <C-_> <plug>NERDCommenterToggle
|
vmap <c-/> <plug>NERDCommenterToggle
|
||||||
|
|
||||||
"theme configuration
|
"theme configuration
|
||||||
syntax enable
|
syntax enable
|
||||||
|
|
|
@ -42,6 +42,12 @@ codewindow.apply_default_keybinds()
|
||||||
local cmp = require'cmp'
|
local cmp = require'cmp'
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
|
snippet = {
|
||||||
|
-- REQUIRED - you must specify a snippet engine
|
||||||
|
expand = function(args)
|
||||||
|
require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
|
||||||
|
end,
|
||||||
|
},
|
||||||
window = {
|
window = {
|
||||||
-- completion = cmp.config.window.bordered(),
|
-- completion = cmp.config.window.bordered(),
|
||||||
-- documentation = cmp.config.window.bordered(),
|
-- documentation = cmp.config.window.bordered(),
|
||||||
|
|
Loading…
Reference in a new issue