feat(neovim): add typst support with enable options and clean up main neovim option

This commit is contained in:
leonhard committed 2026-10-05 17:10:45 +02:00
1 parent 24584e6c9a
commit 9ce12afbb5
3 files changed
+25 -6

No files matched your search

+2 -6
View File
@@ -10,13 +10,9 @@
./plugins
];
options.kekleo.neovim = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Whether to enable neovim.";
};
options.kekleo.neovim.enable = lib.mkEnableOption "neovim";
config = lib.mkIf config.kekleo.neovim {
config = lib.mkIf config.kekleo.neovim.enable {
programs.nixvim = {
enable = true;
viAlias = true;
+4
View File
@@ -1,4 +1,8 @@
{
imports = [
./typst.nix
];
programs.nixvim = {
diagnostic.settings = {
severity_sort = true;
@@ -0,0 +1,19 @@
{
lib,
config,
...
}:
{
options.kekleo.neovim.typst.enable = lib.mkEnableOption "typst editing";
config = {
programs.nixvim = lib.mkIf config.kekleo.neovim.typst.enable {
dependencies.tinymist.enable = true;
dependencies.websocat.enable = true;
plugins.typst-preview.enable = true;
plugins.lsp.servers.tinymist.enable = true;
};
};
}