Merge paperclover.dev:clo/config into chloe
This commit is contained in:
commit
ac6a001967
3 changed files with 36 additions and 17 deletions
|
@ -4,7 +4,9 @@
|
||||||
# TODO: apply overlays here
|
# TODO: apply overlays here
|
||||||
overlays,
|
overlays,
|
||||||
inputs,
|
inputs,
|
||||||
}: user: system: let
|
}:
|
||||||
|
user: system:
|
||||||
|
let
|
||||||
darwin = nixpkgs.lib.strings.hasSuffix "-darwin" system;
|
darwin = nixpkgs.lib.strings.hasSuffix "-darwin" system;
|
||||||
|
|
||||||
host = {
|
host = {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
# based on default options from upstream:
|
# based on default options from upstream:
|
||||||
# https://github.com/NotAShelf/nvf/blob/main/configuration.nix
|
# https://github.com/NotAShelf/nvf/blob/main/configuration.nix
|
||||||
|
@ -8,7 +13,7 @@
|
||||||
#
|
#
|
||||||
# override level 999 is used to not conflict with mkDefault as used by nvf.
|
# override level 999 is used to not conflict with mkDefault as used by nvf.
|
||||||
# which allows user configurations to disable/override anything here.
|
# which allows user configurations to disable/override anything here.
|
||||||
vim = lib.mkOverride 999 {
|
config.vim = lib.mkOverride 999 {
|
||||||
theme = {
|
theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
@ -70,8 +75,21 @@
|
||||||
zig.enable = true;
|
zig.enable = true;
|
||||||
# sort-lines: off
|
# sort-lines: off
|
||||||
|
|
||||||
|
ts.format.enable = false; # deno fmt is enabled elsewhere
|
||||||
nix.format.type = "nixfmt"; # looks so much nicer
|
nix.format.type = "nixfmt"; # looks so much nicer
|
||||||
};
|
};
|
||||||
|
formatter.conform-nvim = {
|
||||||
|
enable = true;
|
||||||
|
setupOpts.formatters_by_ft = {
|
||||||
|
typescript = [ "deno_fmt" ];
|
||||||
|
typescriptreact = [ "deno_fmt" ];
|
||||||
|
javascript = [ "deno_fmt" ];
|
||||||
|
javascriptreact = [ "deno_fmt" ];
|
||||||
|
};
|
||||||
|
setupOpts.formatters.deno_fmt = {
|
||||||
|
command = lib.meta.getExe pkgs.deno;
|
||||||
|
};
|
||||||
|
};
|
||||||
filetree = {
|
filetree = {
|
||||||
neo-tree = {
|
neo-tree = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
vim = {
|
vim = {
|
||||||
|
languages.astro.enable = true;
|
||||||
options = {
|
options = {
|
||||||
tabstop = 2;
|
tabstop = 2;
|
||||||
softtabstop = 2;
|
softtabstop = 2;
|
||||||
|
@ -13,7 +14,6 @@ _: {
|
||||||
foldenable = true;
|
foldenable = true;
|
||||||
linebreak = true;
|
linebreak = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
binds = {
|
binds = {
|
||||||
hardtime-nvim.setupOpts = {
|
hardtime-nvim.setupOpts = {
|
||||||
restriction_mode = "block";
|
restriction_mode = "block";
|
||||||
|
@ -33,7 +33,6 @@ _: {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
keymaps =
|
keymaps =
|
||||||
let
|
let
|
||||||
mkKeymap = mode: key: action: desc: {
|
mkKeymap = mode: key: action: desc: {
|
||||||
|
|
Loading…
Reference in a new issue