diff options
Diffstat (limited to '')
-rw-r--r-- | hm/nixvim/config.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hm/nixvim/config.nix b/hm/nixvim/config.nix index 99d003f..51ff108 100644 --- a/hm/nixvim/config.nix +++ b/hm/nixvim/config.nix @@ -55,6 +55,21 @@ pkgs: { key = "<Esc>"; action = "<cmd>noh<CR><Esc>"; } + { + mode = ["i"]; + key = "<A-Space>"; + action = '' + function() + local cmp = require('cmp'); + local luasnip = require('luasnip'); + + if cmp.visible() then + cmp.select_next_item() + end + end + ''; + lua = true; + } ]; extraPlugins = with pkgs.vimPlugins; [ vim-airline-themes |