mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 17:58:46 +02:00
enc: update config which-key
This commit is contained in:
parent
a2240b582c
commit
38a9984694
22 changed files with 103 additions and 945 deletions
39
lua/plugins/themes/evatheme.lua
Normal file
39
lua/plugins/themes/evatheme.lua
Normal file
|
@ -0,0 +1,39 @@
|
|||
local clr = pcode.colorscheme or "gruvbox-baby"
|
||||
if substring(tostring(clr), "Eva") and true or false then
|
||||
return {
|
||||
"sharpchen/Eva-Theme.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("Eva-Theme").setup({})
|
||||
local color = require("Eva-Theme.palette").dark
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
local hi = vim.api.nvim_set_hl
|
||||
hi(0, "LspInfoBorder", { fg = "#2F3F5C" })
|
||||
hi(0, "FloatBorder", { fg = "#2F3F5C" })
|
||||
hi(0, "StatusLine", { bg = color.background })
|
||||
hi(0, "StatusLineNC", { bg = color.background })
|
||||
hi(0, "WinBar", { bg = color.background })
|
||||
hi(0, "WinBarNC", { bg = color.background })
|
||||
hi(0, "NormalFloat", { bg = color.background })
|
||||
hi(0, "NormalNC", { bg = color.background })
|
||||
hi(0, "@tag.delimiter.javascript", { fg = "#838FA7" })
|
||||
hi(0, "@tag.delimiter.tsx", { fg = "#838FA7" })
|
||||
-- git
|
||||
hi(0, "NvimTreeGitNewIcon", { bg = color.dark, fg = color.git.added })
|
||||
hi(0, "NvimTreeGitRenamedIcon", { bg = color.dark, fg = color.git.added })
|
||||
hi(0, "NvimTreeGitDeletedIcon", { bg = color.dark, fg = color.git.stagedDeleted })
|
||||
hi(0, "NvimTreeGitDirtyIcon", { bg = color.dark, fg = color.git.diffModified })
|
||||
hi(0, "NvimTreeGitIgnoredIcon", { bg = color.dark, fg = color.git.ignored })
|
||||
hi(0, "NvimTreeGitMergeIcon", { bg = color.dark, fg = color.git.diffModified })
|
||||
hi(0, "NvimTreeGitStagedIcon", { bg = color.dark, fg = color.git.stagedModified })
|
||||
hi(0, "MiniIndentscopeSymbol", { bg = color.dark, fg = color.parameter })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
else
|
||||
return {}
|
||||
end
|
|
@ -10,6 +10,7 @@ if (color == "darcula-dark") and true or false then
|
|||
require("darcula").setup({
|
||||
colors = {
|
||||
lavender = "#9876AA",
|
||||
statusline = "NONE",
|
||||
},
|
||||
})
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
|
|
|
@ -27,22 +27,58 @@ return {
|
|||
}, -- add operators that will trigger motion and text object completion
|
||||
-- to enable all native operators, set the preset / operators plugin above
|
||||
-- operators = { gc = "Comments" },
|
||||
key_labels = {
|
||||
-- override the label used to display some keys. It doesn't effect WK in any other way.
|
||||
-- For example:
|
||||
-- ["<space>"] = "SPC",
|
||||
-- ["<cr>"] = "RET",
|
||||
-- ["<tab>"] = "TAB",
|
||||
replace = {
|
||||
key = {
|
||||
function(key)
|
||||
return require("which-key.view").format(key)
|
||||
end,
|
||||
-- { "<Space>", "SPC" },
|
||||
},
|
||||
desc = {
|
||||
{ "<Plug>%((.*)%)", "%1" },
|
||||
{ "^%+", "" },
|
||||
{ "<[cC]md>", "" },
|
||||
{ "<[cC][rR]>", "" },
|
||||
{ "<[sS]ilent>", "" },
|
||||
{ "^lua%s+", "" },
|
||||
{ "^call%s+", "" },
|
||||
{ "^:%s*", "" },
|
||||
},
|
||||
},
|
||||
icons = {
|
||||
rules = false,
|
||||
breadcrumb = icons.ui.DoubleChevronRight, -- symbol used in the command line area that shows your active key combo
|
||||
separator = icons.ui.BoldArrowRight, -- symbol used between a key and it's label
|
||||
group = icons.ui.Plus, -- symbol prepended to a group
|
||||
},
|
||||
popup_mappings = {
|
||||
scroll_down = "<c-d>", -- binding to scroll down inside the popup
|
||||
scroll_up = "<c-u>", -- binding to scroll up inside the popup
|
||||
keys = {
|
||||
Up = " ",
|
||||
Down = " ",
|
||||
Left = " ",
|
||||
Right = " ",
|
||||
C = " ",
|
||||
M = " ",
|
||||
S = " ",
|
||||
CR = " ",
|
||||
Esc = " ",
|
||||
ScrollWheelDown = " ",
|
||||
ScrollWheelUp = " ",
|
||||
NL = " ",
|
||||
BS = "⌫ ",
|
||||
Space = " ",
|
||||
Tab = " ",
|
||||
F1 = "",
|
||||
F2 = "",
|
||||
F3 = "",
|
||||
F4 = "",
|
||||
F5 = "",
|
||||
F6 = "",
|
||||
F7 = "",
|
||||
F8 = "",
|
||||
F9 = "",
|
||||
F10 = "",
|
||||
F11 = "",
|
||||
F12 = "",
|
||||
},
|
||||
},
|
||||
win = {
|
||||
-- width = 1,
|
||||
|
@ -66,46 +102,19 @@ return {
|
|||
spacing = 3, -- spacing between columns
|
||||
align = "left", -- align columns left, center or right
|
||||
},
|
||||
ignore_missing = true, -- enable this to hide mappings for which you didn't specify a label
|
||||
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate
|
||||
show_help = true, -- show help message on the command line when the popup is visible
|
||||
show_keys = true, -- show the currently pressed key and its label as a message in the command line
|
||||
triggers = "auto", -- automatically setup triggers
|
||||
-- triggers = {"<leader>"} -- or specify a list manually
|
||||
triggers_blacklist = {
|
||||
-- list of mode / prefixes that should never be hooked by WhichKey
|
||||
-- this is mostly relevant for key maps that start with a native binding
|
||||
-- most people should not need to change this
|
||||
i = { "j", "k" },
|
||||
v = { "j", "k" },
|
||||
},
|
||||
-- Disabled by default for Telescope
|
||||
disable = {
|
||||
buftypes = {},
|
||||
filetypes = { "TelescopePrompt" },
|
||||
},
|
||||
---@type false | "classic" | "modern" | "helix"
|
||||
preset = "classic",
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
-- local opt = {
|
||||
-- mode = "n", -- NORMAL mode
|
||||
-- prefix = "<leader>",
|
||||
-- buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
|
||||
-- silent = true, -- use `silent` when creating keymaps
|
||||
-- noremap = true, -- use `noremap` when creating keymaps
|
||||
-- nowait = true, -- use `nowait` when creating keymaps
|
||||
-- }
|
||||
--
|
||||
-- local opt2 = {
|
||||
-- mode = "v", -- NORMAL mode
|
||||
-- prefix = "<leader>",
|
||||
-- buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
|
||||
-- silent = true, -- use `silent` when creating keymaps
|
||||
-- noremap = true, -- use `noremap` when creating keymaps
|
||||
-- nowait = true, -- use `nowait` when creating keymaps
|
||||
-- }
|
||||
--
|
||||
-- local wkey = pcode.whichkey or {}
|
||||
local which_key = require("which-key")
|
||||
which_key.setup(opts)
|
||||
which_key.add({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue