projects
/
dotfiles_nvim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2316ef9
)
add missing description strings
author
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 11 Oct 2026 11:34:40 +0000
(13:34 +0200)
committer
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 11 Oct 2026 11:34:40 +0000
(13:34 +0200)
lua/config/autocommands.lua
patch
|
blob
|
history
diff --git
a/lua/config/autocommands.lua
b/lua/config/autocommands.lua
index 590a94ef369c84bb3171f62370efb9d050188518..dc557fb431e7b596ed61416e9bcfb25cded4902a 100644
(file)
--- a/
lua/config/autocommands.lua
+++ b/
lua/config/autocommands.lua
@@
-25,6
+25,7
@@
vim.api.nvim_create_autocmd( "FileType", {
-- run ctags on save
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
+ desc = "run ctags on save",
pattern = {'*.c', '*.h'},
group = vim.api.nvim_create_augroup('ctags-on-save', { clear = true }),
callback = require("snippets.ctags").run
@@
-32,6
+33,7
@@
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
-- remove trailing whitespace on save
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
+ desc = "remove trailing whitespace on save",
pattern = { "*" },
command = [[%s/\s\+$//e]],
})