1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/nvim/lua/autocmd.lua

16 lines
356 B
Lua
Raw Normal View History

2022-06-22 11:26:05 +00:00
-- Highlight on yank
vim.api.nvim_create_autocmd("TextYankPost", {
pattern = "*",
2022-08-16 15:45:53 +00:00
callback = function()
vim.highlight.on_yank({ timeout = 1200 })
end,
})
-- set ft of .jinja.html files to htmldjango
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = "*.jinja.html",
callback = function()
vim.bo.filetype = "htmldjango"
end,
2022-06-22 11:26:05 +00:00
})