summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/yaml.lua
blob: fa5ec54c264e75743072574aca81a70c9d8c463f (plain)
1
2
3
4
5
6
7
8
9
10
if require("cfg.utils").check_lsp_client_active "yamlls" then
  return
end

-- 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("cfg.lsp").common_on_attach,
}
vim.cmd "setl ts=2 sw=2 ts=2 ai et"