From bea8b9131cad076d51a6926617fc993c8ea95a1b Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Thu, 10 Feb 2022 01:19:52 +0200 Subject: [PATCH] feat: working latex setup --- dotfiles/neovim/lua/my/plugins/telescope.lua | 3 ++- dotfiles/neovim/lua/my/plugins/vimtex.lua | 2 ++ modules/applications/misc.nix | 1 + modules/applications/neovim.nix | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dotfiles/neovim/lua/my/plugins/telescope.lua b/dotfiles/neovim/lua/my/plugins/telescope.lua index f60377e..0569629 100644 --- a/dotfiles/neovim/lua/my/plugins/telescope.lua +++ b/dotfiles/neovim/lua/my/plugins/telescope.lua @@ -10,7 +10,8 @@ local bindings = { live_grep = "", -- See diagnostics with space + d - diagnostics = "d", + lsp_document_diagnostics = "d", + lsp_workspace_diagnostics = "wd", -- Open a list with all the pickers builtin = "t", diff --git a/dotfiles/neovim/lua/my/plugins/vimtex.lua b/dotfiles/neovim/lua/my/plugins/vimtex.lua index 7dac9db..9e745f3 100644 --- a/dotfiles/neovim/lua/my/plugins/vimtex.lua +++ b/dotfiles/neovim/lua/my/plugins/vimtex.lua @@ -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 diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix index 46b3377..142dc54 100644 --- a/modules/applications/misc.nix +++ b/modules/applications/misc.nix @@ -25,6 +25,7 @@ # unison-ucm xorg.libX11 texlive.combined.scheme-full # latex stuff + python38Packages.pygments # required for latex syntax highlighting okular zathura cmake diff --git a/modules/applications/neovim.nix b/modules/applications/neovim.nix index 10bf7da..d368558 100644 --- a/modules/applications/neovim.nix +++ b/modules/applications/neovim.nix @@ -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 ]; };