From 3730b40d25e8988d5b65ea0670530865f5055400 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Mon, 8 Aug 2022 22:22:33 +0200 Subject: [PATCH 1/3] [nvim] Fix faulty if statement --- nvim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 6277f37..ec3f835 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -14,7 +14,7 @@ else endif " Arrow key fix kanged from {{{ - if g:HELP_MY_ARROW_KEYS_ARE_BROKEN + if exists("g:HELP_MY_ARROW_KEYS_ARE_BROKEN") " the following simply creates an ambiguous mapping so vim fully " processes the escape sequence for terminal keys, see 'ttimeout' for a " rough explanation, this just forces it to work From b27bb07d9d271b398d6997602c50c2915f2a021c Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Mon, 8 Aug 2022 22:24:29 +0200 Subject: [PATCH 2/3] [nvim] Add new required coc keybinds --- nvim/plugin/keybinds.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nvim/plugin/keybinds.vim b/nvim/plugin/keybinds.vim index d970038..c8540af 100644 --- a/nvim/plugin/keybinds.vim +++ b/nvim/plugin/keybinds.vim @@ -1,5 +1,20 @@ nnoremap :NERDTreeToggle +" Completion {{{ + function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' + endfunction + + inoremap coc#pum#visible() ? coc#_select_confirm() : "\" + + inoremap + \ coc#pum#visible() ? coc#pum#next(1): + \ check_back_space() ? "\" : + \ coc#refresh() + inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" +" }}} + " Copy to clipboard register and paste from clipboard register {{{ " Taken from https://unix.stackexchange.com/a/23437 nnoremap "+y From 50793f84a9086f7d122cc655a3f34671b3f1faf3 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Mon, 8 Aug 2022 22:24:42 +0200 Subject: [PATCH 3/3] [nvim] Get rid of lisp plugin --- nvim/coc-languages/lisp.vim | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 nvim/coc-languages/lisp.vim diff --git a/nvim/coc-languages/lisp.vim b/nvim/coc-languages/lisp.vim deleted file mode 100644 index 919a2eb..0000000 --- a/nvim/coc-languages/lisp.vim +++ /dev/null @@ -1,2 +0,0 @@ -call extend(g:dotfiles_coc_extensions, {'coc-cl': 1}) -call extend(g:dotfiles_coc_filetypes, {'lsp': 1})