mirror of
https://github.com/softinio/nvim-config.git
synced 2025-09-05 09:06:42 -07:00
migrate to lazy.nvim
This commit is contained in:
parent
4a91484477
commit
34e314944e
22 changed files with 570 additions and 892 deletions
40
lua/plugins/texlabconfig.lua
Normal file
40
lua/plugins/texlabconfig.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
return {
|
||||
"f3fora/nvim-texlabconfig",
|
||||
build = "go build",
|
||||
dependencies = { "lervag/vimtex" },
|
||||
config = function()
|
||||
-- vimtex
|
||||
vim.g.vimtex_view_method = "skim"
|
||||
vim.g.vimtex_compiler_method = "tectonic"
|
||||
|
||||
-- nvim-texlabconfig
|
||||
local tex_preview_executable = "/Applications/Skim.app/Contents/SharedSupport/displayline"
|
||||
local tex_preview_args = { "%l", "%p", "%f" }
|
||||
local texlab_build_executable = "tectonic"
|
||||
local texlab_build_args = {
|
||||
"-X",
|
||||
"compile",
|
||||
"%f",
|
||||
"--synctex",
|
||||
"--keep-logs",
|
||||
"--keep-intermediates",
|
||||
}
|
||||
require("texlabconfig").setup({
|
||||
cache_activate = true,
|
||||
cache_filetypes = { "tex", "bib" },
|
||||
reverse_search_edit_cmd = vim.cmd.edit,
|
||||
settings = {
|
||||
texlab = {
|
||||
build = {
|
||||
executable = texlab_build_executable,
|
||||
args = texlab_build_args,
|
||||
},
|
||||
forwardSearch = {
|
||||
executable = tex_preview_executable,
|
||||
args = tex_preview_args,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue