generation 552 25.11.20250714.62e0f05
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
vim-airline-themes
|
vim-airline-themes
|
||||||
plenary-nvim
|
plenary-nvim
|
||||||
nvim-web-devicons
|
nvim-web-devicons
|
||||||
|
texpresso-vim
|
||||||
{
|
{
|
||||||
plugin = smear-cursor-nvim;
|
plugin = smear-cursor-nvim;
|
||||||
config = toLuaFile ./plugins/smear.lua;
|
config = toLuaFile ./plugins/smear.lua;
|
||||||
|
|||||||
@@ -165,6 +165,29 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
command = "setlocal wrap"
|
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
|
-- idk why i need to define it here bro
|
||||||
-- local builtin = require('telescope.builtin')
|
-- local builtin = require('telescope.builtin')
|
||||||
-- vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
-- vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
||||||
|
|||||||
Reference in New Issue
Block a user