summaryrefslogtreecommitdiff
path: root/ftplugin/yaml.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/yaml.lua')
-rw-r--r--ftplugin/yaml.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/yaml.lua b/ftplugin/yaml.lua
new file mode 100644
index 00000000..7b6f9a25
--- /dev/null
+++ b/ftplugin/yaml.lua
@@ -0,0 +1,6 @@
+-- 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,
+}
+vim.cmd("setl ts=2 sw=2 ts=2 ai et")