update nushell neovim setup

This commit is contained in:
Daylin Morgan 2024-11-22 17:12:52 -06:00
parent c4c1236f9d
commit 09e963987e
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,7 +1,18 @@
return require("util").if_exe("nu", { return require("util").if_exe("nu", {
"nvim-treesitter/nvim-treesitter", {
dependencies = { "nvim-treesitter/nvim-treesitter",
{ "nushell/tree-sitter-nu" }, 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",
}) })