mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
lsp/presets/texlab: init
This commit is contained in:
parent
eb768eb982
commit
7407a3072f
2 changed files with 25 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
./harper.nix
|
||||
./lemminx.nix
|
||||
./taplo.nix
|
||||
./texlab.nix
|
||||
./tinymist.nix
|
||||
./tombi.nix
|
||||
./twig-language-server.nix
|
||||
|
|
|
|||
24
modules/plugins/lsp/presets/texlab.nix
Normal file
24
modules/plugins/lsp/presets/texlab.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.vim.lsp.presets.texlab;
|
||||
in {
|
||||
options.vim.lsp.presets.texlab = {
|
||||
enable = mkEnableOption "the TeXLab Language Server";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.lsp.servers.texlab = {
|
||||
enable = true;
|
||||
cmd = [(getExe pkgs.texlab) "run"];
|
||||
root_markers = [".git" ".latexmkrc" "latexmkrc" ".texlabroot" "texlabroot" ".texstudio" "Tectonic.toml"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue