From 2dd403ba789a41d107a5bcb86e65f9725b876e87 Mon Sep 17 00:00:00 2001 From: blusk Date: Fri, 10 Nov 2023 01:01:17 +0000 Subject: feat: add nushell built-in language server support (#2884) --- lua/lspconfig/server_configurations/nushell.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/lspconfig/server_configurations/nushell.lua diff --git a/lua/lspconfig/server_configurations/nushell.lua b/lua/lspconfig/server_configurations/nushell.lua new file mode 100644 index 00000000..46f0e93a --- /dev/null +++ b/lua/lspconfig/server_configurations/nushell.lua @@ -0,0 +1,19 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'nu', '--lsp' }, + filetypes = { 'nu' }, + root_dir = util.find_git_ancestor, + }, + docs = { + description = [[ +https://github.com/nushell/nushell + +Nushell built-in language server. +]], + default_config = { + root_dir = [[util.find_git_ancestor]], + }, + }, +} -- cgit v1.2.3-70-g09d2