big changes to neovim, might streamline later, also some term environment settings

This commit is contained in:
cnst
2024-08-19 21:24:21 +02:00
parent 5f2487c4ab
commit dffdbb1581
52 changed files with 1471 additions and 447 deletions

View File

@@ -1,26 +1,41 @@
{ lib
, config
, ...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.devtools.neovim.plugins.treesitter;
in
{
programs.nixvim.plugins = {
treesitter = {
enable = true;
nixvimInjections = true;
settings = {
highlight.enable = true;
indent.enable = true;
};
folding = true;
options = {
modules.devtools.neovim.plugins = {
treesitter.enable = mkEnableOption "Enables Treesitter plugin for Neovim";
};
};
treesitter-refactor = {
enable = true;
highlightDefinitions = {
config = mkIf cfg.enable {
programs.nixvim.plugins = {
treesitter = {
enable = true;
nixvimInjections = true;
settings = {
highlight.enable = true;
indent.enable = true;
};
folding = true;
};
treesitter-refactor = mkIf cfg.enable {
enable = true;
highlightDefinitions = {
enable = true;
clearOnCursorMove = false;
};
};
hmts = mkIf cfg.enable {
enable = true;
# Set to false if you have an `updatetime` of ~100.
clearOnCursorMove = false;
};
};
hmts.enable = true;
};
}