lsp config fixes

This commit is contained in:
2026-01-14 10:15:51 +00:00
parent c6d43d5162
commit b6813e83db
3 changed files with 9 additions and 12 deletions

7
ftplugin/nu.lua Normal file
View File

@@ -0,0 +1,7 @@
local lspconfig = require("lspconfig")
local config_path = (vim.env.XDG_CONFIG_HOME or vim.fn.expand("~/.config")) .. "/nushell/lsp.nu"
lspconfig.nushell.setup({
cmd = { "nu", "--config", config_path, "--lsp" },
root_dir = lspconfig.util.root_pattern("env.nu", "config.nu", ".git"),
})

View File

@@ -1,10 +0,0 @@
return {
require("neovim/nvim-lspconfig").nushell.setup({
cmd = {
"nu",
"--config",
vim.env.XDG_CONFIG_HOME .. "/nushell/lsp.nu",
"--lsp",
},
}),
}

View File

@@ -2,8 +2,8 @@ return {
{
"neovim/nvim-lspconfig",
dependencies = {
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"mason-org/mason.nvim",
"mason-org/mason-lspconfig.nvim",
"WhoIsSethDaniel/mason-tool-installer.nvim",
{ "j-hui/fidget.nvim", opts = {} },
},