vim.lua 686 B

12345678910111213141516171819202122232425262728293031323334
  1. local M = {}
  2. M.config = function()
  3. O.lang.vim = {}
  4. end
  5. M.format = function()
  6. -- TODO: implement formatter for language
  7. return "No formatter available!"
  8. end
  9. M.lint = function()
  10. -- TODO: implement linters (if applicable)
  11. return "No linters configured!"
  12. end
  13. M.lsp = function()
  14. if require("lv-utils").check_lsp_client_active "vimls" then
  15. return
  16. end
  17. -- npm install -g vim-language-server
  18. require("lspconfig").vimls.setup {
  19. cmd = { DATA_PATH .. "/lspinstall/vim/node_modules/.bin/vim-language-server", "--stdio" },
  20. on_attach = require("lsp").common_on_attach,
  21. }
  22. end
  23. M.dap = function()
  24. -- TODO: implement dap
  25. return "No DAP configured!"
  26. end
  27. return M