vim again, and tmux too

This commit is contained in:
Jana Dönszelmann 2026-03-10 20:47:24 +01:00
parent 397fb19e0b
commit 5f5daf1047
No known key found for this signature in database
15 changed files with 451 additions and 231 deletions

View file

@ -10,15 +10,6 @@ let
};
};
in
# fzy-lua-native = pkgs.vimUtils.buildVimPlugin {
# name = "fzy-lua-native";
# src = pkgs.fetchFromGitHub {
# owner = "romgrk";
# repo = "fzy-lua-native";
# rev = "9d720745d5c2fb563c0d86c17d77612a3519c506";
# hash = "sha256-pBV5iGa1+5gtM9BcDk8I5SKoQ9sydOJHsmyoBcxAct0=";
# };
# };
{
programs.nixvim = {
plugins = {
@ -168,7 +159,11 @@ in
crates.enable = true;
fidget.enable = true;
nvim-autopairs.enable = true;
# nvim-highlight-colors.enable = true;
spider.enable = true;
origami = {
enable = true;
settings.autofold.enabled = false;
};
cmp = {
enable = true;
@ -221,11 +216,15 @@ in
"<C-Space>" = "cmp.mapping.complete()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-d>" = ''
function()
if cmp.visible_docs() then
cmp.close_docs()
function(fallback)
if cmp.visible() then
if cmp.visible_docs() then
cmp.close_docs()
else
cmp.open_docs()
end
else
cmp.open_docs()
fallback()
end
end
'';
@ -270,7 +269,7 @@ in
};
auto-session = {
enable = true;
enable = false;
settings = {
auto_save_enabled = true;
auto_restore_enabled = true;
@ -288,7 +287,7 @@ in
};
neo-tree = {
enable = true;
enable = false;
settings = {
close_if_last_window = true;
enable_git_status = false;
@ -660,7 +659,7 @@ in
return wilder.renderer_mux({
[':'] = popupmenu_renderer,
['/'] = wildmenu_renderer,
substitute = wildmenu_renderer,
substitute = wildmenu_enderer,
})
end)()
'';
@ -695,7 +694,7 @@ in
];
defaults = {
path_display = [ "smart" ];
layout_strategy = "horizontal";
layout_strategy = "flex";
layout_config = {
width = 0.99;
height = 0.99;
@ -709,15 +708,6 @@ in
enable = true;
};
# tabs
barbar = {
enable = true;
settings = {
options.diagnostics = "nvim_lsp";
focus_on_close = "previous";
};
};
# for lsp/cmp inside markdown code blocks
otter = {
enable = true;