summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2024-10-07 17:56:15 +0200
committerMinijackson <minijackson@riseup.net>2024-10-07 17:56:15 +0200
commit43e41fe47b965d47450a2fe05b6fa9e755e08502 (patch)
tree8e2fd28379c22439e29eaa91b9e5a0b60d2c0a38
parent73eebd40214d84ce506566d3dbc792342acd61c9 (diff)
downloadnixos-config-reborn-43e41fe47b965d47450a2fe05b6fa9e755e08502.tar.gz
nixos-config-reborn-43e41fe47b965d47450a2fe05b6fa9e755e08502.zip
common/nixvim: setup tree-sitter highlighting
-rw-r--r--common/nixvim.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/nixvim.nix b/common/nixvim.nix
index 81a96ea..53228e0 100644
--- a/common/nixvim.nix
+++ b/common/nixvim.nix
@@ -579,7 +579,10 @@ in
579 enable = true; 579 enable = true;
580 nixvimInjections = true; 580 nixvimInjections = true;
581 581
582 settings.indent.enable = true; 582 settings = {
583 highlight.enable = true;
584 indent.enable = true;
585 };
583 }; 586 };
584 587
585 treesitter-context = { 588 treesitter-context = {
@@ -630,7 +633,6 @@ in
630 633
631 require('highlight-undo').setup() 634 require('highlight-undo').setup()
632 635
633
634 -- For fugitive's :GBrowse 636 -- For fugitive's :GBrowse
635 vim.api.nvim_create_user_command("Browse", function(opts) 637 vim.api.nvim_create_user_command("Browse", function(opts)
636 vim.ui.open(opts.args) 638 vim.ui.open(opts.args)