From ef5de419fae7c47069d0fb4415626dbbfab33595 Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Wed, 27 Mar 2024 01:49:44 +0000 Subject: start neovim config --- home.nix | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index 20b94d2..8b843cc 100644 --- a/home.nix +++ b/home.nix @@ -23,7 +23,37 @@ ]; home.sessionVariables = { - EDITOR = "vim"; + EDITOR = "nvim"; + }; + + programs.neovim = { + enable = true; + + plugins = with pkgs.vimPlugins; [ + comment-nvim + + { + plugin = lualine-nvim; + type = "lua"; + config = "${builtins.readFile nvim/plugin/lualine.lua}"; + } + nvim-web-devicons + + { + plugin = gruvbox; + config = "colorscheme gruvbox"; + } + + { + plugin = nvim-lspconfig; + type = "lua"; + config = "${builtins.readFile nvim/plugin/lsp.lua}"; + } + ]; + + extraLuaConfig = '' + ${builtins.readFile nvim/options.lua } + ''; }; programs.home-manager.enable = true; -- cgit v1.2.3