diff --git a/home/private_dot_config/nvim/lua/plugins/language/nu.lua b/home/private_dot_config/nvim/lua/plugins/language/nu.lua index f6ce249..010857a 100644 --- a/home/private_dot_config/nvim/lua/plugins/language/nu.lua +++ b/home/private_dot_config/nvim/lua/plugins/language/nu.lua @@ -1,7 +1,18 @@ return require("util").if_exe("nu", { - "nvim-treesitter/nvim-treesitter", - dependencies = { - { "nushell/tree-sitter-nu" }, + { + "nvim-treesitter/nvim-treesitter", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "nu" }, -- Ensure the "nu" parser is installed + highlight = { + enable = true, -- Enable syntax highlighting + }, + }) + end, + dependencies = { + -- Additional Nushell parser + { "nushell/tree-sitter-nu", build = ":TSUpdate nu" }, + }, + build = ":TSUpdate", }, - build = ":TSUpdate", })