mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
add: config global variable
This commit is contained in:
parent
77436b89c4
commit
a7726a6b33
30 changed files with 703 additions and 857 deletions
|
@ -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