aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-01-04 12:49:48 -0800
committerGitHub <noreply@github.com>2021-01-04 12:49:48 -0800
commitb1c254572481a1751170e42a652e703240eca9b4 (patch)
tree58ff2409b9ffeea93ca089aa64b5dc70ed75555b /lua
parentMerge pull request #535 from mjlbach/update_pr_template (diff)
parent[docgen] Update README.md (diff)
downloadnvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar.gz
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar.bz2
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar.lz
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar.xz
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.tar.zst
nvim-lspconfig-b1c254572481a1751170e42a652e703240eca9b4.zip
Merge pull request #491 from mjlbach/feature/add_denols
Add deno language server
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/denols.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lspconfig/denols.lua b/lua/lspconfig/denols.lua
new file mode 100644
index 00000000..20fe387a
--- /dev/null
+++ b/lua/lspconfig/denols.lua
@@ -0,0 +1,30 @@
+local configs = require 'lspconfig/configs'
+local util = require 'lspconfig/util'
+
+local server_name = "denols"
+
+configs[server_name] = {
+ default_config = {
+ cmd = {"deno", "lsp"};
+ filetypes = {"javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx"};
+ root_dir = util.root_pattern("package.json", "tsconfig.json", ".git");
+ init_options = {
+ enable = true;
+ lint = false;
+ unstable = false;
+ };
+ };
+ docs = {
+ description = [[
+https://github.com/denoland/deno
+
+Deno's built-in language server
+```
+]];
+ default_config = {
+ root_dir = [[root_pattern("package.json", "tsconfig.json", ".git")]];
+ };
+ };
+}
+
+-- vim:et ts=2 sw=2