Skip to content

Commit

Permalink
home-manager/neovim: move remaining extraConfig to extraLuaConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Nov 14, 2023
1 parent 7132e15 commit 05769d9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions home-manager/editor/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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', '<C-h>', [[<C-\><C-n><C-w>h]])
vim.keymap.set('t', '<C-j>', [[<C-\><C-n><C-w>j]])
Expand Down

0 comments on commit 05769d9

Please sign in to comment.