summaryrefslogtreecommitdiff
path: root/dot_config/nvim_new/lsp/nushell.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim_new/lsp/nushell.lua')
-rw-r--r--dot_config/nvim_new/lsp/nushell.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/dot_config/nvim_new/lsp/nushell.lua b/dot_config/nvim_new/lsp/nushell.lua
new file mode 100644
index 0000000..b7f72f4
--- /dev/null
+++ b/dot_config/nvim_new/lsp/nushell.lua
@@ -0,0 +1,12 @@
+---@brief
+---
+--- https://github.com/nushell/nushell
+---
+--- Nushell built-in language server.
+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,
+}