Getting Started
Languages
VueJS

VueJs

Installing LSP

:LspInstall vue_ls

Typescript

If you are working with Typescript in your Vue projects, you also need to install the Typescript language server:

:LspInstall vtsls

Installing Formatter

:MasonInstall prettier

If mason is not supported on your platform

Setup LSP

go to: ~/.config/nvim/lua/userconfig/lsp.lua

and add these lines

lsp.lua
vim.lsp.config('vue_ls', {
  capabilities = capabilities,
  on_attach = on_attach
})

Formatter

If lsp does not provide a formatter, you can use the following command: :Neoformat click here (opens in a new tab) for more information