1
Fork 0

feat: working latex setup

This commit is contained in:
Matei Adriel 2022-02-10 01:19:52 +02:00
parent 6dd9ebbb6e
commit bea8b9131c
4 changed files with 8 additions and 2 deletions

View file

@ -10,7 +10,8 @@ local bindings = {
live_grep = "<c-F>",
-- See diagnostics with space + d
diagnostics = "<space>d",
lsp_document_diagnostics = "<space>d",
lsp_workspace_diagnostics = "<space>wd",
-- Open a list with all the pickers
builtin = "<space>t",

View file

@ -5,6 +5,8 @@ local M = {}
function M.setup()
-- Viewer method
global("vimtex_view_method", "zathura")
global("Tex_DefaultTargetFormat", "pdf")
global("vimtex_compiler_latexmk", {options = {"-pdf", "-shell-escape", "-verbose", "-file-line-error", "-synctex=1", "-interaction=nonstopmode"}})
end
return M

View file

@ -25,6 +25,7 @@
# unison-ucm
xorg.libX11
texlive.combined.scheme-full # latex stuff
python38Packages.pygments # required for latex syntax highlighting
okular
zathura
cmake

View file

@ -32,6 +32,7 @@ in
ripgrep # grep rewrite (I think?)
nodePackages.typescript # typescript language
texlive.combined.scheme-full # latex stuff
python38Packages.pygments # required for latex syntax highlighting
];
plugins = with pkgs.vimPlugins;
@ -52,11 +53,12 @@ in
nvim-tree-lua # file tree
vimtex # latex plugin
# Cmp related stuff. See https://github.com/hrsh7th/nvim-cmp
cmp-nvim-lsp
cmp-buffer
cmp-path
cmd-cmdline
cmp-cmdline
nvim-cmp
];
};