diff --git a/users/kat/base/vim/vimrc.nix b/users/kat/base/vim/vimrc.nix index dda715dc..0d3097aa 100644 --- a/users/kat/base/vim/vimrc.nix +++ b/users/kat/base/vim/vimrc.nix @@ -56,6 +56,9 @@ set relativenumber set completeopt=longest,menuone + command Spaces set expandtab + command Tabs set noexpandtab + inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : @@ -76,7 +79,7 @@ " Make auto-select the first completion item and notify coc.nvim to " format on enter, could be remapped by other vim plugin - inoremap pumvisible() ? coc#_select_confirm() + noremap pumvisible() ? coc#_select_confirm() \: "\u\\=coc#on_enter()\" " Use `[g` and `]g` to navigate diagnostics