mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 18:34:46 +01:00
NVIM: Keymap layout is now Lazy-centric
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
return {
|
||||
-- clean up white spaces and empty lines before writing
|
||||
{
|
||||
"mcauley-penney/tidy.nvim",
|
||||
branch = "main",
|
||||
opts = {
|
||||
"mcauley-penney/tidy.nvim",
|
||||
branch = "main",
|
||||
ft = { "markdown", "tex" },
|
||||
config = function()
|
||||
local tidy = require("tidy")
|
||||
tidy.setup({
|
||||
filetype_exclude = { "diff" },
|
||||
},
|
||||
},
|
||||
})
|
||||
tidy.opts.enabled_on_save = false
|
||||
vim.api.nvim_create_autocmd("BufLeave", {
|
||||
pattern = { "*.md", "*.tex" },
|
||||
callback = function()
|
||||
if vim.bo.modifiable then
|
||||
tidy.run()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user