setup.lua 371 B

1234567891011121314151617181920
  1. local lsp = require('lsp-zero').preset({})
  2. lsp.on_attach(function(client, bufnr)
  3. lsp.default_keymaps({ buffer = bufnr })
  4. end)
  5. lsp.ensure_installed({
  6. -- Replace these with whatever servers you want to install
  7. 'tsserver',
  8. 'eslint',
  9. 'rust_analyzer',
  10. 'cssls',
  11. 'cssmodules_ls',
  12. 'eslint',
  13. 'html',
  14. 'jsonls',
  15. 'volar'
  16. })
  17. lsp.setup()