mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-02-09 18:33:25 +00:00
lsp config fixes
This commit is contained in:
7
ftplugin/nu.lua
Normal file
7
ftplugin/nu.lua
Normal 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"),
|
||||
})
|
||||
Reference in New Issue
Block a user