2024-06-14 14:14:58 -05:00
|
|
|
return require("util").if_exe("nu", {
|
2024-11-22 17:12:52 -06:00
|
|
|
{
|
|
|
|
"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",
|
2024-06-13 13:22:15 -05:00
|
|
|
},
|
2024-06-14 14:14:58 -05:00
|
|
|
})
|