feat(neovim): add typst support with enable options and clean up main neovim option
This commit is contained in:
1 parent
24584e6c9a
commit
9ce12afbb5
3 files changed
+25
-6
No files matched your search
@@ -10,13 +10,9 @@
|
|||||||
./plugins
|
./plugins
|
||||||
];
|
];
|
||||||
|
|
||||||
options.kekleo.neovim = lib.mkOption {
|
options.kekleo.neovim.enable = lib.mkEnableOption "neovim";
|
||||||
type = lib.types.bool;
|
|
||||||
default = true;
|
|
||||||
description = "Whether to enable neovim.";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.kekleo.neovim {
|
config = lib.mkIf config.kekleo.neovim.enable {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
viAlias = true;
|
viAlias = true;
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./typst.nix
|
||||||
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
diagnostic.settings = {
|
diagnostic.settings = {
|
||||||
severity_sort = true;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user