neovim: update plugins [WIP]

This commit is contained in:
notohh 2024-12-11 15:54:43 -05:00
parent 82ede0d485
commit bb6eb4c6d2
Signed by: notohh
GPG key ID: BD47506D475EE86D
6 changed files with 113 additions and 5 deletions

View file

@ -23,6 +23,7 @@ _: {
./ui/fidget.nix ./ui/fidget.nix
./ui/dashboard.nix ./ui/dashboard.nix
./ui/toggleterm.nix ./ui/toggleterm.nix
./ui/whichkey.nix
]; ];
programs.nixvim.plugins.web-devicons.enable = true; programs.nixvim.plugins.web-devicons.enable = true;
} }

View file

@ -1,5 +1,3 @@
_: { _: {
programs.nixvim.plugins.autoclose = { programs.nixvim.plugins.nvim-autopairs.enable = true;
enable = true;
};
} }

View file

@ -1,4 +1,16 @@
{pkgs, ...}: { {pkgs, ...}: let
treesitter-nu-grammar = pkgs.tree-sitter.buildGrammar {
language = "nu";
version = "0.0.0+rev=1561a94";
src = pkgs.fetchFromGitHub {
owner = "nushell";
repo = "tree-sitter-nu";
rev = "1561a947a5505d373e11ca337898e048ac2e389e";
hash = "sha256-RAAMBVov4q8b8MJZVlf1qwbLK8hE5AxPK1IV9TMCrTs=";
};
meta.homepage = "https://github.com/nushell/tree-sitter-nu";
};
in {
programs.nixvim.plugins.treesitter = { programs.nixvim.plugins.treesitter = {
enable = true; enable = true;
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
@ -14,6 +26,7 @@
rust rust
go go
gomod gomod
treesitter-nu-grammar
]; ];
settings = { settings = {
highlight.enable = true; highlight.enable = true;

View file

@ -34,6 +34,9 @@ _: {
nushell = { nushell = {
enable = true; enable = true;
}; };
lua_ls = {
enable = true;
};
}; };
}; };
}; };

View file

@ -5,8 +5,11 @@
]; ];
extraConfigLua = '' extraConfigLua = ''
require('cord').setup { require('cord').setup {
timer = {
interval = 500,
},
editor = { editor = {
tooltip = 'Neovim' tooltip = 'Neovim',
}, },
display = { display = {
show_time = true, show_time = true,

View file

@ -0,0 +1,90 @@
_: {
programs.nixvim.plugins.which-key = {
enable = true;
settings = {
preset = "helix";
replace = {
desc = [
[
"<space>"
"SPACE"
]
[
"<leader>"
"SPACE"
]
[
"<[cC][rR]>"
"RETURN"
]
[
"<[tT][aA][bB]>"
"TAB"
]
[
"<[bB][sS]>"
"BACKSPACE"
]
];
spec = [
{
__unkeyed-1 = "<leader>b";
group = "Buffers";
icon = "󰓩 ";
}
{
__unkeyed = "<leader>c";
group = "Codesnap";
icon = "󰄄 ";
mode = "v";
}
{
__unkeyed-1 = "<leader>bs";
group = "Sort";
icon = "󰒺 ";
}
{
__unkeyed-1 = [
{
__unkeyed-1 = "<leader>f";
group = "Normal Visual Group";
}
{
__unkeyed-1 = "<leader>f<tab>";
group = "Normal Visual Group in Group";
}
];
mode = [
"n"
"v"
];
}
{
__unkeyed-1 = "<leader>w";
group = "windows";
proxy = "<C-w>";
}
{
__unkeyed-1 = "<leader>cS";
__unkeyed-2 = "<cmd>CodeSnapSave<CR>";
desc = "Save";
mode = "v";
}
{
__unkeyed-1 = "<leader>db";
__unkeyed-2 = {
__raw = ''
function()
require("dap").toggle_breakpoint()
end
'';
};
desc = "Breakpoint toggle";
mode = "n";
silent = true;
}
];
};
};
};
}