diff --git a/modules/nix/nvim/cmp.nix b/modules/nix/nvim/cmp.nix index 0ce1445..e54b2f9 100644 --- a/modules/nix/nvim/cmp.nix +++ b/modules/nix/nvim/cmp.nix @@ -14,20 +14,8 @@ "" = "cmp.mapping.close()"; "" = "cmp.mapping.scroll_docs(4)"; "" = "cmp.mapping.confirm({ select = true })"; - "" = { - action = "cmp.mapping.select_prev_item()"; - modes = [ - "i" - "s" - ]; - }; - "" = { - action = "cmp.mapping.select_next_item()"; - modes = [ - "i" - "s" - ]; - }; + "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; + "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; }; }; }; diff --git a/modules/nix/nvim/opts.nix b/modules/nix/nvim/opts.nix index b8d83ad..09bcd70 100644 --- a/modules/nix/nvim/opts.nix +++ b/modules/nix/nvim/opts.nix @@ -19,7 +19,7 @@ vim.opt.autoindent = true vim.opt.smartindent = true vim.opt.softtabstop = 4 - vim.opt.numbers = true; + vim.opt.number = true; vim.cmd [[ cnoreabbrev W! w! cnoreabbrev Q! q!