fix latex setup
This commit is contained in:
1 parent
fdc5ae7fcf
commit
1a38f7a6af
4 files changed
+23
-5
No files matched your search
+14
-1
@@ -22,9 +22,22 @@ m.nmap("[d", vim.diagnostic.goto_prev)
|
|||||||
m.nmap("]d", vim.diagnostic.goto_next)
|
m.nmap("]d", vim.diagnostic.goto_next)
|
||||||
m.nmap("<leader>q", vim.diagnostic.setloclist)
|
m.nmap("<leader>q", vim.diagnostic.setloclist)
|
||||||
|
|
||||||
-- easier <C-6>
|
-- "alt tab"
|
||||||
m.nmap("<leader>n", "<C-6>")
|
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
|
-- colemak-dh
|
||||||
local l = u.layout
|
local l = u.layout
|
||||||
l.swap("n", "h")
|
l.swap("n", "h")
|
||||||
|
|||||||
@@ -15,10 +15,6 @@ return {
|
|||||||
"scalameta/nvim-metals",
|
"scalameta/nvim-metals",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" }
|
dependencies = { "nvim-lua/plenary.nvim" }
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"lervag/vimtex",
|
|
||||||
config = function() vim.g.vimtex_view_method = 'zathura' end
|
|
||||||
},
|
|
||||||
"mfussenegger/nvim-jdtls",
|
"mfussenegger/nvim-jdtls",
|
||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
}
|
}
|
||||||
@@ -49,6 +49,15 @@ local config = function()
|
|||||||
c.pylsp.setup {}
|
c.pylsp.setup {}
|
||||||
c.kotlin_language_server.setup {}
|
c.kotlin_language_server.setup {}
|
||||||
c.jsonls.setup {}
|
c.jsonls.setup {}
|
||||||
|
c.texlab.setup {
|
||||||
|
settings = {
|
||||||
|
texlab = {
|
||||||
|
build = {
|
||||||
|
onSave = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require 'config.lsp-settings'
|
require 'config.lsp-settings'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user