summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/yaml-ls.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/yaml-ls.lua')
-rw-r--r--.config/nvim/lua/lsp/yaml-ls.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/yaml-ls.lua b/.config/nvim/lua/lsp/yaml-ls.lua
new file mode 100644
index 0000000..3fbc41e
--- /dev/null
+++ b/.config/nvim/lua/lsp/yaml-ls.lua
@@ -0,0 +1,5 @@
+-- npm install -g yaml-language-server
+require'lspconfig'.yamlls.setup{
+ cmd = {DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server", "--stdio"},
+ on_attach = require'lsp'.common_on_attach,
+}