Add which_key plugin
This commit is contained in:
parent
d3d7f6bd0a
commit
e1dec1ee53
2 changed files with 22 additions and 2 deletions
20
lua/custom/plugins/which_key.lua
Normal file
20
lua/custom/plugins/which_key.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
-- Telling nvim that it can load this plugin later, and that it is not
|
||||
-- that important for initial UI
|
||||
event = "VeryLazy",
|
||||
-- Function that will run while neovim startup instead of when plugin is actualy loads
|
||||
init = function()
|
||||
-- How long which-key will wait until activation
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 500
|
||||
end,
|
||||
-- Options that will pass to setup function, but we are leaving it empty to use
|
||||
-- default configuration
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
}
|
||||
|
|
@ -14,9 +14,9 @@ vim.keymap.set("n", "<leader>xL", "<cmd>Trouble loclist toggle<cr>", { desc = "L
|
|||
vim.keymap.set("n", "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", { desc = "Quickfix List (Trouble)" })
|
||||
|
||||
-- Telescope integration
|
||||
local actions = require("telescope.actions")
|
||||
-- local actions = require("telescope.actions")
|
||||
local open_with_trouble = require("trouble.sources.telescope").open
|
||||
local add_to_trouble = require("trouble.sources.telescope").add
|
||||
-- local add_to_trouble = require("trouble.sources.telescope").add
|
||||
|
||||
require("telescope").setup({
|
||||
defaults = {
|
||||
|
|
Loading…
Reference in a new issue