mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
updated neovim to use modern lazy
This commit is contained in:
23
.config/nvim/after/ftplugin/tex.lua
Normal file
23
.config/nvim/after/ftplugin/tex.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
||||
callback = function()
|
||||
require("tidy").opts.enabled_on_save = false
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufLeave" }, {
|
||||
callback = function()
|
||||
if vim.o.ma then
|
||||
require("tidy").run()
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
||||
callback = function()
|
||||
os.execute("texclear " .. vim.fn.expand("%"))
|
||||
end,
|
||||
})
|
||||
|
||||
vim.o.shiftwidth = 2
|
||||
vim.o.softtabstop = 2
|
||||
vim.o.textwidth = 80
|
||||
Reference in New Issue
Block a user