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 ]; };