From 2ff864d36efb85fb4f9141737d57fe25bab4e2bd Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Fri, 22 Mar 2024 16:02:21 -0500 Subject: [PATCH] added latexmk config. --- nix/home.nix | 2 ++ nix/latex.nix | 7 +++++++ nix/nvim/cmp/cmp.nix | 2 +- nix/nvim/lsp/clang-format | 14 -------------- nix/nvim/lsp/clang-format-work | 13 ------------- nix/nvim/lsp/clangd | 5 ----- 6 files changed, 10 insertions(+), 33 deletions(-) delete mode 100644 nix/nvim/lsp/clang-format delete mode 100644 nix/nvim/lsp/clang-format-work delete mode 100644 nix/nvim/lsp/clangd diff --git a/nix/home.nix b/nix/home.nix index 30552d9..f5955d1 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -79,5 +79,7 @@ nix = { package = pkgs.nix; settings.experimental-features = ["nix-command" "flakes"]; + settings.max-jobs = "auto"; + gc.automatic = true; }; } diff --git a/nix/latex.nix b/nix/latex.nix index adf41c2..5f839ca 100644 --- a/nix/latex.nix +++ b/nix/latex.nix @@ -6,6 +6,13 @@ home.packages = with pkgs; [ texliveMedium ]; + home.file = { + ".latexmkrc".text = '' + $dvi_previewer = 'xdvi -watchfile 1.5'; + $ps_previewer = 'zathura'; + $pdf_previewer = 'zathura'; + ''; + }; home.shellAliases = { pdfmk = "latexmk -lualatex -pvc"; }; diff --git a/nix/nvim/cmp/cmp.nix b/nix/nvim/cmp/cmp.nix index 0de1892..f49ea98 100644 --- a/nix/nvim/cmp/cmp.nix +++ b/nix/nvim/cmp/cmp.nix @@ -21,7 +21,7 @@ {name = "spell";} ]; snippet = { - expand = "luasnip"; + expand = "function(args) require('luasnip').lsp_expand(args.body) end"; }; mapping = { "" = "cmp.mapping.complete()"; diff --git a/nix/nvim/lsp/clang-format b/nix/nvim/lsp/clang-format deleted file mode 100644 index 2c61359..0000000 --- a/nix/nvim/lsp/clang-format +++ /dev/null @@ -1,14 +0,0 @@ ---- -#this syncronizes with settings used by neovims treesitters so that the lsp formatting and treesitter formatting do not fight eatch other. -PointerAlignment: Left -ColumnLimit: 80 -IndentWidth: 4 -TabWidth: 4 -UseCRLF: false -UseTab: Never -AlignAfterOpenBracket: BlockIndent -AlwaysBreakBeforeMultilineStrings: true -BreakBeforeBraces: Attach -AlignOperands: Align -BreakBeforeBinaryOperators: NonAssignment -... diff --git a/nix/nvim/lsp/clang-format-work b/nix/nvim/lsp/clang-format-work deleted file mode 100644 index feaaf21..0000000 --- a/nix/nvim/lsp/clang-format-work +++ /dev/null @@ -1,13 +0,0 @@ ---- -#this syncronizes with settings used by neovims treesitters so that the lsp formatting and treesitter formatting do not fight eatch other. -PointerAlignment: Left -ColumnLimit: 80 -IndentWidth: 4 -TabWidth: 4 -UseCRLF: false -UseTab: Never -AlignAfterOpenBracket: BlockIndent -AlwaysBreakBeforeMultilineStrings: true -BreakBeforeBraces: Allman -BreakBeforeBinaryOperators: None -... diff --git a/nix/nvim/lsp/clangd b/nix/nvim/lsp/clangd deleted file mode 100644 index 1211c5c..0000000 --- a/nix/nvim/lsp/clangd +++ /dev/null @@ -1,5 +0,0 @@ -# keeps clangd from choking when it sees a compiler flag for a different -# compiler. (sutch as when acting as an lsp for a project that uses GCC.) -CompileFlags: - Add: -Wno-unknown-warning-option - Remove: [-m*, -f*]