mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: nixvim refactor
This commit is contained in:
36
modules/home-manager/programs/nixvim/presets/base/syntax.nix
Normal file
36
modules/home-manager/programs/nixvim/presets/base/syntax.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.presets.base.syntax;
|
||||
in
|
||||
{
|
||||
options.presets.base.syntax = {
|
||||
enable = lib.mkEnableOption "syntax highlighting";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
indent = true;
|
||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
|
||||
nixvimInjections = true;
|
||||
};
|
||||
indent-blankline = {
|
||||
enable = lib.mkDefault true;
|
||||
settings = {
|
||||
indent.char = "▏";
|
||||
scope.show_start = false;
|
||||
};
|
||||
};
|
||||
illuminate.enable = lib.mkDefault true;
|
||||
nvim-autopairs.enable = lib.mkDefault true;
|
||||
nvim-colorizer.enable = lib.mkDefault true;
|
||||
ts-autotag.enable = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user