From 0091f8389ea56b94d8bee890278f453b047e357f Mon Sep 17 00:00:00 2001 From: Kabbone Date: Mon, 19 Sep 2022 17:47:24 +0200 Subject: [PATCH] fix neovim config --- modules/editors/nvim/default.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/modules/editors/nvim/default.nix b/modules/editors/nvim/default.nix index bb03736..fe6816c 100644 --- a/modules/editors/nvim/default.nix +++ b/modules/editors/nvim/default.nix @@ -10,6 +10,7 @@ enable = true; viAlias = true; vimAlias = true; + defaultEditor = true; plugins = with pkgs.vimPlugins; [ @@ -23,28 +24,29 @@ vim-gitgutter # See uncommitted changes of file :GitGutterEnable # File Tree - nerdtree # File Manager - set in extraConfig to F6 + nerdtree # File Manager - set in extraConfig to F6 # Customization wombat256-vim # Color scheme for lightline srcery-vim # Color scheme for text lightline-vim # Info bar at bottom - indent-blankline-nvim # Indentation lines + indent-blankline-nvim # Indentation lines ]; - extraConfig = '' - syntax enable " Syntax highlighting - colorscheme srcery " Color scheme text - let g:lightline = { - \ 'colorscheme': 'wombat', - \ } " Color scheme lightline - highlight Comment cterm=italic gui=italic " Comments become italic - hi Normal guibg=NONE ctermbg=NONE " Remove background, better for personal theme - - set number " Set numbers - nmap :NERDTreeToggle " F6 opens NERDTree - ''; + configure = { + customRC = '' + syntax enable " Syntax highlighting + colorscheme srcery " Color scheme text + let g:lightline = { + \ 'colorscheme': 'wombat', + \ } " Color scheme lightline + highlight Comment cterm=italic gui=italic " Comments become italic + hi Normal guibg=NONE ctermbg=NONE " Remove background, better for personal theme + + set number " Set numbers + nmap :NERDTreeToggle " F6 opens NERDTree + ''; }; }; }