vue support
This commit is contained in:
33
.config/nvim/lua/plugins/mason.lua
Normal file
33
.config/nvim/lua/plugins/mason.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
{
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"black",
|
||||
"debugpy",
|
||||
"flake8",
|
||||
"isort",
|
||||
"mypy",
|
||||
"pylint",
|
||||
"typescript-language-server",
|
||||
"vue-language-server",
|
||||
"eslint-lsp",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
"shellcheck",
|
||||
"shfmt",
|
||||
"flake8",
|
||||
"pyright",
|
||||
"typescript-language-server",
|
||||
"vue-language-server",
|
||||
"eslint-lsp",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,5 +1,35 @@
|
||||
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",
|
||||
@@ -66,17 +96,49 @@ return {
|
||||
},
|
||||
|
||||
-- add pyright to lspconfig
|
||||
--{
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- ---@class PluginLspOpts
|
||||
-- opts = {
|
||||
-- ---@type lspconfig.options
|
||||
-- servers = {
|
||||
-- pyright = {},
|
||||
-- eslint = {},
|
||||
-- },
|
||||
-- },
|
||||
--},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
---@class PluginLspOpts
|
||||
opts = {
|
||||
servers = {
|
||||
pyright = {},
|
||||
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" }
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- add more treesitter parsers
|
||||
{
|
||||
@@ -141,34 +203,6 @@ return {
|
||||
|
||||
|
||||
-- add any tools you want to have installed below
|
||||
-- Install mason installer
|
||||
{
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"black",
|
||||
"debugpy",
|
||||
"flake8",
|
||||
"isort",
|
||||
"mypy",
|
||||
"pylint",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Install mason itself
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
"shellcheck",
|
||||
"shfmt",
|
||||
"flake8",
|
||||
"pyright",
|
||||
"typescript-language-server"
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Install tools for python testing
|
||||
{
|
||||
"nvim-neotest/neotest-python",
|
||||
|
||||
Reference in New Issue
Block a user