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