diff --git a/home-manager/editor/neovim.nix b/home-manager/editor/neovim.nix index d84339e9..e33033e3 100644 --- a/home-manager/editor/neovim.nix +++ b/home-manager/editor/neovim.nix @@ -46,21 +46,14 @@ in vimAlias = true; vimdiffAlias = true; - extraConfig = /* vimscript */ '' - "" General config - " turn on omnicomplete - set omnifunc=syntaxcomplete#Complete - - " disable "How to disable mouse" menu - aunmenu PopUp.How-to\ disable\ mouse - aunmenu PopUp.-1- - ''; - extraLuaConfig = /* lua */ '' -- general config -- show line numbers vim.opt.number = true + -- turn on omnicomplete + vim.opt.omnifunc = "syntaxcomplete#Complete" + -- live substitutions as you type vim.opt.inccommand = 'nosplit' @@ -73,6 +66,10 @@ in -- threat words-with-dash as a word vim.opt.iskeyword:append { '-' } + -- disable "How to disable mouse" menu + vim.cmd.aunmenu { [[PopUp.How-to\ disable\ mouse]] } + vim.cmd.aunmenu { [[PopUp.-1-]] } + -- window movement mappings vim.keymap.set('t', '', [[h]]) vim.keymap.set('t', '', [[j]])