From f3e2fe1e22c5bf93482601a3f9a23b1da4e840ad Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Thu, 25 Jul 2024 13:57:09 +0200 Subject: [PATCH] remove deprecated which-key conf --- lua/lazy-load.lua | 3 -- lua/plugins/which-key.lua | 73 +++++++-------------------------------- 2 files changed, 13 insertions(+), 63 deletions(-) diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index 77c7508..d7fd83e 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -159,9 +159,6 @@ require("lazy").setup({ { 'sheerun/vim-polyglot' }, -- themes - { - 'Mofiqul/dracula.nvim', - }, { "ellisonleao/gruvbox.nvim", priority = 1000, config = true }, --Fuzzy search by Telescope and its dependencies: diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua index bbf6446..06f28c7 100644 --- a/lua/plugins/which-key.lua +++ b/lua/plugins/which-key.lua @@ -19,66 +19,19 @@ return { g = true, -- bindings for prefixed with g }, }, - -- 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: - -- [""] = "SPC", - -- [""] = "RET", - -- [""] = "TAB", - }, - motions = { - count = true, - }, - icons = { - breadcrumb = "»", -- symbol used in the command line area that shows your active key combo - separator = "➜", -- symbol used between a key and it's label - group = "+", -- symbol prepended to a group - }, - popup_mappings = { - scroll_down = "", -- binding to scroll down inside the popup - scroll_up = "", -- binding to scroll up inside the popup - }, - window = { - border = "single", -- none, single, double, shadow - position = "bottom", -- bottom, top - margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left] - padding = { 1, 2, 1, 2 }, -- extra window padding [top, right, bottom, left] - winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent - }, - layout = { - height = { min = 4, max = 25 }, -- min and max height of the columns - width = { min = 20, max = 50 }, -- min and max width of the columns - spacing = 3, -- spacing between columns - align = "left", -- align columns left, center or right - }, - ignore_missing = false, -- enable this to hide mappings for which you didn't specify a label - hidden = { "", "", "", "", "^:", "^ ", "^call ", "^lua " }, -- hide mapping boilerplate - show_help = true, -- show a help message in the command line for using WhichKey - show_keys = true, -- show the currently pressed key and its label as a message in the command line - triggers = "auto", -- automatically setup triggers - -- triggers = {""} -- or specifiy a list manually - -- list of triggers, where WhichKey should not wait for timeoutlen and show immediately - triggers_nowait = { - -- marks - "`", - "'", - "g`", - "g'", - -- registers - '"', - "", - -- spelling - "z=", - }, - triggers_blacklist = { - -- list of mode / prefixes that should never be hooked by WhichKey - -- this is mostly relevant for keymaps that start with a native binding - i = { "j", "k" }, - v = { "j", "k" }, - }, + --icons = { + --breadcrumb = "»", -- symbol used in the command line area that shows your active key combo + --separator = "➜", -- symbol used between a key and it's label + --group = "+", -- symbol prepended to a group + --}, + --layout = { + --height = { min = 4, max = 25 }, -- min and max height of the columns + --width = { min = 20, max = 50 }, -- min and max width of the columns + --spacing = 3, -- spacing between columns + --align = "left", -- align columns left, center or right + --}, + show_help = true, -- show a help message in the command line for using WhichKey + show_keys = true, -- show the currently pressed key and its label as a message in the command line -- disable the WhichKey popup for certain buf types and file types. -- Disabled by deafult for Telescope disable = {