fix: errors in nixvim config
This commit is contained in:
parent
44c3bd7594
commit
c9bd4c00a0
|
@ -26,6 +26,22 @@
|
|||
enable = true;
|
||||
pkcs11.enable = true;
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
config = {
|
||||
common.default = [
|
||||
"gtk"
|
||||
];
|
||||
sway.default = [
|
||||
"wlr"
|
||||
];
|
||||
};
|
||||
};
|
||||
# Just before switching, remove the agenix directory if it exists.
|
||||
# This can happen when a secret is used in the initrd because it will
|
||||
# then be copied to the initramfs under the same path. This materializes
|
||||
|
|
|
@ -12,7 +12,6 @@ lib.optionalAttrs (!minimal) {
|
|||
with pkgs; [
|
||||
# vampir überlebende braucht diese pkgs
|
||||
libgdiplus
|
||||
xdg-desktop-portal
|
||||
cups
|
||||
];
|
||||
};
|
||||
|
|
|
@ -6,11 +6,6 @@
|
|||
}:
|
||||
lib.optionalAttrs (!minimal) {
|
||||
services.dbus.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = with pkgs; [xdg-desktop-portal-wlr];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
xdg-utils
|
||||
wdisplays
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
'';
|
||||
};
|
||||
home.sessionVariables.EDITOR = "nvim";
|
||||
home.sessionVariables.vim = "nvim";
|
||||
home.sessionVariables.vi = "nvim";
|
||||
home.shellAliases.vimdiff = "nvim -d";
|
||||
home.persistence."/state".directories = [
|
||||
".local/share/nvim"
|
||||
|
|
|
@ -9,42 +9,50 @@ in {
|
|||
key = "<M-down>";
|
||||
action = "<C-w><down>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-up>";
|
||||
action = "<C-w><up>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-left>";
|
||||
action = "<C-w><left>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-right>";
|
||||
action = "<C-w><right>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
|
||||
{
|
||||
key = "<M-r>";
|
||||
action = "<C-w><down>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-l>";
|
||||
action = "<C-w><up>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-n>";
|
||||
action = "<C-w><left>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<M-s>";
|
||||
action = "<C-w><right>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
|
||||
# scroll with cursor lock
|
||||
|
@ -52,21 +60,23 @@ in {
|
|||
key = "<S-down>";
|
||||
action = "<C-e>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<S-up>";
|
||||
action = "<C-y>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<S-down>";
|
||||
action = "<C-[><C-e>a";
|
||||
action = "<C-esc><C-e>a";
|
||||
inherit options;
|
||||
mode = "i";
|
||||
}
|
||||
{
|
||||
key = "<S-up>";
|
||||
action = "<C-[><C-y>a";
|
||||
action = "<C-esc><C-y>a";
|
||||
inherit options;
|
||||
mode = "i";
|
||||
}
|
||||
|
@ -74,6 +84,13 @@ in {
|
|||
key = "<leader>u";
|
||||
action = "<cmd>UndotreeToggle<cr>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
{
|
||||
key = "<leader>t";
|
||||
action = "<cmd>Neotree toggle<cr>";
|
||||
inherit options;
|
||||
mode = ["n" "v" "s"];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
undolevels = 1000000;
|
||||
# Persistent Undo
|
||||
undofile = true;
|
||||
undodir = "~/.cache/nvim/undo";
|
||||
|
||||
# swap file save interval
|
||||
updatetime = 300;
|
||||
|
|
|
@ -35,8 +35,9 @@
|
|||
# Fzf picker for arbitrary stuff
|
||||
telescope = {
|
||||
enable = true;
|
||||
enabledExtensions = ["fzf" "notify" "ui-select"];
|
||||
extensions.fzf-native.enable = true;
|
||||
extensions = {
|
||||
fzf-native.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Undo tree
|
||||
|
|
Loading…
Reference in a new issue