big changes on neovim
This commit is contained in:
parent
cddb6edde7
commit
6d492f07ba
26 changed files with 242 additions and 291 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue