big changes on neovim

This commit is contained in:
afoucaultc 2026-07-07 10:37:27 +02:00
parent cddb6edde7
commit 6d492f07ba
26 changed files with 242 additions and 291 deletions

View file

@ -63,3 +63,13 @@ vim.api.nvim_create_user_command("OctaveRun", function()
vim.cmd("write")
vim.cmd('!octave -qf "%:p"')
end, {})
-- set vimtex main to current file
local function vimtex_set_main()
vim.b.vimtex_main = vim.fn.expand("%:p")
vim.b.vimtex = nil
vim.fn["vimtex#init"]()
print("VimTeX main → " .. vim.b.vimtex_main)
end
vim.keymap.set("n", "<leader>lm", vimtex_set_main, { desc = "VimTeX: set main to current file" })