mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: config global variable
This commit is contained in:
parent
77436b89c4
commit
a7726a6b33
30 changed files with 703 additions and 857 deletions
|
@ -8,7 +8,7 @@ return {
|
|||
return
|
||||
end
|
||||
|
||||
local icons = require("user.icons")
|
||||
local icons = vim.g.pcode_icons
|
||||
local use_icons = true
|
||||
|
||||
-- get folder name from current directory
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
local cmprg = false
|
||||
local cmpcalc = false
|
||||
local cmptag = false
|
||||
local lspghost_text = false
|
||||
local icons = require("user.icons").ui
|
||||
local data_exists, custom_cmp = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
cmprg = custom_cmp.cmprg
|
||||
cmpcalc = custom_cmp.cmpcalc
|
||||
cmptag = custom_cmp.cmptag
|
||||
lspghost_text = custom_cmp.lspghost_text
|
||||
end
|
||||
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 icons = vim.g.pcode_icons.ui
|
||||
|
||||
return {
|
||||
{ "hrsh7th/cmp-nvim-lsp", event = "InsertEnter", lazy = true },
|
||||
{ "hrsh7th/cmp-buffer", event = "InsertEnter", lazy = true },
|
||||
|
@ -90,7 +84,7 @@ return {
|
|||
formatting = {
|
||||
fields = { "kind", "abbr", "menu" },
|
||||
format = function(entry, vim_item)
|
||||
vim_item.kind = string.format("%s", require("user.icons")["kind"][vim_item.kind])
|
||||
vim_item.kind = string.format("%s", vim.g.pcode_icons["kind"][vim_item.kind])
|
||||
vim_item.menu = ({
|
||||
nvim_lsp = "(LSP)",
|
||||
luasnip = "(Snippet)",
|
||||
|
|
|
@ -1,21 +1,17 @@
|
|||
--typescript = "deno run",
|
||||
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
|
||||
local rfile = {
|
||||
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
|
||||
python = "python3 -u",
|
||||
--typescript = "deno run",
|
||||
typescript = "ts-node $dir/$fileName", -- npm install -g ts-node
|
||||
typescript = "ts-node $dir/$fileName",
|
||||
rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
|
||||
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
|
||||
cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
|
||||
scss = "sass $dir/$fileName $dir/$fileNameWithoutExt.css",
|
||||
javascript = 'node "$dir/$fileName"',
|
||||
}
|
||||
|
||||
local data_exists, runscript = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
if runscript.coderunner ~= nil then
|
||||
rfile = vim.tbl_deep_extend("force", runscript.coderunner, rfile)
|
||||
end
|
||||
end
|
||||
local runscript = vim.g.pcode_coderunner
|
||||
rfile = vim.tbl_deep_extend("force", runscript, rfile)
|
||||
return {
|
||||
"CRAG666/code_runner.nvim",
|
||||
lazy = true,
|
||||
|
|
|
@ -22,191 +22,186 @@ _G.switch = function(param, case_table)
|
|||
return def and def() or nil
|
||||
end
|
||||
|
||||
local data_exists, config = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
if config.colorscheme ~= nil then
|
||||
local color = config.colorscheme
|
||||
switch(color, {
|
||||
["tokyonight"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-night"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-storm"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-day"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-moon"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["sonokai"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "default"
|
||||
end,
|
||||
["sonokai_atlantis"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "atlantis"
|
||||
end,
|
||||
["sonokai_andromeda"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "andromeda"
|
||||
end,
|
||||
["sonokai_shusia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "shusia"
|
||||
end,
|
||||
["sonokai_maia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "maia"
|
||||
end,
|
||||
["sonokai_espresso"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "espresso"
|
||||
end,
|
||||
["material"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
end,
|
||||
["material_deepocean"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "deep ocean"
|
||||
end,
|
||||
["material_palenight"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "palenight"
|
||||
end,
|
||||
["material_lighter"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "lighter"
|
||||
end,
|
||||
["material_darker"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "darker"
|
||||
end,
|
||||
["onedark"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
end,
|
||||
["onedark_darker"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "darker"
|
||||
end,
|
||||
["onedark_cool"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "cool"
|
||||
end,
|
||||
["onedark_deep"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "deep"
|
||||
end,
|
||||
["onedark_warm"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warm"
|
||||
end,
|
||||
["onedark_warmer"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warmer"
|
||||
end,
|
||||
["onedark_light"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "light"
|
||||
end,
|
||||
["lunar"] = function()
|
||||
gruvbox = false
|
||||
lunar = true
|
||||
end,
|
||||
["nord"] = function()
|
||||
gruvbox = false
|
||||
nord = true
|
||||
end,
|
||||
["catppuccin"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-latte"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-frappe"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-macchiato"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-mocha"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["dracula"] = function()
|
||||
gruvbox = false
|
||||
dracula = true
|
||||
end,
|
||||
["nightfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dayfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dawnfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["duskfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["nordfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["terafox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["carbonfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["gruvbox-baby"] = function()
|
||||
gruvbox = true
|
||||
end,
|
||||
default = function()
|
||||
gruvbox = true
|
||||
end,
|
||||
})
|
||||
end
|
||||
end
|
||||
local color = vim.g.pcode_colorscheme
|
||||
switch(color, {
|
||||
["tokyonight"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-night"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-storm"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-day"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["tokyonight-moon"] = function()
|
||||
gruvbox = false
|
||||
tokyonight = true
|
||||
end,
|
||||
["sonokai"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "default"
|
||||
end,
|
||||
["sonokai_atlantis"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "atlantis"
|
||||
end,
|
||||
["sonokai_andromeda"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "andromeda"
|
||||
end,
|
||||
["sonokai_shusia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "shusia"
|
||||
end,
|
||||
["sonokai_maia"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "maia"
|
||||
end,
|
||||
["sonokai_espresso"] = function()
|
||||
gruvbox = false
|
||||
sonokai = true
|
||||
sonokai_style = "espresso"
|
||||
end,
|
||||
["material"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
end,
|
||||
["material_deepocean"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "deep ocean"
|
||||
end,
|
||||
["material_palenight"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "palenight"
|
||||
end,
|
||||
["material_lighter"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "lighter"
|
||||
end,
|
||||
["material_darker"] = function()
|
||||
gruvbox = false
|
||||
material = true
|
||||
material_style = "darker"
|
||||
end,
|
||||
["onedark"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
end,
|
||||
["onedark_darker"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "darker"
|
||||
end,
|
||||
["onedark_cool"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "cool"
|
||||
end,
|
||||
["onedark_deep"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "deep"
|
||||
end,
|
||||
["onedark_warm"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warm"
|
||||
end,
|
||||
["onedark_warmer"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "warmer"
|
||||
end,
|
||||
["onedark_light"] = function()
|
||||
gruvbox = false
|
||||
onedark = true
|
||||
onedark_style = "light"
|
||||
end,
|
||||
["lunar"] = function()
|
||||
gruvbox = false
|
||||
lunar = true
|
||||
end,
|
||||
["nord"] = function()
|
||||
gruvbox = false
|
||||
nord = true
|
||||
end,
|
||||
["catppuccin"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-latte"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-frappe"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-macchiato"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["catppuccin-mocha"] = function()
|
||||
gruvbox = false
|
||||
catppuccin = true
|
||||
end,
|
||||
["dracula"] = function()
|
||||
gruvbox = false
|
||||
dracula = true
|
||||
end,
|
||||
["nightfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dayfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["dawnfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["duskfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["nordfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["terafox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["carbonfox"] = function()
|
||||
gruvbox = false
|
||||
nightfox = true
|
||||
end,
|
||||
["gruvbox-baby"] = function()
|
||||
gruvbox = true
|
||||
end,
|
||||
default = function()
|
||||
gruvbox = true
|
||||
end,
|
||||
})
|
||||
|
||||
local transparent = false
|
||||
local transparent_mode = config.transparent_mode
|
||||
local transparent_mode = vim.g.pcode_transparent_mode
|
||||
if transparent_mode ~= nil then
|
||||
if transparent_mode == 1 then
|
||||
transparent = true
|
||||
|
|
|
@ -14,4 +14,5 @@ local onsave, _ = pcall(require, "user.format_onsave")
|
|||
if onsave then
|
||||
require("user.format_onsave")
|
||||
end
|
||||
vim.g.pcode_icons = require("user.icons")
|
||||
return {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local icons = require("user.icons")
|
||||
local icons = vim.g.pcode_icons
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
lazy = true,
|
||||
|
|
|
@ -1,68 +1,68 @@
|
|||
return {
|
||||
-- plugin ini merupakan penyedia library neovim lua
|
||||
{
|
||||
"nvim-lua/plenary.nvim",
|
||||
lazy = true,
|
||||
},
|
||||
-- {
|
||||
-- "nvim-lua/plenary.nvim",
|
||||
-- lazy = true,
|
||||
-- },
|
||||
-- coloring code
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
cmd = {
|
||||
"TSBufDisable",
|
||||
"TSBufEnable",
|
||||
"TSBufToggle",
|
||||
"TSDisable",
|
||||
"TSEnable",
|
||||
"TSToggle",
|
||||
"TSInstall",
|
||||
"TSInstallInfo",
|
||||
"TSInstallSync",
|
||||
"TSModuleInfo",
|
||||
"TSUninstall",
|
||||
"TSUpdate",
|
||||
"TSUpdateSync",
|
||||
},
|
||||
build = function()
|
||||
local status_ok, ts = pcall(require, "nvim-treesitter.install")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
ts.update({ with_sync = true })()
|
||||
end,
|
||||
config = function()
|
||||
local status_ok, _ = pcall(require, "nvim-treesitter")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
require("user.treesitter")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- cmd = {
|
||||
-- "TSBufDisable",
|
||||
-- "TSBufEnable",
|
||||
-- "TSBufToggle",
|
||||
-- "TSDisable",
|
||||
-- "TSEnable",
|
||||
-- "TSToggle",
|
||||
-- "TSInstall",
|
||||
-- "TSInstallInfo",
|
||||
-- "TSInstallSync",
|
||||
-- "TSModuleInfo",
|
||||
-- "TSUninstall",
|
||||
-- "TSUpdate",
|
||||
-- "TSUpdateSync",
|
||||
-- },
|
||||
-- build = function()
|
||||
-- local status_ok, ts = pcall(require, "nvim-treesitter.install")
|
||||
-- if not status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- ts.update({ with_sync = true })()
|
||||
-- end,
|
||||
-- config = function()
|
||||
-- local status_ok, _ = pcall(require, "nvim-treesitter")
|
||||
-- if not status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- require("user.treesitter")
|
||||
-- end,
|
||||
-- },
|
||||
-- snippets
|
||||
{
|
||||
"rafamadriz/friendly-snippets",
|
||||
event = "InsertEnter",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("user.snippets")
|
||||
require("user.snip")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
lazy = true,
|
||||
opts = {
|
||||
history = true,
|
||||
delete_check_events = "TextChanged",
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
|
||||
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "rafamadriz/friendly-snippets",
|
||||
-- event = "InsertEnter",
|
||||
-- lazy = true,
|
||||
-- config = function()
|
||||
-- require("luasnip.loaders.from_vscode").lazy_load()
|
||||
-- require("user.snippets")
|
||||
-- require("user.snip")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "L3MON4D3/LuaSnip",
|
||||
-- lazy = true,
|
||||
-- opts = {
|
||||
-- history = true,
|
||||
-- delete_check_events = "TextChanged",
|
||||
-- },
|
||||
-- -- stylua: ignore
|
||||
-- keys = {
|
||||
-- { "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
|
||||
-- { "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
||||
-- },
|
||||
-- },
|
||||
-- {
|
||||
-- "neovim/nvim-lspconfig",
|
||||
-- lazy = true,
|
||||
|
@ -84,64 +84,64 @@ return {
|
|||
-- end,
|
||||
-- },
|
||||
-- for formater linter
|
||||
{
|
||||
"RRethy/vim-illuminate",
|
||||
event = "BufRead",
|
||||
lazy = true,
|
||||
config = function()
|
||||
local status_ok, illuminate = pcall(require, "illuminate")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
illuminate.configure({
|
||||
options = {
|
||||
providers = {
|
||||
"lsp",
|
||||
"treesitter",
|
||||
"regex",
|
||||
},
|
||||
-- delay: delay in milliseconds
|
||||
delay = 120,
|
||||
-- filetype_overrides: filetype specific overrides.
|
||||
-- The keys are strings to represent the filetype while the values are tables that
|
||||
-- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist
|
||||
filetype_overrides = {},
|
||||
-- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
|
||||
filetypes_denylist = {
|
||||
"dirvish",
|
||||
"fugitive",
|
||||
"alpha",
|
||||
"NvimTree",
|
||||
"lazy",
|
||||
"neogitstatus",
|
||||
"Trouble",
|
||||
"lir",
|
||||
"Outline",
|
||||
"spectre_panel",
|
||||
"toggleterm",
|
||||
"DressingSelect",
|
||||
"TelescopePrompt",
|
||||
},
|
||||
-- filetypes_allowlist: filetypes to illuminate, this is overridden by filetypes_denylist
|
||||
filetypes_allowlist = {},
|
||||
-- modes_denylist: modes to not illuminate, this overrides modes_allowlist
|
||||
modes_denylist = {},
|
||||
-- modes_allowlist: modes to illuminate, this is overridden by modes_denylist
|
||||
modes_allowlist = {},
|
||||
-- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
|
||||
-- Only applies to the 'regex' provider
|
||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
providers_regex_syntax_denylist = {},
|
||||
-- providers_regex_syntax_allowlist: syntax to illuminate, this is overridden by providers_regex_syntax_denylist
|
||||
-- Only applies to the 'regex' provider
|
||||
-- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
providers_regex_syntax_allowlist = {},
|
||||
-- under_cursor: whether or not to illuminate under the cursor
|
||||
under_cursor = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "RRethy/vim-illuminate",
|
||||
-- event = "BufRead",
|
||||
-- lazy = true,
|
||||
-- config = function()
|
||||
-- local status_ok, illuminate = pcall(require, "illuminate")
|
||||
-- if not status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- illuminate.configure({
|
||||
-- options = {
|
||||
-- providers = {
|
||||
-- "lsp",
|
||||
-- "treesitter",
|
||||
-- "regex",
|
||||
-- },
|
||||
-- -- delay: delay in milliseconds
|
||||
-- delay = 120,
|
||||
-- -- filetype_overrides: filetype specific overrides.
|
||||
-- -- The keys are strings to represent the filetype while the values are tables that
|
||||
-- -- supports the same keys passed to .configure except for filetypes_denylist and filetypes_allowlist
|
||||
-- filetype_overrides = {},
|
||||
-- -- filetypes_denylist: filetypes to not illuminate, this overrides filetypes_allowlist
|
||||
-- filetypes_denylist = {
|
||||
-- "dirvish",
|
||||
-- "fugitive",
|
||||
-- "alpha",
|
||||
-- "NvimTree",
|
||||
-- "lazy",
|
||||
-- "neogitstatus",
|
||||
-- "Trouble",
|
||||
-- "lir",
|
||||
-- "Outline",
|
||||
-- "spectre_panel",
|
||||
-- "toggleterm",
|
||||
-- "DressingSelect",
|
||||
-- "TelescopePrompt",
|
||||
-- },
|
||||
-- -- filetypes_allowlist: filetypes to illuminate, this is overridden by filetypes_denylist
|
||||
-- filetypes_allowlist = {},
|
||||
-- -- modes_denylist: modes to not illuminate, this overrides modes_allowlist
|
||||
-- modes_denylist = {},
|
||||
-- -- modes_allowlist: modes to illuminate, this is overridden by modes_denylist
|
||||
-- modes_allowlist = {},
|
||||
-- -- providers_regex_syntax_denylist: syntax to not illuminate, this overrides providers_regex_syntax_allowlist
|
||||
-- -- Only applies to the 'regex' provider
|
||||
-- -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
-- providers_regex_syntax_denylist = {},
|
||||
-- -- providers_regex_syntax_allowlist: syntax to illuminate, this is overridden by providers_regex_syntax_denylist
|
||||
-- -- Only applies to the 'regex' provider
|
||||
-- -- Use :echom synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name')
|
||||
-- providers_regex_syntax_allowlist = {},
|
||||
-- -- under_cursor: whether or not to illuminate under the cursor
|
||||
-- under_cursor = true,
|
||||
-- },
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "jayp0521/mason-null-ls.nvim",
|
||||
-- lazy = true,
|
||||
|
@ -161,285 +161,285 @@ return {
|
|||
-- end,
|
||||
-- },
|
||||
-- debuging
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
config = function()
|
||||
require("user.dapui")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
config = function()
|
||||
require("user.mason_dap")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "rcarriga/nvim-dap-ui",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- dependencies = "mfussenegger/nvim-dap",
|
||||
-- enabled = vim.fn.has("win32") == 0,
|
||||
-- config = function()
|
||||
-- require("user.dapui")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "jay-babu/mason-nvim-dap.nvim",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
||||
-- enabled = vim.fn.has("win32") == 0,
|
||||
-- config = function()
|
||||
-- require("user.mason_dap")
|
||||
-- end,
|
||||
-- },
|
||||
-- auto pairs
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
lazy = true,
|
||||
-- commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347",
|
||||
dependencies = "hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("user.autopairs")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "windwp/nvim-autopairs",
|
||||
-- lazy = true,
|
||||
-- -- commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347",
|
||||
-- dependencies = "hrsh7th/nvim-cmp",
|
||||
-- event = "InsertEnter",
|
||||
-- config = function()
|
||||
-- require("user.autopairs")
|
||||
-- end,
|
||||
-- },
|
||||
-- untuk comment
|
||||
{
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
lazy = true,
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
require("ts_context_commentstring").setup({
|
||||
enable_autocmd = false,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"numToStr/Comment.nvim",
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("user.comment")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
version = "3.5.4",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
lazy = true,
|
||||
opts = {
|
||||
indent = {
|
||||
char = "│",
|
||||
tab_char = "│",
|
||||
},
|
||||
scope = { enabled = false },
|
||||
exclude = {
|
||||
buftypes = {
|
||||
"nofile",
|
||||
"prompt",
|
||||
"quickfix",
|
||||
"terminal",
|
||||
},
|
||||
filetypes = {
|
||||
"help",
|
||||
"alpha",
|
||||
"dashboard",
|
||||
"neo-tree",
|
||||
"Trouble",
|
||||
"trouble",
|
||||
"lazy",
|
||||
"mason",
|
||||
"notify",
|
||||
"toggleterm",
|
||||
"lazyterm",
|
||||
"NvimTree",
|
||||
"aerial",
|
||||
"neogitstatus",
|
||||
"startify",
|
||||
},
|
||||
},
|
||||
},
|
||||
main = "ibl",
|
||||
},
|
||||
-- {
|
||||
-- "JoosepAlviste/nvim-ts-context-commentstring",
|
||||
-- lazy = true,
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- config = function()
|
||||
-- require("ts_context_commentstring").setup({
|
||||
-- enable_autocmd = false,
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "numToStr/Comment.nvim",
|
||||
-- lazy = true,
|
||||
-- config = function()
|
||||
-- require("user.comment")
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "lukas-reineke/indent-blankline.nvim",
|
||||
-- version = "3.5.4",
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- lazy = true,
|
||||
-- opts = {
|
||||
-- indent = {
|
||||
-- char = "│",
|
||||
-- tab_char = "│",
|
||||
-- },
|
||||
-- scope = { enabled = false },
|
||||
-- exclude = {
|
||||
-- buftypes = {
|
||||
-- "nofile",
|
||||
-- "prompt",
|
||||
-- "quickfix",
|
||||
-- "terminal",
|
||||
-- },
|
||||
-- filetypes = {
|
||||
-- "help",
|
||||
-- "alpha",
|
||||
-- "dashboard",
|
||||
-- "neo-tree",
|
||||
-- "Trouble",
|
||||
-- "trouble",
|
||||
-- "lazy",
|
||||
-- "mason",
|
||||
-- "notify",
|
||||
-- "toggleterm",
|
||||
-- "lazyterm",
|
||||
-- "NvimTree",
|
||||
-- "aerial",
|
||||
-- "neogitstatus",
|
||||
-- "startify",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- main = "ibl",
|
||||
-- },
|
||||
-- for multi cursor select
|
||||
{
|
||||
"mg979/vim-visual-multi",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
lazy = true,
|
||||
init = function()
|
||||
vim.g.VM_mouse_mappings = 1 -- equal CTRL + Left Click on VSCODE
|
||||
vim.g.VM_maps = {
|
||||
["Find Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||
["Find Subword Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||
["Select Cursor Down"] = "<M-C-Down>", -- equal CTRL+ALT+DOWN on VSCODE
|
||||
["Select Cursor Up"] = "<M-C-Up>", -- equal CTRL+ALT+UP on VSCODE
|
||||
}
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "mg979/vim-visual-multi",
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- lazy = true,
|
||||
-- init = function()
|
||||
-- vim.g.VM_mouse_mappings = 1 -- equal CTRL + Left Click on VSCODE
|
||||
-- vim.g.VM_maps = {
|
||||
-- ["Find Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||
-- ["Find Subword Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||
-- ["Select Cursor Down"] = "<M-C-Down>", -- equal CTRL+ALT+DOWN on VSCODE
|
||||
-- ["Select Cursor Up"] = "<M-C-Up>", -- equal CTRL+ALT+UP on VSCODE
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
-- for auto close tag
|
||||
{
|
||||
"windwp/nvim-ts-autotag",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
config = function()
|
||||
require("nvim-ts-autotag").setup()
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "windwp/nvim-ts-autotag",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- config = function()
|
||||
-- require("nvim-ts-autotag").setup()
|
||||
-- end,
|
||||
-- },
|
||||
-- for auto detection file and run code
|
||||
{
|
||||
"CRAG666/code_runner.nvim",
|
||||
lazy = true,
|
||||
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
||||
config = function()
|
||||
require("user.coderunner")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "CRAG666/code_runner.nvim",
|
||||
-- lazy = true,
|
||||
-- cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
||||
-- config = function()
|
||||
-- require("user.coderunner")
|
||||
-- end,
|
||||
-- },
|
||||
-- for color view
|
||||
{
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
lazy = true,
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
opts = {
|
||||
user_default_options = {
|
||||
RGB = true, -- #RGB hex codes
|
||||
RRGGBB = true, -- #RRGGBB hex codes
|
||||
names = true, -- "Name" codes like Blue
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||
hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
-- Available modes: foreground, background
|
||||
mode = "background", -- Set the display mode.
|
||||
tailwind = true,
|
||||
},
|
||||
filetypes = {
|
||||
"*", -- Highlight all files, but customize some others.
|
||||
css = { rgb_fn = true }, -- Enable parsing rgb(...) functions in css.
|
||||
html = { names = false }, -- Disable parsing "names" like Blue or Gray
|
||||
},
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- "NvChad/nvim-colorizer.lua",
|
||||
-- lazy = true,
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- opts = {
|
||||
-- user_default_options = {
|
||||
-- RGB = true, -- #RGB hex codes
|
||||
-- RRGGBB = true, -- #RRGGBB hex codes
|
||||
-- names = true, -- "Name" codes like Blue
|
||||
-- RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
-- rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||
-- hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||
-- css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
-- css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
-- -- Available modes: foreground, background
|
||||
-- mode = "background", -- Set the display mode.
|
||||
-- tailwind = true,
|
||||
-- },
|
||||
-- filetypes = {
|
||||
-- "*", -- Highlight all files, but customize some others.
|
||||
-- css = { rgb_fn = true }, -- Enable parsing rgb(...) functions in css.
|
||||
-- html = { names = false }, -- Disable parsing "names" like Blue or Gray
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- for winbar icon
|
||||
{
|
||||
"SmiteshP/nvim-navic",
|
||||
lazy = true,
|
||||
dependencies = "neovim/nvim-lspconfig",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
require("user.breadcrumb")
|
||||
require("user.winbar")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "SmiteshP/nvim-navic",
|
||||
-- lazy = true,
|
||||
-- dependencies = "neovim/nvim-lspconfig",
|
||||
-- event = "InsertEnter",
|
||||
-- config = function()
|
||||
-- require("user.breadcrumb")
|
||||
-- require("user.winbar")
|
||||
-- end,
|
||||
-- },
|
||||
-- for popup alert
|
||||
{
|
||||
"rcarriga/nvim-notify",
|
||||
lazy = true,
|
||||
-- event = "BufWinEnter",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{
|
||||
"<leader>un",
|
||||
function()
|
||||
require("notify").dismiss({ silent = true, pending = true })
|
||||
end,
|
||||
desc = "Delete all Notifications",
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
timeout = 3000,
|
||||
max_height = function()
|
||||
return math.floor(vim.o.lines * 0.75)
|
||||
end,
|
||||
max_width = function()
|
||||
return math.floor(vim.o.columns * 0.75)
|
||||
end,
|
||||
},
|
||||
-- event = "BufWinEnter",
|
||||
config = function()
|
||||
local notify = require("notify")
|
||||
-- this for transparency
|
||||
notify.setup({ background_colour = "#000000" })
|
||||
-- this overwrites the vim notify function
|
||||
vim.notify = notify.notify
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "rcarriga/nvim-notify",
|
||||
-- lazy = true,
|
||||
-- -- event = "BufWinEnter",
|
||||
-- event = "VeryLazy",
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "<leader>un",
|
||||
-- function()
|
||||
-- require("notify").dismiss({ silent = true, pending = true })
|
||||
-- end,
|
||||
-- desc = "Delete all Notifications",
|
||||
-- },
|
||||
-- },
|
||||
-- opts = {
|
||||
-- timeout = 3000,
|
||||
-- max_height = function()
|
||||
-- return math.floor(vim.o.lines * 0.75)
|
||||
-- end,
|
||||
-- max_width = function()
|
||||
-- return math.floor(vim.o.columns * 0.75)
|
||||
-- end,
|
||||
-- },
|
||||
-- -- event = "BufWinEnter",
|
||||
-- config = function()
|
||||
-- local notify = require("notify")
|
||||
-- -- this for transparency
|
||||
-- notify.setup({ background_colour = "#000000" })
|
||||
-- -- this overwrites the vim notify function
|
||||
-- vim.notify = notify.notify
|
||||
-- end,
|
||||
-- },
|
||||
-- for resize screen
|
||||
{
|
||||
"mrjones2014/smart-splits.nvim",
|
||||
lazy = true,
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require("user.smartspit")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "mrjones2014/smart-splits.nvim",
|
||||
-- lazy = true,
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- config = function()
|
||||
-- require("user.smartspit")
|
||||
-- end,
|
||||
-- },
|
||||
-- for popup input
|
||||
{
|
||||
"stevearc/dressing.nvim",
|
||||
lazy = true,
|
||||
init = function()
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
vim.ui.select = function(...)
|
||||
require("lazy").load({ plugins = { "dressing.nvim" } })
|
||||
return vim.ui.select(...)
|
||||
end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
vim.ui.input = function(...)
|
||||
require("lazy").load({ plugins = { "dressing.nvim" } })
|
||||
return vim.ui.input(...)
|
||||
end
|
||||
end,
|
||||
config = function()
|
||||
require("user.dressing")
|
||||
end,
|
||||
}, -- mini scrollview
|
||||
{
|
||||
"dstein64/nvim-scrollview",
|
||||
lazy = true,
|
||||
-- event = "BufWinEnter",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require("user.nvimscroll")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "stevearc/dressing.nvim",
|
||||
-- lazy = true,
|
||||
-- init = function()
|
||||
-- ---@diagnostic disable-next-line: duplicate-set-field
|
||||
-- vim.ui.select = function(...)
|
||||
-- require("lazy").load({ plugins = { "dressing.nvim" } })
|
||||
-- return vim.ui.select(...)
|
||||
-- end
|
||||
-- ---@diagnostic disable-next-line: duplicate-set-field
|
||||
-- vim.ui.input = function(...)
|
||||
-- require("lazy").load({ plugins = { "dressing.nvim" } })
|
||||
-- return vim.ui.input(...)
|
||||
-- end
|
||||
-- end,
|
||||
-- config = function()
|
||||
-- require("user.dressing")
|
||||
-- end,
|
||||
-- }, -- mini scrollview
|
||||
-- {
|
||||
-- "dstein64/nvim-scrollview",
|
||||
-- lazy = true,
|
||||
-- -- event = "BufWinEnter",
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- config = function()
|
||||
-- require("user.nvimscroll")
|
||||
-- end,
|
||||
-- },
|
||||
-- for check startuptime
|
||||
{ "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime" },
|
||||
-- { "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime" },
|
||||
-- {
|
||||
-- "pojokcodeid/nvim-ts-rainbow2",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- },
|
||||
{
|
||||
"hiphish/rainbow-delimiters.nvim",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
-- Modul ini berisi beberapa definisi default
|
||||
local rainbow_delimiters = require("rainbow-delimiters")
|
||||
vim.g.rainbow_delimiters = {
|
||||
strategy = {
|
||||
[""] = rainbow_delimiters.strategy["global"],
|
||||
vim = rainbow_delimiters.strategy["local"],
|
||||
},
|
||||
query = {
|
||||
[""] = "rainbow-delimiters",
|
||||
lua = "rainbow-blocks",
|
||||
},
|
||||
priority = {
|
||||
[""] = 110,
|
||||
lua = 210,
|
||||
},
|
||||
highlight = {
|
||||
"RainbowDelimiterRed",
|
||||
"RainbowDelimiterYellow",
|
||||
"RainbowDelimiterBlue",
|
||||
"RainbowDelimiterOrange",
|
||||
"RainbowDelimiterGreen",
|
||||
"RainbowDelimiterViolet",
|
||||
"RainbowDelimiterCyan",
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
lazy = true,
|
||||
enabled = vim.fn.executable("git") == 1,
|
||||
ft = "gitcommit",
|
||||
-- event = "BufWinEnter",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("user.gitsigns")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "hiphish/rainbow-delimiters.nvim",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- config = function()
|
||||
-- -- Modul ini berisi beberapa definisi default
|
||||
-- local rainbow_delimiters = require("rainbow-delimiters")
|
||||
-- vim.g.rainbow_delimiters = {
|
||||
-- strategy = {
|
||||
-- [""] = rainbow_delimiters.strategy["global"],
|
||||
-- vim = rainbow_delimiters.strategy["local"],
|
||||
-- },
|
||||
-- query = {
|
||||
-- [""] = "rainbow-delimiters",
|
||||
-- lua = "rainbow-blocks",
|
||||
-- },
|
||||
-- priority = {
|
||||
-- [""] = 110,
|
||||
-- lua = 210,
|
||||
-- },
|
||||
-- highlight = {
|
||||
-- "RainbowDelimiterRed",
|
||||
-- "RainbowDelimiterYellow",
|
||||
-- "RainbowDelimiterBlue",
|
||||
-- "RainbowDelimiterOrange",
|
||||
-- "RainbowDelimiterGreen",
|
||||
-- "RainbowDelimiterViolet",
|
||||
-- "RainbowDelimiterCyan",
|
||||
-- },
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
-- {
|
||||
-- "lewis6991/gitsigns.nvim",
|
||||
-- lazy = true,
|
||||
-- enabled = vim.fn.executable("git") == 1,
|
||||
-- ft = "gitcommit",
|
||||
-- -- event = "BufWinEnter",
|
||||
-- event = "BufRead",
|
||||
-- config = function()
|
||||
-- require("user.gitsigns")
|
||||
-- end,
|
||||
-- },
|
||||
}
|
||||
|
|
|
@ -21,39 +21,34 @@ return {
|
|||
-- check config for theme
|
||||
local set_theme = "auto"
|
||||
local bubbles_theme
|
||||
local data_exists, config = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
if config.colorscheme ~= nil then
|
||||
local color = config.colorscheme
|
||||
switch(color, {
|
||||
["tokyonight"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-night"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-storm"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-day"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-moon"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["dracula"] = function()
|
||||
local clr = require("dracula").colors()
|
||||
colors.blue = clr.green
|
||||
colors.black = clr.black
|
||||
colors.cyan = clr.yellow
|
||||
set_theme = "bubbles_theme"
|
||||
end,
|
||||
default = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
})
|
||||
end
|
||||
end
|
||||
local color = vim.g.pcode_colorscheme
|
||||
switch(color, {
|
||||
["tokyonight"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-night"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-storm"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-day"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["tokyonight-moon"] = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
["dracula"] = function()
|
||||
local clr = require("dracula").colors()
|
||||
colors.blue = clr.green
|
||||
colors.black = clr.black
|
||||
colors.cyan = clr.yellow
|
||||
set_theme = "bubbles_theme"
|
||||
end,
|
||||
default = function()
|
||||
set_theme = "auto"
|
||||
end,
|
||||
})
|
||||
|
||||
bubbles_theme = component.bubbles_theme(colors)
|
||||
if set_theme == "auto" then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local icons = require("user.icons")
|
||||
local icons = vim.g.pcode_icons
|
||||
return {
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
lazy = true,
|
||||
|
|
|
@ -4,7 +4,7 @@ return {
|
|||
keys = { "<leader>", '"', "'", "`", "c", "v" },
|
||||
event = "VeryLazy",
|
||||
opts = function()
|
||||
local icons = require("user.icons")
|
||||
local icons = vim.g.pcode_icons
|
||||
return {
|
||||
plugins = {
|
||||
marks = false, -- shows a list of your marks on ' and `
|
||||
|
@ -95,12 +95,7 @@ return {
|
|||
nowait = true, -- use `nowait` when creating keymaps
|
||||
}
|
||||
|
||||
local wkey = {}
|
||||
local data_exists, key = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
wkey = key.whichkey
|
||||
end
|
||||
|
||||
local wkey = vim.g.pcode_whichkey
|
||||
local which_key = require("which-key")
|
||||
which_key.setup(opts)
|
||||
which_key.register(require("user.utils.whichkey").mappings, opt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue