fix nerdcommenter custom bindings

This commit is contained in:
Szwendacz99 2022-11-02 12:39:26 +01:00
parent 79a651d7f7
commit e6f42b4bd1
2 changed files with 10 additions and 3 deletions

View file

@ -15,6 +15,7 @@ Plug 'mfussenegger/nvim-lint'
"Plug 'dense-analysis/ale'
" various plugins
Plug 'L3MON4D3/LuaSnip', {'tag': 'v1.*'}
Plug 'lambdalisue/suda.vim'
Plug 'airblade/vim-gitgutter'
Plug 'akinsho/bufferline.nvim', { 'tag': 'v3.*' }
@ -64,8 +65,8 @@ nnoremap <leader>n :NvimTreeFocus<CR>
nnoremap <C-t> :NvimTreeToggle<CR>
" nerdcommenter custom bindings
nmap <C-_> <plug>NERDCommenterToggle
vmap <C-_> <plug>NERDCommenterToggle
nmap <c-/> <plug>NERDCommenterToggle
vmap <c-/> <plug>NERDCommenterToggle
"theme configuration
syntax enable

View file

@ -42,7 +42,13 @@ codewindow.apply_default_keybinds()
local cmp = require'cmp'
cmp.setup({
window = {
snippet = {
-- REQUIRED - you must specify a snippet engine
expand = function(args)
require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
end,
},
window = {
-- completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(),
},