feat: add ai and tex support

This commit is contained in:
xinyangli 2025-03-04 19:01:00 +08:00
parent 4439691030
commit 9240bb4db9
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
7 changed files with 35 additions and 4 deletions

View file

@ -5,5 +5,6 @@
./lsp-format.nix
./lspkind.nix
./nvim-metals.nix
./vimtex.nix
];
}

View file

@ -27,7 +27,6 @@
useGlobalExecutable = true,
verboseCompilation = true
}
metals_config.capabilities = require("cmp_nvim_lsp").default_capabilities()
'';
autoCmd = [
@ -40,7 +39,10 @@
require("metals").initialize_or_attach(metals_config)
end
'';
pattern = [ "scala" "sbt" ];
pattern = [
"scala"
"sbt"
];
}
];

10
config/lsp/vimtex.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs, ... }:
{
plugins.vimtex = {
enable = true;
settings = {
view_method = "zathura";
};
texlivePackage = pkgs.texlive.combined.scheme-full;
};
}