From d94e4cef3b44c1ac1c436561c35707d846bf4489 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 28 Nov 2024 03:10:32 +0000 Subject: [PATCH] Neovim module --- home-manager/machines/wsl/home.nix | 1 + home-manager/modules/programs/neovim.nix | 31 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 home-manager/modules/programs/neovim.nix 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; + }; +}