vue setup

This commit is contained in:
2025-05-01 11:44:56 +02:00
parent f9774a6a5a
commit adc2a50a92
6 changed files with 133 additions and 111 deletions

View File

@@ -21,11 +21,11 @@ require("lazy").setup({
"LazyVim/LazyVim", import = "lazyvim.plugins"
},
-- import any extra plugins colorscheme
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{ import = "lazyvim.plugins.extras.test.core" },
{ import = "lazyvim.plugins.extras.linting.eslint" },
-- { import = "lazyvim.plugins.extras.lang.typescript" },
-- { import = "lazyvim.plugins.extras.lang.json" },
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
--{ import = "lazyvim.plugins.extras.test.core" },
--{ import = "lazyvim.plugins.extras.linting.eslint" },
-- import/override with your plugins
{ import = "plugins" },
},

View File

@@ -9,9 +9,9 @@ return {
"isort",
"mypy",
"pylint",
"typescript-language-server",
"vue-language-server",
"eslint-lsp",
-- "typescript-language-server",
-- "vue-language-server",
-- "eslint-lsp",
},
},
},
@@ -24,9 +24,9 @@ return {
"shfmt",
"flake8",
"pyright",
"typescript-language-server",
"vue-language-server",
"eslint-lsp",
-- "typescript-language-server",
-- "vue-language-server",
-- "eslint-lsp",
},
},
},

View File

@@ -1,35 +1,5 @@
return {
{ 'echasnovski/mini.nvim', version = '*' },
-- Testing out a nuxt setup
--{
-- 'catgoose/vue-goto-definition.nvim',
-- event = "BufReadPre",
-- opts = {
-- filters = {
-- auto_imports = true,
-- auto_components = true,
-- import_same_file = true,
-- declaration = true,
-- duplicate_filename = true,
-- },
-- filetypes = { "vue", "typescript" },
-- detection = {
-- nuxt = function()
-- return vim.fn.glob(".nuxt/") ~= ""
-- end,
-- vue3 = function()
-- return vim.fn.filereadable("vite.config.ts") == 1 or vim.fn.filereadable("src/App.vue") == 1
-- end,
-- priority = { "nuxt", "vue3" },
-- },
-- lsp = {
-- override_definition = true, -- override vim.lsp.buf.definition
-- },
-- debounce = 200
-- }
--},
-- { "rushjs1/nuxt-goto.nvim", ft = "vue" },
-- end of nuxt setup
{
"https://codeberg.org/esensar/nvim-dev-container",
dependencies = "nvim-treesitter/nvim-treesitter",
@@ -67,9 +37,11 @@ return {
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "emoji" })
end,
opts = {
sources = {
{ name = "emoji" }
},
}
},
-- change some telescope options and a keymap to browse plugin files
@@ -102,40 +74,40 @@ return {
opts = {
servers = {
pyright = {},
eslint = {},
-- eslint = {},
volar = {},
tsserver = {
enabled = true,
opts = {
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = vim.fn.stdpath 'data' ..
'/mason/packages/vue-language-server/node_modules/@vue/language-server',
languages = { 'vue' },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
},
},
ts_ls = {
enabled = true,
opts = {
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = vim.fn.stdpath 'data' ..
'/mason/packages/vue-language-server/node_modules/@vue/language-server',
languages = { 'vue' },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
},
},
--tsserver = {
-- enabled = true,
-- opts = {
-- init_options = {
-- plugins = {
-- {
-- name = '@vue/typescript-plugin',
-- location = vim.fn.stdpath 'data' ..
-- '/mason/packages/vue-language-server/node_modules/@vue/language-server',
-- languages = { 'vue' },
-- },
-- },
-- },
-- filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
-- },
--},
--ts_ls = {
-- enabled = true,
-- opts = {
-- init_options = {
-- plugins = {
-- {
-- name = '@vue/typescript-plugin',
-- location = vim.fn.stdpath 'data' ..
-- '/mason/packages/vue-language-server/node_modules/@vue/language-server',
-- languages = { 'vue' },
-- },
-- },
-- },
-- filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" }
-- },
--},
},
},
},