update key help config in nvim
This commit is contained in:
parent
b3413bffdb
commit
4ade38347c
5 changed files with 69 additions and 51 deletions
|
|
@ -5,6 +5,8 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
|
||||||
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
|
||||||
|
{ "<leader>bh", "<Cmd>BufferLineMovePrev<CR>", desc = "Move buffer to right" },
|
||||||
|
{ "<leader>bl", "<Cmd>BufferLineMoveNext<CR>", desc = "Move buffer to left" },
|
||||||
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev buffer" },
|
{ "<S-h>", "<cmd>BufferLineCyclePrev<cr>", desc = "Prev buffer" },
|
||||||
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next buffer" },
|
{ "<S-l>", "<cmd>BufferLineCycleNext<cr>", desc = "Next buffer" },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ return {
|
||||||
config = nil,
|
config = nil,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>c",
|
"<leader>bc",
|
||||||
function()
|
function()
|
||||||
require("bufdelete").bufdelete(0, true)
|
require("bufdelete").bufdelete(0, true)
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
"echasnovski/mini.nvim",
|
"echasnovski/mini.clue",
|
||||||
version = "*",
|
version = "*",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
|
|
@ -37,20 +37,33 @@ return {
|
||||||
{ mode = "x", keys = "z" },
|
{ mode = "x", keys = "z" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Add a "postkeys" value to activate those keys after others
|
||||||
clues = {
|
clues = {
|
||||||
-- Enhance this by adding descriptions for <Leader> mapping groups
|
|
||||||
miniclue.gen_clues.builtin_completion(),
|
miniclue.gen_clues.builtin_completion(),
|
||||||
miniclue.gen_clues.g(),
|
miniclue.gen_clues.g(),
|
||||||
miniclue.gen_clues.marks(),
|
miniclue.gen_clues.marks(),
|
||||||
miniclue.gen_clues.registers(),
|
miniclue.gen_clues.registers(),
|
||||||
miniclue.gen_clues.windows(),
|
miniclue.gen_clues.windows(),
|
||||||
miniclue.gen_clues.z(),
|
miniclue.gen_clues.z(),
|
||||||
|
|
||||||
|
{ mode = "n", keys = "<Leader>b", desc = "+Buffers" },
|
||||||
|
{ mode = "n", keys = "<Leader>bh", postkeys = "<Leader>b" },
|
||||||
|
{ mode = "n", keys = "<Leader>bl", postkeys = "<Leader>b" },
|
||||||
|
{ mode = "n", keys = "<Leader>l", desc = "+LSP" },
|
||||||
|
{ mode = "n", keys = "<Leader>f", desc = "+Find" },
|
||||||
|
{ mode = "n", keys = "<Leader>g", desc = "+Git" },
|
||||||
|
{ mode = "n", keys = "<Leader>w", desc = "+Workspace" },
|
||||||
|
{ mode = "n", keys = "<Leader>u", desc = "+UI" },
|
||||||
|
{ mode = "n", keys = "<Leader>un", desc = "+Noice" },
|
||||||
|
{ mode = "n", keys = "<Leader><Leader>", desc = "+Harpoon" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Clue window settings
|
-- Clue window settings
|
||||||
window = {
|
window = {
|
||||||
-- Floating window config
|
-- Floating window config
|
||||||
config = {},
|
config = {
|
||||||
|
width = "auto",
|
||||||
|
},
|
||||||
|
|
||||||
-- Delay before showing clue window
|
-- Delay before showing clue window
|
||||||
delay = 200,
|
delay = 200,
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ return {
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Additional lua configuration, makes nvim stuff amazing!
|
-- Additional lua configuration, makes nvim stuff amazing!
|
||||||
{ "folke/neodev.nvim", opts = {} },
|
{ "folke/neodev.nvim", opts = {} },
|
||||||
},
|
},
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
|
|
@ -40,8 +40,8 @@ return {
|
||||||
vim.keymap.set("n", keys, func, { buffer = bufnr, desc = desc })
|
vim.keymap.set("n", keys, func, { buffer = bufnr, desc = desc })
|
||||||
end
|
end
|
||||||
|
|
||||||
nmap("<leader>rn", vim.lsp.buf.rename, "[R]e[n]ame")
|
nmap("<leader>lr", vim.lsp.buf.rename, "[R]e[n]ame")
|
||||||
nmap("<leader>ca", vim.lsp.buf.code_action, "[C]ode [A]ction")
|
nmap("<leader>la", vim.lsp.buf.code_action, "[C]ode [A]ction")
|
||||||
|
|
||||||
nmap("gd", vim.lsp.buf.definition, "Go to definition")
|
nmap("gd", vim.lsp.buf.definition, "Go to definition")
|
||||||
nmap("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
nmap("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences")
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,47 @@
|
||||||
return {
|
return {
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
-- OPTIONAL:
|
-- OPTIONAL:
|
||||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||||
-- If not available, we use `mini` as the fallback
|
-- If not available, we use `mini` as the fallback
|
||||||
{ "rcarriga/nvim-notify", opts = {
|
{
|
||||||
background_colour = "#000000",
|
"rcarriga/nvim-notify",
|
||||||
} },
|
opts = {
|
||||||
},
|
background_colour = "#000000",
|
||||||
opts = {
|
}
|
||||||
lsp = {
|
},
|
||||||
override = {
|
},
|
||||||
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
opts = {
|
||||||
["vim.lsp.util.stylize_markdown"] = true,
|
lsp = {
|
||||||
["cmp.entry.get_documentation"] = true,
|
override = {
|
||||||
},
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||||
},
|
["vim.lsp.util.stylize_markdown"] = true,
|
||||||
routes = {
|
["cmp.entry.get_documentation"] = true,
|
||||||
{
|
},
|
||||||
filter = {
|
},
|
||||||
event = "msg_show",
|
routes = {
|
||||||
any = {
|
{
|
||||||
{ find = "%d+L, %d+B" },
|
filter = {
|
||||||
{ find = "; after #%d+" },
|
event = "msg_show",
|
||||||
{ find = "; before #%d+" },
|
any = {
|
||||||
},
|
{ find = "%d+L, %d+B" },
|
||||||
},
|
{ find = "; after #%d+" },
|
||||||
view = "mini",
|
{ find = "; before #%d+" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
presets = {
|
view = "mini",
|
||||||
bottom_search = true,
|
},
|
||||||
command_palette = true,
|
},
|
||||||
long_message_to_split = true,
|
presets = {
|
||||||
inc_rename = true,
|
bottom_search = true,
|
||||||
},
|
command_palette = true,
|
||||||
},
|
long_message_to_split = true,
|
||||||
|
inc_rename = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
@ -49,19 +52,19 @@ return {
|
||||||
"Redirect Cmdline"
|
"Redirect Cmdline"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>snl",
|
"<leader>unl",
|
||||||
function() require("noice").cmd("last") end,
|
function() require("noice").cmd("last") end,
|
||||||
desc =
|
desc =
|
||||||
"Noice Last Message"
|
"Noice Last Message"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>snh",
|
"<leader>unh",
|
||||||
function() require("noice").cmd("history") end,
|
function() require("noice").cmd("history") end,
|
||||||
desc =
|
desc =
|
||||||
"Noice History"
|
"Noice History"
|
||||||
},
|
},
|
||||||
{ "<leader>sna", function() require("noice").cmd("all") end, desc = "Noice All" },
|
{ "<leader>una", function() require("noice").cmd("all") end, desc = "Noice All" },
|
||||||
{ "<leader>snd", function() require("noice").cmd("dismiss") end, desc = "Dismiss All" },
|
{ "<leader>und", function() require("noice").cmd("dismiss") end, desc = "Dismiss All" },
|
||||||
{
|
{
|
||||||
"<c-f>",
|
"<c-f>",
|
||||||
function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end,
|
function() if not require("noice.lsp").scroll(4) then return "<c-f>" end end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue