mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2025-12-24 23:11:00 +01:00
15 lines
321 B
Lua
15 lines
321 B
Lua
---@brief
|
|
---
|
|
--- https://github.com/nushell/nushell
|
|
---
|
|
--- Nushell built-in language server.
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
cmd = { 'nu', '--lsp' },
|
|
filetypes = { 'nu' },
|
|
root_dir = function(bufnr, on_dir)
|
|
on_dir(vim.fs.root(bufnr, { '.git' }) or vim.fs.dirname(vim.api.nvim_buf_get_name(bufnr)))
|
|
end,
|
|
}
|