diff --git a/modules/home-manager/nixvim.nix b/modules/home-manager/nixvim.nix index 52c42b3..d3bea3e 100644 --- a/modules/home-manager/nixvim.nix +++ b/modules/home-manager/nixvim.nix @@ -1,4 +1,4 @@ -{ ... }: { +{ pkgs, ... }: { programs.nixvim = { enable = true; viAlias = true; @@ -6,9 +6,10 @@ vimdiffAlias = true; defaultEditor = true; - colorscheme = "tokyonight"; colorschemes.tokyonight.enable = true; + globals.mapleader = " "; + opts = { number = true; relativenumber = true; @@ -74,5 +75,31 @@ options.desc = "Move focus to the lower window"; } ]; + + plugins.lz-n.enable = true; + + plugins.nvim-autopairs = { + enable = true; + lazyLoad = { + enable = true; + settings.event = "InsertEnter"; + }; + }; + + plugins.lualine = { + enable = true; + settings = { + options = { section_separators = ""; component_separators = ""; }; + sections = { + lualine_b = [ { __unkeyed-1 = "branch"; icon = ""; } ]; + lualine_c = [ "filename" ]; + lualine_x = [ "filetype" ]; + }; + }; + }; + + extraPlugins = with pkgs.vimPlugins; [ + vim-sleuth + ]; }; }