From d2f964c74291d7a31e8c8e6f0150b5b9bd4e33b7 Mon Sep 17 00:00:00 2001 From: Alyxia Date: Sun, 25 Sep 2022 11:21:30 +0200 Subject: [PATCH 1/2] [nvim] Fix some coc complaints --- nvim/plugin/keybinds.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/plugin/keybinds.vim b/nvim/plugin/keybinds.vim index c8540af..1dc5e02 100644 --- a/nvim/plugin/keybinds.vim +++ b/nvim/plugin/keybinds.vim @@ -6,6 +6,9 @@ nnoremap :NERDTreeToggle return !col || getline('.')[col - 1] =~ '\s' endfunction + nmap (coc-codeaction-line) + xmap (coc-codeaction-selected) + inoremap coc#pum#visible() ? coc#_select_confirm() : "\" inoremap From 4ca270760bf2c3e7374bbc25dbff3ff2b3fb892a Mon Sep 17 00:00:00 2001 From: Alyxia Date: Sun, 25 Sep 2022 11:21:55 +0200 Subject: [PATCH 2/2] [nvim] Add TeX plugins --- nvim/coc-languages/tex.vim | 2 ++ nvim/dotfiles/plugins-list.vim | 1 + 2 files changed, 3 insertions(+) create mode 100644 nvim/coc-languages/tex.vim diff --git a/nvim/coc-languages/tex.vim b/nvim/coc-languages/tex.vim new file mode 100644 index 0000000..a64c73e --- /dev/null +++ b/nvim/coc-languages/tex.vim @@ -0,0 +1,2 @@ +call extend(g:dotfiles_coc_extensions, {'coc-vimtex': 1}) +call extend(g:dotfiles_coc_filetypes, {'tex': 1, 'cls': 1}) diff --git a/nvim/dotfiles/plugins-list.vim b/nvim/dotfiles/plugins-list.vim index 93a1b3b..712a1e5 100644 --- a/nvim/dotfiles/plugins-list.vim +++ b/nvim/dotfiles/plugins-list.vim @@ -34,6 +34,7 @@ let s:plug = funcref('dotfiles#plugman#register') " }}} endif endif + call s:plug('lervag/vimtex') call s:plug('stevearc/vim-arduino') call s:plug('luke-gru/vim-riml') call s:plug('bhurlow/vim-parinfer')