## Summary - update flake inputs and switch formatter usage from `nixfmt-rfc-style` to `nixfmt` - migrate deprecated NixVim plugin options for `treesitter`, `treesitter-textobjects`, `startup`, and `neo-tree` - replace deprecated `vim.lsp.with()` handler wrappers in the local LSP config - apply resulting `nixfmt` formatting cleanup ## Testing - `nix flake check` ## Notes - the remaining warning during evaluation is the upstream Nixpkgs notice that `x86_64-darwin` support ends after Nixpkgs 26.05
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
plugins.treesitter = {
|
|
enable = true;
|
|
settings = {
|
|
indent.enable = true;
|
|
highlight.enable = true;
|
|
};
|
|
folding.enable = false;
|
|
nixvimInjections = true;
|
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
|
|
};
|
|
|
|
plugins.treesitter-textobjects = {
|
|
enable = false;
|
|
settings = {
|
|
select = {
|
|
enable = true;
|
|
lookahead = true;
|
|
keymaps = {
|
|
"aa" = "@parameter.outer";
|
|
"ia" = "@parameter.inner";
|
|
"af" = "@function.outer";
|
|
"if" = "@function.inner";
|
|
"ac" = "@class.outer";
|
|
"ic" = "@class.inner";
|
|
"ii" = "@conditional.inner";
|
|
"ai" = "@conditional.outer";
|
|
"il" = "@loop.inner";
|
|
"al" = "@loop.outer";
|
|
"at" = "@comment.outer";
|
|
};
|
|
};
|
|
move = {
|
|
enable = true;
|
|
goto_next_start = {
|
|
"]m" = "@function.outer";
|
|
"]]" = "@class.outer";
|
|
};
|
|
goto_next_end = {
|
|
"]M" = "@function.outer";
|
|
"][" = "@class.outer";
|
|
};
|
|
goto_previous_start = {
|
|
"[m" = "@function.outer";
|
|
"[[" = "@class.outer";
|
|
};
|
|
goto_previous_end = {
|
|
"[M" = "@function.outer";
|
|
"[]" = "@class.outer";
|
|
};
|
|
};
|
|
swap = {
|
|
enable = true;
|
|
swap_next = {
|
|
"<leader>a" = "@parameters.inner";
|
|
};
|
|
swap_previous = {
|
|
"<leader>A" = "@parameter.outer";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|