feat: consolidate Mason configuration and add new plugins for enhanced development workflow

- Refactor community.lua module structure for better readability

- Remove obsolete Mason configuration file

- Add new plugins: nvim-lsp-file-operations, nvim-vtsls, package-info.nvim, tsc.nvim

- Implement dynamic Mason package installation based on FRAMEWORK environment variable

- Create custom command 'MasonInstallR' for framework-specific tool installation

Signed-off-by: User <user@example.com>
This commit is contained in:
User
2025-10-11 16:12:51 +00:00
parent 7f725c6530
commit 018b471b72
4 changed files with 93 additions and 57 deletions
-47
View File
@@ -1,47 +0,0 @@
-- Mason plugin configuration for automatic tool installation
-- Dynamically installs tools based on the FRAMEWORK environment variable
-- Framework-specific tool configurations
local FRAMEWORK_TOOLS = {
python = {
"black",
"python-lsp-server",
"mypy",
"pylint",
"flake8",
"pylama",
"bandit",
"pydocstyle",
"pyproject-flake8",
"pyproject-fmt",
"reorder-python-imports",
},
vue = {
"eslint-lsp",
"stylelint-lsp",
"tailwindcss-language-server",
"typescript-language-server",
"vue-language-server",
"stylelint",
"prettier",
}
}
--- Retrieves the appropriate tool set based on the current framework environment
--- @return table List of tools to install for the detected framework
local function get_framework_tools()
local current_framework = os.getenv("FRAMEWORK")
return FRAMEWORK_TOOLS[current_framework] or {}
end
---@type LazySpec
return {
-- Mason tool installer for automatic package management
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
opts = {
-- Install tools based on the detected framework
ensure_installed = get_framework_tools(),
},
},
}