mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-02-19 23:08:03 +00:00
Attempt to fix nushell config
This commit is contained in:
@@ -73,7 +73,7 @@ return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
opts = {
|
||||
ensure_installed = { "bash", "c", "html", "lua", "markdown", "vim", "vimdoc" },
|
||||
ensure_installed = { "bash", "c", "html", "lua", "markdown", "nu", "vim", "vimdoc" },
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
@@ -82,8 +82,5 @@ return {
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
dependencies = {
|
||||
{ "nushell/tree-sitter-nu", build = ":TSUpdate nu" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
10
lua/plugins/lang/nu.lua
Normal file
10
lua/plugins/lang/nu.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
require("lspconfig").nushell.setup({
|
||||
cmd = {
|
||||
"nu",
|
||||
"--config",
|
||||
vim.env.XDG_CONFIG_HOME .. "/nushell/lsp.nu",
|
||||
"--lsp",
|
||||
},
|
||||
}),
|
||||
}
|
||||
Reference in New Issue
Block a user