add: update default config

This commit is contained in:
asep.komarudin 2024-05-21 19:49:53 +07:00
parent f468320299
commit d1e7d99d27
18 changed files with 27 additions and 101 deletions

View file

@ -1,4 +1,4 @@
local colorscheme = "gruvbox_baby"
local colorscheme = vim.g.pcode_colorscheme or "gruvbox-baby"
local lst_style = {
"sonokai",
"sonokai_atlantis",
@ -23,11 +23,7 @@ local lst_onedark = {
"onedark_light",
}
if vim.g.pcode_colorscheme ~= nil then
colorscheme = vim.g.pcode_colorscheme
end
local transparent_mode = vim.g.pcode_transparent_mode
local transparent_mode = vim.g.pcode_transparent_mode or 0
if transparent_mode ~= nil then
if transparent_mode == 1 then
vim.g.gruvbox_baby_transparent_mode = 1

View file

@ -1,5 +1,5 @@
local run = 0
local frmt = vim.g.pcode_format_on_save
local frmt = vim.g.pcode_format_on_save or 0
if frmt == 1 then
run = 1
else

View file

@ -8,8 +8,8 @@ local lspconfig = require("lspconfig")
-- local servers = { "jsonls", "sumneko_lua","html","cssls","tsserver"}
-- local servers = { "jdtls", "yamlls" }
local servers = {}
for _, client in pairs(vim.g.pcode_lsp_installer) do
local installer = vim.g.pcode_lsp_installer or {}
for _, client in pairs(installer) do
table.insert(servers, client)
end

View file

@ -5,7 +5,7 @@ if not status_cmp_ok then
return
end
local lspvitualtext = vim.g.pcode_lsp_virtualtext
local lspvitualtext = vim.g.pcode_lsp_virtualtext or false
local icons = vim.g.pcode_icons
M.capabilities = vim.lsp.protocol.make_client_capabilities()

View file

@ -11,11 +11,12 @@ local function idxOf(array, value)
return nil
end
for _, client in pairs(vim.g.pcode_mason_ensure_installed) do
local mason_install = vim.g.pcode_mason_ensure_installed or {}
for _, client in pairs(mason_install) do
table.insert(servers, client)
end
local unregis_lsp = vim.g.pcode_unregister_lsp
local unregis_lsp = vim.g.pcode_unregister_lsp or {}
local icons = vim.g.pcode_icons.ui
local settings = {

View file

@ -21,7 +21,8 @@ if data_ok then
end
-- load data null-ls
for _, nullls in pairs(vim.g.pcode_null_ls_ensure_installed) do
local nullls_data = vim.g.pcode_null_ls_ensure_installed or {}
for _, nullls in pairs(nullls_data) do
table.insert(ensure_installed, nullls)
end
@ -33,7 +34,7 @@ if mason_ok then
end
local run = 0
local frmt = vim.g.pcode_format_on_save
local frmt = vim.g.pcode_format_on_save or 0
if frmt == 1 then
run = 1
end

View file

@ -1,5 +1,6 @@
local sources = {}
for _, nullls in pairs(vim.g.pcode_dap_ensure_installed) do
local dap_data = vim.g.pcode_dap_ensure_installed or {}
for _, nullls in pairs(dap_data) do
table.insert(sources, nullls)
end
require("mason").setup()

View file

@ -5,7 +5,7 @@ end
local transp = false
local sidebar = "normal" --"dark , transparent, normal"
local hilight = "#292e42"
local tras = vim.g.pcode_transparent_mode
local tras = vim.g.pcode_transparent_mode or 0
if tras == 1 then
transp = true
sidebar = "transparent"