diff --git a/nix/modules/nixvim/home.nix b/nix/modules/nixvim/home.nix index 108c16e..58d21b8 100644 --- a/nix/modules/nixvim/home.nix +++ b/nix/modules/nixvim/home.nix @@ -52,11 +52,50 @@ in notify.enable = true; mini-cursorword.enable = true; # mini-statusline.enable = true; - lualine.enable = true; + lualine = { + enable = true; + settings = { + sections = { + lualine_a = [ "mode" ]; + lualine_b = [ + "branch" + "diff" + "diagnostics" + ]; + lualine_c = [ "filename" ]; + lualine_x = [ + "encoding" + "fileformat" + "filetype" + ]; + lualine_y = [ "lsp_status" ]; + lualine_z = [ "location" ]; + }; + inactive_sections = { + lualine_a = [ ]; + lualine_b = [ ]; + lualine_c = [ "filename" ]; + lualine_x = [ "location" ]; + lualine_y = [ ]; + lualine_z = [ ]; + }; + }; + }; web-devicons.enable = true; vim-dadbod-completion.enable = true; telescope.enable = true; lazygit.enable = true; + mini-indentscope = { + enable = true; + settings = { + draw = { + delay = 10; + }; + }; + }; + mini-files = { + enable = true; + }; trouble.enable = true; cmp = { enable = true; @@ -110,27 +149,13 @@ in }; }; }; - extraPlugins = - with pkgs; - [ - # vimPlugins.mini-completion - vimPlugins.mini-comment - vimPlugins.melange-nvim - vimPlugins.telescope-file-browser-nvim - vimPlugins.lsp-progress-nvim - ] - ++ [ - (pkgs.vimUtils.buildVimPlugin { - name = "telescope-tabs"; - doCheck = false; # i didnt figure out how to do deps so lmfao - src = pkgs.fetchFromGitHub { - owner = "LukasPietzschmann"; - repo = "telescope-tabs"; - rev = "777b1f630f3d6a12a2e71635a82581c988d6da2e"; - hash = "sha256-5NpH9+0ECrcKi8quPLpCHLSPTuzGETWtq4E+2jqUKio="; - }; - }) - ]; + extraPlugins = with pkgs; [ + # vimPlugins.mini-completion + vimPlugins.mini-comment + vimPlugins.melange-nvim + vimPlugins.telescope-file-browser-nvim + vimPlugins.lsp-progress-nvim + ]; opts = { number = true; bg = "dark"; @@ -157,26 +182,12 @@ in }; } { - action = "Telescope file_browser"; + action = ":lua MiniFiles.open()"; key = "fv"; options = { silent = true; }; } - { - action = "Telescope telescope-tabs list_tabs"; - key = "ft"; - options = { - silent = true; - }; - } - { - action = "tabnew"; - key = "tt"; - options = { - silent = true; - }; - } { action = "LazyGit"; key = "lg";