fix latex setup

This commit is contained in:
iris committed 2023-04-10 01:03:47 -04:00
1 parent fdc5ae7fcf
commit 1a38f7a6af
4 files changed
+23 -5

No files matched your search

+14 -1
View File
@@ -22,9 +22,22 @@ m.nmap("[d", vim.diagnostic.goto_prev)
m.nmap("]d", vim.diagnostic.goto_next)
m.nmap("<leader>q", vim.diagnostic.setloclist)
-- easier <C-6>
-- "alt tab"
m.nmap("<leader>n", "<C-6>")
-- open zathura for current tex
-- I want to make this more generic
-- however,,,,,, I hate regex
-- and lua contains no path utils :)
m.nmap("<leader>ot", function ()
local path = vim.api.nvim_buf_get_name(0)
io.popen("zathura "
..path:match("(.*).tex")
..".pdf"
)
end)
-- TODO: refactor so map() uses a layout file and converts
-- colemak-dh
local l = u.layout
l.swap("n", "h")