woot, back up and running, the error was not at al related to nixvim...
This commit is contained in:
parent
0d0b074014
commit
39939714b7
5 changed files with 37 additions and 86 deletions
|
@ -12,13 +12,14 @@ in
|
|||
programs.nixvim = {
|
||||
enable = true;
|
||||
|
||||
options = {
|
||||
opts = {
|
||||
number = true;
|
||||
|
||||
shiftwidth = 2;
|
||||
};
|
||||
|
||||
# colorschemes.gruvbox.enable = true;
|
||||
# colorschemes.base16 = "${pkgs.base16-schemes}/share/themes/everforest.yaml";
|
||||
colorschemes.everforest.enable = true;
|
||||
|
||||
plugins = {
|
||||
lualine.enable = true;
|
||||
|
@ -29,18 +30,17 @@ in
|
|||
servers = {
|
||||
tsserver.enable = true;
|
||||
lua-ls.enable = true;
|
||||
rust-analyzer.enable = true;
|
||||
rust-analyzer = {
|
||||
enable = true;
|
||||
installRustc = true;
|
||||
installCargo = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nvim-cmp = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "path";}
|
||||
{name = "buffer";}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
19
modules/desktop/editors/zed.nix
Normal file
19
modules/desktop/editors/zed.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.attrsets) attrValues;
|
||||
|
||||
cfg = config.modules.desktop.editors.zed;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.editors.zed = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in { enable = mkEnableOption "zed"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
user.packages = attrValues {
|
||||
inherit (pkgs) zed-editor;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue