From 7b4442a9c8d9e64c95ab3b9babeea2f1c45d82f5 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 13 Jan 2026 14:00:06 +0000 Subject: [PATCH] Attempt to fix nushell config --- lua/plugins/coding.lua | 5 +---- lua/plugins/lang/nu.lua | 10 ++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 lua/plugins/lang/nu.lua diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index da6c12c..be68bb8 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -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" }, - }, }, } diff --git a/lua/plugins/lang/nu.lua b/lua/plugins/lang/nu.lua new file mode 100644 index 0000000..03ea5b4 --- /dev/null +++ b/lua/plugins/lang/nu.lua @@ -0,0 +1,10 @@ +return { + require("lspconfig").nushell.setup({ + cmd = { + "nu", + "--config", + vim.env.XDG_CONFIG_HOME .. "/nushell/lsp.nu", + "--lsp", + }, + }), +}