Files
vern-nvim/lua/Polydev/configs.lua
T
DarthMooMancer 294047bcda docs: removed .polydev mentions and changed presets names
fix: presets had improper variable names on call
fix: java now builds properly and runs
2025-05-12 02:12:55 -04:00

70 lines
1.2 KiB
Lua

local M = {}
M.defaults = {
globals = {
keybinds = {
["<leader>po"] = "PolydevManager",
}
},
html = {
project_root = "~/Projects/Html",
},
rust = {
project_root = "~/Projects/Rust",
keybinds = {
["<leader>pr"] = "RustRun",
},
},
java = {
project_root = "~/Projects/Java",
keybinds = {
["<leader>pr"] = "JavaRun",
},
},
python = {
project_root = "~/Projects/Python",
keybinds = {
["<leader>pr"] = "PythonRun",
["<leader>pb"] = "PythonPip",
},
},
lua = {
project_root = "~/Projects/Lua",
keybinds = {
["<leader>pr"] = "LuaRun",
},
},
c = {
project_root = "~/Projects/C",
keybinds = {
["<leader>pr"] = "CRun",
},
build_attributes = "",
},
cpp = {
project_root = "~/Projects/Cpp",
keybinds = {
["<leader>pr"] = "CppRun",
},
build_attributes = "",
},
terminal = {
preset = "max",
border = true,
number = true,
relativenumber = true,
}
}
M.user_config = {}
function M.setup(user_opts)
M.user_config = vim.tbl_deep_extend("force", {}, M.defaults, user_opts or {})
end
function M.get(lang)
return M.user_config[lang] or {}
end
return M