yaml.lua 330 B

12345678910
  1. if require("lv-utils").check_lsp_client_active "yamlls" then
  2. return
  3. end
  4. -- npm install -g yaml-language-server
  5. require("lspconfig").yamlls.setup {
  6. cmd = { DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server", "--stdio" },
  7. on_attach = require("lsp").common_on_attach,
  8. }
  9. vim.cmd "setl ts=2 sw=2 ts=2 ai et"