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,7 +1,7 @@
local cmprg = vim.g.pcode_cmprg
local cmpcalc = vim.g.pcode_cmpcalc
local cmptag = vim.g.pcode_cmptag
local lspghost_text = vim.g.pcode_lspghost_text
local cmprg = vim.g.pcode_cmprg or false
local cmpcalc = vim.g.pcode_cmpcalc or false
local cmptag = vim.g.pcode_cmptag or false
local lspghost_text = vim.g.pcode_lspghost_text or false
local icons = require("user.icons").ui
return {
{ "hrsh7th/cmp-nvim-lsp", event = "InsertEnter", lazy = true },

View file

@ -10,7 +10,7 @@ local rfile = {
javascript = 'node "$dir/$fileName"',
}
local runscript = vim.g.pcode_coderunner
local runscript = vim.g.pcode_coderunner or {}
rfile = vim.tbl_deep_extend("force", runscript, rfile)
return {
"CRAG666/code_runner.nvim",

View file

@ -22,7 +22,7 @@ _G.switch = function(param, case_table)
return def and def() or nil
end
local color = vim.g.pcode_colorscheme
local color = vim.g.pcode_colorscheme or "gruvbox-baby"
switch(color, {
["tokyonight"] = function()
gruvbox = false
@ -201,7 +201,7 @@ switch(color, {
})
local transparent = false
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
transparent = true

View file

@ -1,14 +1,14 @@
local transparent = false
local clear_lualine = false
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
transparent = true
end
end
local clear_line = vim.g.pcode_clear_lualine
local clear_line = vim.g.pcode_clear_lualine or 0
if clear_line ~= nil then
if clear_line == 1 then
clear_lualine = true

View file

@ -95,7 +95,7 @@ return {
nowait = true, -- use `nowait` when creating keymaps
}
local wkey = vim.g.pcode_whichkey
local wkey = vim.g.pcode_whichkey or {}
local which_key = require("which-key")
which_key.setup(opts)
which_key.register(require("user.utils.whichkey").mappings, opt)