nix-config/dotfiles/nvim/lua/plugins/nushell.lua
2024-08-03 22:33:30 +02:00

30 lines
653 B
Lua

return {
{
"neovim/nvim-lspconfig",
opts = {
servers = {
nushell = {},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
{ "nushell/tree-sitter-nu" },
},
opts = function(_, opts)
require("nvim-treesitter.parsers").get_parser_configs().nu = {
install_info = {
url = "https://github.com/nushell/tree-sitter-nu",
files = { "src/parser.c" },
branch = "main",
},
filetype = "nu",
}
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "nu" })
end
end,
},
}