Update nixvim, add noice and notify

This commit is contained in:
albert 2024-04-01 13:20:09 +09:00
parent d8663a36d8
commit c99193169b
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 50 additions and 34 deletions

View file

@ -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;

View file

@ -64,6 +64,7 @@
(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")
@ -107,6 +108,18 @@
]; ];
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...";