install whichkey.lua
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user