aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-12-07 19:21:52 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2024-12-07 19:21:52 +0200
commit03a2702281f06cd191698c75262279c4338f5ff9 (patch)
tree59d5ce787f0bae0cb09b3a72f693a25e19e99b32
parent08def86724c64aac0b38243d8135ea12ea5586c2 (diff)
downloadnixos-configuration-03a2702281f06cd191698c75262279c4338f5ff9.tar.gz
nixos-configuration-03a2702281f06cd191698c75262279c4338f5ff9.tar.bz2
nixos-configuration-03a2702281f06cd191698c75262279c4338f5ff9.zip
feat: tree-sitter grammar for nushell
-rw-r--r--home-manager/stvnliu/nixvim/lsp.nix2
-rw-r--r--home-manager/stvnliu/nixvim/treesitter.nix7
2 files changed, 8 insertions, 1 deletions
diff --git a/home-manager/stvnliu/nixvim/lsp.nix b/home-manager/stvnliu/nixvim/lsp.nix
index cc694ed..675dbf9 100644
--- a/home-manager/stvnliu/nixvim/lsp.nix
+++ b/home-manager/stvnliu/nixvim/lsp.nix
@@ -19,6 +19,8 @@
fsautocomplete.enable = true;
gopls.enable = true;
+ nushell.enable = true;
+
# For Nix
#nil_ls.enable = true;
nixd = {
diff --git a/home-manager/stvnliu/nixvim/treesitter.nix b/home-manager/stvnliu/nixvim/treesitter.nix
index 06ad13b..7a360c6 100644
--- a/home-manager/stvnliu/nixvim/treesitter.nix
+++ b/home-manager/stvnliu/nixvim/treesitter.nix
@@ -1,10 +1,15 @@
-{
+{pkgs, ...}: {
plugins = {
treesitter = {
enable = true;
nixGrammars = true;
nixvimInjections = true; # enables language injection in nixvim
settings.indent.enable = true;
+ grammarPackages =
+ pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars
+ ++ [
+ pkgs.tree-sitter-grammars.tree-sitter-nu
+ ];
};
treesitter-context.enable = true;
rainbow-delimiters.enable = true;