From 20ed47e21e966a5b857ef9970ae6171b3a504ce1 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Thu, 1 Jul 2021 23:42:26 -0400 Subject: lsp in ftplugin austonautomoy --- ftplugin/yaml.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ftplugin/yaml.lua (limited to 'ftplugin/yaml.lua') 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") -- cgit v1.2.3