From 6b506456e2058ebd206bc0c879c83832e936d332 Mon Sep 17 00:00:00 2001 From: Nikita Ivanchenko <36507839+Nivanchenko@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:20:00 +0300 Subject: feat: add BSL language server (#1269) Co-authored-by: Michael Lingelbach --- lua/lspconfig/bsl_ls.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lspconfig/bsl_ls.lua (limited to 'lua') diff --git a/lua/lspconfig/bsl_ls.lua b/lua/lspconfig/bsl_ls.lua new file mode 100644 index 00000000..048e20e5 --- /dev/null +++ b/lua/lspconfig/bsl_ls.lua @@ -0,0 +1,22 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local name = 'bsl_ls' + +configs[name] = { + default_config = { + filetypes = { 'bsl', 'os' }, + root_dir = util.find_git_ancestor, + }, + docs = { + description = [[ + https://github.com/1c-syntax/bsl-language-server + + Language Server Protocol implementation for 1C (BSL) - 1C:Enterprise 8 and OneScript languages. + + ]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +} -- cgit v1.2.3-70-g09d2