diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix index 9b6a3c59..ba744b98 100644 --- a/home-manager/common/software/cli/nixvim.nix +++ b/home-manager/common/software/cli/nixvim.nix @@ -4,6 +4,9 @@ programs.nixvim = { plugins = { lsp-lines.enable = true; + lsp-lines.currentLine = true; + lspsaga.enable = true; + lspsaga.lightbulb.enable = false; crates-nvim.enable = true; lsp = { enable = true; diff --git a/home-manager/common/software/cli/nixvim/base.nix b/home-manager/common/software/cli/nixvim/base.nix index 14fd22f9..5b2a013f 100644 --- a/home-manager/common/software/cli/nixvim/base.nix +++ b/home-manager/common/software/cli/nixvim/base.nix @@ -58,55 +58,68 @@ # Normal Mode # NVimTree - (nmap "n" "" // desc "[N]vimTree") + (nmap "n" "" // desc "[N]vimTree") (nmap "nf" ":NvimTreeFocus" // desc "[F]ocus NvimTree") (nmap "nt" ":NvimTreeToggle" // desc "[T]oggle NvimTree") (nmap "ns" ":NvimTreeFindFile"// desc "[S]earch NvimTree") (nmap "nc" ":NvimTreeClose" // desc "[C]lose NvimTree") (nmap "nr" ":NvimTreeRefresh" // desc "[R]efresh NvimTree") + (nmap "nT" ":NoiceTelescope" // desc "Noice [T]elescope") # ToggleTerm - (nmap "Tt" ":ToggleTerm" // desc "[T]oggle Terminal") - (nmap "Ts" ":TermSelect" // desc "[S]elect a terminal") + (nmap "Tt" ":ToggleTerm" // desc "[T]oggle Terminal") + (nmap "Ts" ":TermSelect" // desc "[S]elect a terminal") # Fugitive - (nmap "gc" ":Git cam \"" // desc "[C]ommit" ) - (nmap "gp" ":Git push" // desc "Git [p]ush") - (nmap "gP" ":Git pull" // desc "[P]ull") - (nmap "ga" ":Git add " // desc "[A]dd file...") - (nmap "gb" ":Git blame" // desc "[B]lame") - (nmap "gd" ":Git diff" // desc "[D]iff") + (nmap "gc" ":Git cam \"" // desc "[C]ommit" ) + (nmap "gp" ":Git push" // desc "Git [p]ush") + (nmap "gP" ":Git pull" // desc "[P]ull") + (nmap "ga" ":Git add " // desc "[A]dd file...") + (nmap "gb" ":Git blame" // desc "[B]lame") + (nmap "gd" ":Git diff" // desc "[D]iff") # Trouble - (nmap "tf" ":Trouble" // desc "[F]ocus") - (nmap "tt" ":TroubleToggle" // desc "[T]oggle") - (nmap "tc" ":TroubleClose" // desc "[C]lose") + (nmap "tf" ":Trouble" // desc "[F]ocus") + (nmap "tt" ":TroubleToggle" // desc "[T]oggle") + (nmap "tc" ":TroubleClose" // desc "[C]lose") # Navbuddy - (nmap "N" ":Navbuddy" // desc "[N]avbuddy") + (nmap "N" ":Navbuddy" // desc "[N]avbuddy") # Window Management - (nmap "wh" ":wincmd h" // desc "Move left") - (nmap "wl" ":wincmd l" // desc "Move right") - (nmap "wj" ":wincmd j" // desc "Move down") - (nmap "wk" ":wincmd k" // desc "Move up") - (nmap "wn" ":wincmd w" // desc "Move to next") - (nmap "wN" ":wincmd p" // desc "Move to previous") - (nmap "wc" ":wincmd c" // desc "[C]lose active window") - (nmap "woh" ":wincmd n" // desc "Open [H]orizontal window") - (nmap "wov" ":wincmd v" // desc "Open [V]ertical window") + (nmap "wh" ":wincmd h" // desc "Move left") + (nmap "wl" ":wincmd l" // desc "Move right") + (nmap "wj" ":wincmd j" // desc "Move down") + (nmap "wk" ":wincmd k" // desc "Move up") + (nmap "wn" ":wincmd w" // desc "Move to next") + (nmap "wN" ":wincmd p" // desc "Move to previous") + (nmap "wc" ":wincmd c" // desc "[C]lose active window") + (nmap "woh" ":wincmd n" // desc "Open [H]orizontal window") + (nmap "wov" ":wincmd v" // desc "Open [V]ertical window") # resize window - (nmap "wrh" ":resize " // desc "Resize Horizontal") - (nmap "wrv" ":vertical resize " // desc "Resize Vertical") + (nmap "wrh" ":resize " // desc "Resize Horizontal") + (nmap "wrv" ":vertical resize " // desc "Resize Vertical") # Buffer Management - (nmap "bn" ":bnext" // desc "Next buffer") - (nmap "bN" ":bNext" // desc "Previous buffer") - (nmap "bc" ":bdelete" // desc "[c]lose buffer") - (nmap "bt" ":enew" // desc "New [T]ab") + (nmap "bn" ":bnext" // desc "Next buffer") + (nmap "bN" ":bNext" // desc "Previous buffer") + (nmap "bc" ":bdelete" // desc "[c]lose buffer") + (nmap "bt" ":enew" // desc "New [T]ab") # Multicursors - (nmap "ms" ":MCstart" // desc "[S]tart Multicorsor") - (nmap "mv" ":MCvisual" // desc "[V]isual Multicorsor") - (nmap "mc" ":MCclear" // desc "[C]lear Multicorsor") - (nmap "mu" ":MCunderCursor" // desc "Select [U]nder Corsor") - (nmap "mp" ":MCpattern" // desc "Select [P]attern") + (nmap "ms" ":MCstart" // desc "[S]tart Multicorsor") + (nmap "mv" ":MCvisual" // desc "[V]isual Multicorsor") + (nmap "mc" ":MCclear" // desc "[C]lear Multicorsor") + (nmap "mu" ":MCunderCursor" // desc "Select [U]nder Corsor") + (nmap "mp" ":MCpattern" // desc "Select [P]attern") ]; plugins = { + # Testing + noice = { + enable = true; + popupmenu.enabled = true; + }; + notify = { + enable = true; + topDown = true; + fps = 60; + stages = "slide"; + }; + # Git related # Gutter information for git modifications gitsigns.enable = true; @@ -193,7 +206,7 @@ "c" = "Colorscheme..."; "g" = "Git Options..."; "l" = "LSP Options..."; - "n" = "NvimTree..."; + "n" = "NvimTree / Noice..."; "t" = "Trouble..."; "T" = "ToggleTerm..."; "w" = "Manage Windows...";