diff options
Diffstat (limited to 'programs')
-rw-r--r-- | programs/init.vim | 13 | ||||
-rw-r--r-- | programs/neovim.nix | 8 |
2 files changed, 9 insertions, 12 deletions
diff --git a/programs/init.vim b/programs/init.vim index 0393912..4a822da 100644 --- a/programs/init.vim +++ b/programs/init.vim | |||
@@ -47,12 +47,6 @@ augroup fzfstatus | |||
47 | endif | 47 | endif |
48 | augroup END | 48 | augroup END |
49 | 49 | ||
50 | augroup completions | ||
51 | " Use completion-nvim in every buffer | ||
52 | autocmd! | ||
53 | autocmd BufEnter * lua require'completion'.on_attach() | ||
54 | augroup END | ||
55 | |||
56 | " general settings | 50 | " general settings |
57 | set nobackup | 51 | set nobackup |
58 | set nowritebackup | 52 | set nowritebackup |
@@ -96,7 +90,7 @@ set signcolumn=yes | |||
96 | set inccommand=split | 90 | set inccommand=split |
97 | set showmatch | 91 | set showmatch |
98 | set diffopt+=vertical | 92 | set diffopt+=vertical |
99 | set completeopt=menuone,noinsert,noselect | 93 | set completeopt=menu,menuone,noselect |
100 | set exrc | 94 | set exrc |
101 | 95 | ||
102 | let g:netrw_browsex_viewer= "xdg-open" | 96 | let g:netrw_browsex_viewer= "xdg-open" |
@@ -170,9 +164,6 @@ let g:tex_flavor = 'latex' | |||
170 | 164 | ||
171 | let g:elm_setup_keybindings = 0 | 165 | let g:elm_setup_keybindings = 0 |
172 | 166 | ||
173 | let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy', 'all'] | ||
174 | let g:completion_trigger_on_delete = 1 | ||
175 | |||
176 | sign define LspDiagnosticsSignError text=× texthl=LspDiagnosticsSignError linehl= numhl= | 167 | sign define LspDiagnosticsSignError text=× texthl=LspDiagnosticsSignError linehl= numhl= |
177 | sign define LspDiagnosticsSignWarning text=\! texthl=LspDiagnosticsSignWarning linehl= numhl= | 168 | sign define LspDiagnosticsSignWarning text=\! texthl=LspDiagnosticsSignWarning linehl= numhl= |
178 | sign define LspDiagnosticsSignInformation text=i texthl=LspDiagnosticsSignInformation linehl= numhl= | 169 | sign define LspDiagnosticsSignInformation text=i texthl=LspDiagnosticsSignInformation linehl= numhl= |
@@ -183,5 +174,5 @@ let g:user_emmet_leader_key='<C-X>' | |||
183 | lua << EOF | 174 | lua << EOF |
184 | require 'lsp' | 175 | require 'lsp' |
185 | require 'treesitter' | 176 | require 'treesitter' |
177 | require 'completions' | ||
186 | EOF | 178 | EOF |
187 | |||
diff --git a/programs/neovim.nix b/programs/neovim.nix index e4878b3..fc3cc85 100644 --- a/programs/neovim.nix +++ b/programs/neovim.nix | |||
@@ -22,7 +22,13 @@ | |||
22 | # neovim only | 22 | # neovim only |
23 | nvim-lspconfig | 23 | nvim-lspconfig |
24 | (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) | 24 | (nvim-treesitter.withPlugins (_: pkgs.tree-sitter.allGrammars)) |
25 | completion-nvim | 25 | nvim-cmp |
26 | |||
27 | # completion sources | ||
28 | cmp-nvim-lsp | ||
29 | cmp-buffer | ||
30 | cmp-path | ||
31 | cmp-cmdline | ||
26 | 32 | ||
27 | # tpope | 33 | # tpope |
28 | vim-surround | 34 | vim-surround |