ok vue now works perfectly

This commit is contained in:
Lucas Barbieri 2024-04-10 18:05:29 -03:00
parent 9f56adf1ed
commit 3fa5fab512
2 changed files with 14 additions and 20 deletions

View File

@ -359,20 +359,8 @@ local servers = {
},
html = { provideFormatter = false },
cssls = {},
tsserver = {
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = "~/.nvm/versions/node/v20.10.0/lib/node_modules/@vue/typescript-plugin",
languages = { "vue" },
},
},
},
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
},
volar = {},
pyright = {},
tsserver = {},
jdtls = {
java = {
@ -420,9 +408,15 @@ mason_lspconfig.setup_handlers {
}
end
}
local lspconfig = require("lspconfig")
lspconfig.volar.setup {
init_options = {
vue = {
hybridMode = false,
},
},
}
-- this is for my personal config, i cant bother seeing every TJ's default and changing it to my own
require("jabuxas")
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true

View File

@ -5,9 +5,9 @@ vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.clipboard:append({ "unnamedplus" })
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true