diff --git a/home-manager/machines/wsl/home.nix b/home-manager/machines/wsl/home.nix index 0d5792a..0b1b9b1 100644 --- a/home-manager/machines/wsl/home.nix +++ b/home-manager/machines/wsl/home.nix @@ -21,6 +21,7 @@ { imports = [ ../../modules/programs/shell.nix + ../../modules/programs/neovim.nix ]; home.username = "nathan"; home.homeDirectory = "/home/nathan/"; diff --git a/home-manager/modules/programs/neovim.nix b/home-manager/modules/programs/neovim.nix new file mode 100644 index 0000000..47bb213 --- /dev/null +++ b/home-manager/modules/programs/neovim.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + programs.neovim = { + enable = true; + viAlias = true; + vimAlias = true; + plugins = with pkgs.vimPlugins; [ + vim-nix + airline + { + plugin = onehalf; + config = '' + colorscheme onehalfdark + let g:airline_theme='onehalflight' + ''; + } + vim-autoformat + vim-surround + ]; + extraLuaConfig = '' + vim.o.termguicolors = true + ''; + withPython3 = true; + }; +}