feat(nvim|zathura): better latex integration
This commit is contained in:
parent
2f3ed5075f
commit
32dbb0b103
@ -275,6 +275,23 @@ lspconfig.azure_pipelines_ls.setup({
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
lspconfig.texlab.setup({
|
||||
settings = {
|
||||
texlab = {
|
||||
build = {
|
||||
onSave = true,
|
||||
executable = "tectonic",
|
||||
forwardSearchAfter = true,
|
||||
args = { "-X", "compile", "%f", "--synctex" },
|
||||
},
|
||||
forwardSearch = {
|
||||
executable = "zathura",
|
||||
args = { "--synctex-forward", "%l:1:%f", "%p" },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
local path = vim.fn.stdpath("config") .. "/spell/en.utf-8.add"
|
||||
local words = {}
|
||||
|
||||
@ -315,7 +332,6 @@ for _, server in ipairs({
|
||||
"tsserver",
|
||||
"rnix",
|
||||
"marksman",
|
||||
"texlab",
|
||||
}) do
|
||||
lspconfig[server].setup(opts)
|
||||
end
|
||||
|
@ -590,12 +590,22 @@ lazy.setup({
|
||||
"gaoDean/autolist.nvim",
|
||||
ft = {
|
||||
"markdown",
|
||||
"tex",
|
||||
"text",
|
||||
"tex",
|
||||
"plaintex",
|
||||
"norg",
|
||||
},
|
||||
opts = {},
|
||||
config = function()
|
||||
local autolist = require("autolist")
|
||||
autolist.setup()
|
||||
autolist.create_mapping_hook("i", "<CR>", autolist.new)
|
||||
autolist.create_mapping_hook("i", "<Tab>", autolist.indent)
|
||||
autolist.create_mapping_hook("i", "<S-Tab>", autolist.indent, "<C-D>")
|
||||
autolist.create_mapping_hook("n", "o", autolist.new)
|
||||
autolist.create_mapping_hook("n", "O", autolist.new_before)
|
||||
autolist.create_mapping_hook("n", ">>", autolist.indent)
|
||||
autolist.create_mapping_hook("n", "<<", autolist.indent)
|
||||
autolist.create_mapping_hook("n", "<C-r>", autolist.force_recalculate)
|
||||
end,
|
||||
},
|
||||
|
||||
-- Tint inactive windows
|
||||
|
@ -38,3 +38,6 @@ set recolor "true"
|
||||
set recolor-keephue "true"
|
||||
|
||||
set database "plain"
|
||||
|
||||
set synctex true
|
||||
set synctex-editor-command "code -g %{input}:%{line}"
|
||||
|
Loading…
Reference in New Issue
Block a user