Refactor config: fix conflicts, add features, update docs
- Fix keymap conflicts: session (<leader>sS/sR), substitute (<leader>sl) - Remove duplicate keymaps (window, resize) and options (synmaxcol, foldmethod) - Add which-key group names for better keymap organization - Add auto-format on save with smart filtering (conform.nvim) - Add diagnostic float on hover (CursorHold) - Add safe buffer close with unsaved changes confirmation - Add quickfix/location list navigation keymaps - Add startup config validation (nvim version, executables) - Enable plugin update notifications in lazy.nvim - Clean up: remove temporary files (kkk, cleanup script) - Clean up: remove commented code and fix double function loading - Update README.md with comprehensive documentation - Add CHANGELOG.md tracking all changes
This commit is contained in:
@@ -5,9 +5,38 @@ return {
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 200 -- Reduced from 500 for faster response
|
||||
end,
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
config = function()
|
||||
local wk = require("which-key")
|
||||
|
||||
wk.setup({
|
||||
plugins = {
|
||||
marks = true,
|
||||
registers = true,
|
||||
spelling = { enabled = true, suggestions = 20 },
|
||||
},
|
||||
win = {
|
||||
border = "rounded",
|
||||
padding = { 2, 2, 2, 2 },
|
||||
},
|
||||
})
|
||||
|
||||
-- Register group names for better organization
|
||||
wk.add({
|
||||
{ "<leader>b", group = "Buffer" },
|
||||
{ "<leader>c", group = "Code/Copilot" },
|
||||
{ "<leader>d", group = "Debug/DAP" },
|
||||
{ "<leader>e", group = "Explorer" },
|
||||
{ "<leader>f", group = "Find/Files" },
|
||||
{ "<leader>g", group = "Git" },
|
||||
{ "<leader>l", group = "LSP/LeetCode" },
|
||||
{ "<leader>m", group = "Format" },
|
||||
{ "<leader>n", group = "Notifications" },
|
||||
{ "<leader>p", group = "Project" },
|
||||
{ "<leader>q", group = "Quickfix" },
|
||||
{ "<leader>s", group = "Session/Split/Substitute" },
|
||||
{ "<leader>t", group = "Tab/Terminal/Text" },
|
||||
{ "<leader>x", group = "Trouble/Diagnostics" },
|
||||
{ "<leader>z", group = "Copilot Chat" },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user