generation 552 25.11.20250714.62e0f05

This commit is contained in:
2025-12-18 03:31:28 -05:00
parent 11607d24a4
commit 2aab3f2174
2 changed files with 24 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
vim-airline-themes
plenary-nvim
nvim-web-devicons
texpresso-vim
{
plugin = smear-cursor-nvim;
config = toLuaFile ./plugins/smear.lua;

View File

@@ -165,6 +165,29 @@ vim.api.nvim_create_autocmd("FileType", {
command = "setlocal wrap"
})
vim.api.nvim_create_autocmd("FileType", {
desc = "texpresso compile",
group = "vimrc",
pattern = "tex",
callback = function(args)
-- start server on first BufWrite
vim.api.nvim_create_autocmd("BufWritePost", {
group = vim.api.nvim_create_augroup(
string.format("latex<buffer=%d>", args.buf),
{ clear = true }
),
buffer = args.buf,
callback = function()
if not vim.b.latex_started then
vim.cmd "TeXpresso %"
vim.b.latex_started = true
end
-- vim.cmd "VimtexView"
end,
})
end,
})
-- idk why i need to define it here bro
-- local builtin = require('telescope.builtin')
-- vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })