diff --git a/home/neovim.nix b/home/neovim.nix index b1231cf..04663d7 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -16,11 +16,25 @@ dropbar.enable = true; lspconfig.enable = true; guess-indent.enable = true; + gitsigns = { + enable = true; + settings = { + sign_priority = 15; + }; + }; oil.enable = true; - mini-statusline.enable = true; + trouble.enable = true; + web-devicons.enable = true; + lualine.enable = true; mini-pairs.enable = true; - mini-pick.enable = true; - mini-diff.enable = true; + snacks = { + enable = true; + settings = { + picker = { + ui_select = true; + }; + }; + }; mini-indentscope.enable = true; mini-surround.enable = true; ts-autotag.enable = true; @@ -116,19 +130,19 @@ key = "o"; } { - action = "lua require('mini.pick').builtin.files()"; + action = "lua require('snacks').picker.files()"; key = "f"; } { - action = "lua require('mini.pick').builtin.grep_live()"; - key = "g"; + action = "lua require('snacks').picker.grep()"; + key = "l"; } { - action = "lua require('mini.pick').builtin.help()"; + action = "lua require('snacks').picker.help()"; key = "h"; } { - action = "lua require('mini.pick').builtin.resume()"; + action = "lua require('snacks').picker.resume()"; key = "r"; } { @@ -148,7 +162,7 @@ key = "]d"; } { - action = "lua vim.diagnostic.setqflist()"; + action = "Trouble diagnostics"; key = "q"; } { @@ -181,7 +195,15 @@ } { action = "Neogit"; - key = "i"; + key = "go"; + } + { + action = "Gitsigns blame"; + key = "gb"; + } + { + action = "Gitsigns diffthis"; + key = "gd"; } ]; globals.mapleader = " "; @@ -193,7 +215,20 @@ swapfile = false; exrc = true; }; - colorschemes.catppuccin.enable = true; + colorschemes.catppuccin = { + enable = true; + settings = { + custom_highlights = { + __raw = '' + function(colors) + return { + LineNr = { fg = colors.subtext0 }, + } + end + ''; + }; + }; + }; clipboard.register = "unnamedplus"; userCommands = { CopyRelativePath = {