diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/dotls.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/lspconfig/dotls.lua b/lua/lspconfig/dotls.lua new file mode 100644 index 00000000..0aa198e4 --- /dev/null +++ b/lua/lspconfig/dotls.lua @@ -0,0 +1,32 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +local server_name = "dotls" +local bin_name = "dot-language-server" + +local root_files = { + '.git', +} + +configs[server_name] = { + default_config = { + cmd = {bin_name, "--stdio"}; + filetypes = {"dot"}; + root_dir = function(filename) + return util.root_pattern(unpack(root_files))(filename) or + util.path.dirname(filename) + end; + }; + docs = { + description = [[ +https://github.com/nikeee/dot-language-server + +`dot-language-server` can be installed via `npm`: +```sh +npm install -g dot-language-server +``` + ]]; + }; +}; + +-- vim:et ts=2 sw=2 |
