diff --git a/moduler/programs/nixvim/default.nix b/moduler/programs/nixvim/default.nix index 6718819..26c791c 100644 --- a/moduler/programs/nixvim/default.nix +++ b/moduler/programs/nixvim/default.nix @@ -37,7 +37,7 @@ with lib; telescope = true; treesitter = true; cmp = true; - lualine = true; + lualine = { }; }; }; }; @@ -56,10 +56,6 @@ with lib; }; clipboard.register = "unnamedplus"; - extraPlugins = with pkgs.vimPlugins; [ - plenary-nvim - ]; - globals.mapleader = " "; keymaps = [ @@ -240,7 +236,9 @@ with lib; lualine = { enable = true; settings = { - options.theme = "catppuccin"; + options.theme = { + __raw = "(function() local ok, cp = pcall(require, 'catppuccin.utils.lualine'); return ok and cp() or 'auto' end)()"; + }; tabline = { lualine_a = [ ]; lualine_b = [ ]; @@ -305,7 +303,25 @@ with lib; lazygit.enable = true; - telescope.enable = true; + telescope = { + enable = true; + settings = { + defaults = { + vimgrep_arguments = [ + "rg" + "--color=never" + "--no-heading" + "--with-filename" + "--line-number" + "--column" + "--smart-case" + "--hidden" + "--glob" + "!.git/*" + ]; + }; + }; + }; luasnip.enable = true; cmp = {