refactor: restructure polish module from single file to modular directory format
Signed-off-by: User <user@example.com>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user