feat: working latex setup
This commit is contained in:
parent
6dd9ebbb6e
commit
bea8b9131c
|
@ -10,7 +10,8 @@ local bindings = {
|
||||||
live_grep = "<c-F>",
|
live_grep = "<c-F>",
|
||||||
|
|
||||||
-- See diagnostics with space + d
|
-- 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
|
-- Open a list with all the pickers
|
||||||
builtin = "<space>t",
|
builtin = "<space>t",
|
||||||
|
|
|
@ -5,6 +5,8 @@ local M = {}
|
||||||
function M.setup()
|
function M.setup()
|
||||||
-- Viewer method
|
-- Viewer method
|
||||||
global("vimtex_view_method", "zathura")
|
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
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
# unison-ucm
|
# unison-ucm
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
texlive.combined.scheme-full # latex stuff
|
texlive.combined.scheme-full # latex stuff
|
||||||
|
python38Packages.pygments # required for latex syntax highlighting
|
||||||
okular
|
okular
|
||||||
zathura
|
zathura
|
||||||
cmake
|
cmake
|
||||||
|
|
|
@ -32,6 +32,7 @@ in
|
||||||
ripgrep # grep rewrite (I think?)
|
ripgrep # grep rewrite (I think?)
|
||||||
nodePackages.typescript # typescript language
|
nodePackages.typescript # typescript language
|
||||||
texlive.combined.scheme-full # latex stuff
|
texlive.combined.scheme-full # latex stuff
|
||||||
|
python38Packages.pygments # required for latex syntax highlighting
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins;
|
plugins = with pkgs.vimPlugins;
|
||||||
|
@ -52,11 +53,12 @@ in
|
||||||
nvim-tree-lua # file tree
|
nvim-tree-lua # file tree
|
||||||
vimtex # latex plugin
|
vimtex # latex plugin
|
||||||
|
|
||||||
|
|
||||||
# Cmp related stuff. See https://github.com/hrsh7th/nvim-cmp
|
# Cmp related stuff. See https://github.com/hrsh7th/nvim-cmp
|
||||||
cmp-nvim-lsp
|
cmp-nvim-lsp
|
||||||
cmp-buffer
|
cmp-buffer
|
||||||
cmp-path
|
cmp-path
|
||||||
cmd-cmdline
|
cmp-cmdline
|
||||||
nvim-cmp
|
nvim-cmp
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue