install whichkey.lua

This commit is contained in:
2026-05-25 23:31:12 +02:00
parent fcbf24c8cb
commit 7caa265474
5 changed files with 154 additions and 3 deletions
+9
View File
@@ -62,6 +62,15 @@ create_cmd({"BufRead", "BufNewFile"}, {
end,
})
-- disable list chars in specific filetypes, e.g. netrw
create_cmd({"FileType"}, {
desc = "Disable list chars for some filetypes",
pattern = { "netrw" },
callback = function(args)
vim.opt_local.list = false
end,
})
-- automatically remove trailing whitespace on save file
create_cmd({"BufWritePre"}, {
desc = "Remove trailing whitespace when saving",