Updating vue, changing font, adding pomo
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
-- Paths for working with vue
|
||||
local vue_typescript_plugin_path = vim.fs.normalize '~/node_modules/@vue/typescript-plugin'
|
||||
local vue_language_server_path = vim.fs.normalize(vim.fn.stdpath 'data' .. '/mason/packages/vue-language-server/node_modules/@vue/language-server')
|
||||
|
||||
return {
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
@@ -158,30 +162,6 @@ return {
|
||||
}
|
||||
|
||||
local servers = {
|
||||
--ts_ls = {
|
||||
-- init_options = {
|
||||
-- hostInfo = 'neovim',
|
||||
-- plugins = {
|
||||
-- {
|
||||
-- name = '@vue/typescript-plugin',
|
||||
-- --location = '', -- use local node_modules path
|
||||
-- location = vue_typescript_plugin_path,
|
||||
-- languages = { 'vue', 'javascript', 'typescript' },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx', 'vue' },
|
||||
--},
|
||||
-- Volar is deprecated in favor of vue_ls
|
||||
--volar = {
|
||||
-- filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
-- init_options = {
|
||||
-- vue = {
|
||||
-- -- disable hybrid mode
|
||||
-- hybridMode = true,
|
||||
-- },
|
||||
-- },
|
||||
--}, -- hybrid mode is default
|
||||
vue_ls = {},
|
||||
vtsls = {
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
@@ -212,19 +192,6 @@ return {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
-- on_attach = function(client, bufnr)
|
||||
-- client.server_capabilities.documentFormattingProvider = true
|
||||
-- if client.server_capabilities.documentFormattingProvider then
|
||||
-- local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true })
|
||||
-- vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
-- pattern = '*',
|
||||
-- callback = function()
|
||||
-- vim.lsp.buf.format { async = true }
|
||||
-- end,
|
||||
-- group = au_lsp,
|
||||
-- })
|
||||
-- end
|
||||
-- end,
|
||||
},
|
||||
html = {},
|
||||
cssls = {},
|
||||
|
||||
Reference in New Issue
Block a user