refactor: restructure polish module from single file to modular directory format

Signed-off-by: User <user@example.com>
This commit is contained in:
User
2025-10-11 19:26:47 +00:00
parent 6f1adc9381
commit 459fa712d9
3 changed files with 49 additions and 33 deletions
+23
View File
@@ -0,0 +1,23 @@
--- @meta
--- Framework-specific tool configurations and installation utilities for Neovim.
--- This module provides automatic installation of language servers and tools
--- based on the current development framework environment.
--- It reads the FRAMEWORK environment variable to determine which tools to install.
-- Import Mason utilities from separate module
local mason = require "polish.framework_mason_packages"
-- Create user command for Mason installation
vim.api.nvim_create_user_command(
"MasonInstallRorFramework", -- Command name
mason.InstallMyMasonPackages, -- Function to call
{ nargs = 0 } -- Command takes no arguments
)
-- Module exports
return {
FRAMEWORK_TOOLS = mason.FRAMEWORK_TOOLS,
get_framework_tools = mason.get_framework_tools,
InstallMyMasonPackages = mason.InstallMyMasonPackages,
}