LunarVim/ftplugin/yaml.lua

11 lines
330 B
Lua
Raw Normal View History

if require("lv-utils").check_lsp_client_active "yamlls" then
return
end
-- npm install -g yaml-language-server
2021-07-05 03:14:01 +02:00
require("lspconfig").yamlls.setup {
cmd = { DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server", "--stdio" },
on_attach = require("lsp").common_on_attach,
}
2021-07-05 03:14:01 +02:00
vim.cmd "setl ts=2 sw=2 ts=2 ai et"