pojokcodeid.nvim-lazy/lua/core/config.lua

50 lines
1.5 KiB
Lua
Raw Normal View History

local config
-- shim vim for kitty and other generators
vim = vim or { g = {}, o = {} }
local function opt(key, default)
key = "pcode_" .. key
if vim.g[key] == nil then
return default
end
-- if vim.g[key] == 0 then
-- return false
-- end
return vim.g[key]
end
config = {
colorscheme = opt("colorscheme", "gruvbox-baby"),
transparent_mode = opt("transparent_mode", 0),
2024-02-24 22:58:09 +07:00
clear_lualine = opt("clear_lualine", 0),
progress = opt("progress", 2),
lualine_style = opt("lualine_style", 0),
status_icon = opt("status_icon", 0),
custom_lualine = opt("custom_lualine", false),
component_separators = opt("component_separators", { left = " ", right = " " }),
section_separators = opt("section_separators", { left = " ", right = " " }),
2023-03-06 19:36:07 +07:00
header1 = opt("header1", nil),
header2 = opt("header2", nil),
footer = opt("footer", nil),
model = opt("model", 1),
format_on_save = opt("format_on_save", 1),
lsp_installer = opt("lsp_installer", {}),
2023-03-06 11:50:21 +07:00
mason_ensure_installed = opt("mason_ensure_installed", {}),
unregister_lsp = opt("unregister_lsp", {}),
null_ls_sources = opt("null_ls_sources", {}),
whichkey = opt("whichkey", {}),
2023-03-05 19:29:48 +07:00
coderunner = opt("coderunner", {}),
2023-03-06 14:11:29 +07:00
null_ls_ensure_installed = opt("null_ls_ensure_installed", {}),
dap_ensure_installed = opt("dap_ensure_installed", {}),
cmprg = opt("cmprg", false),
cmpcalc = opt("cmpcalc", false),
cmptag = opt("cmptag", false),
lsp_virtualtext = opt("lsp_virtualtext", false),
2023-03-08 06:31:31 +07:00
lspghost_text = opt("lspghost_text", false),
loadnvimtree_lazy = opt("loadnvimtree_lazy", false),
2024-05-21 14:20:50 +07:00
icons = opt("icons", {}),
}
return config