vimwiki and better neovim plugins

This commit is contained in:
tristan 2024-01-07 20:36:33 +00:00
parent 52796f0967
commit 20808b19e1
4 changed files with 27 additions and 15 deletions

View file

@ -38,6 +38,4 @@
}
'';
};
}

View file

@ -1,5 +1,4 @@
{pkgs, ...}: {
imports = [
./browser.nix
];
@ -66,5 +65,4 @@
];
programs.librewolf.enable = true;
}

View file

@ -54,39 +54,38 @@ in {
];
};
bind = [
# movement
# movement
"${modifier}, h, movefocus, l"
"${modifier}, l, movefocus, r"
"${modifier}, j, layoutmsg, cyclenext"
"${modifier}, k, layoutmsg, cycleprev"
# window management
# window management
"${modifier}, F, fullscreen,"
"${modifier}, V, togglefloating,"
"${modifier}_SHIFT, X, killactive"
# master layout
# master layout
"${modifier}, space, layoutmsg,swapwithmaster master"
"${modifier}, W, layoutmsg, orientationprev"
"${modifier}_SHIFT, W, layoutmsg, orientationnext"
# window grouping
# window grouping
"${modifier}_SHIFT, V, togglegroup,"
"${modifier}_SHIFT, j, changegroupactive,b"
"${modifier}_SHIFT, k, changegroupactive,f"
"${modifier}_SHIFT, h, moveintogroup,l"
"${modifier}_SHIFT, l, moveintogroup,r"
# scratch buffer
# scratch buffer
"${modifier}, Y, togglespecialworkspace"
"${modifier}_SHIFT, Y, movetoworkspace, special"
# applications
# applications
"${modifier}, slash, focuswindow, brave-browser"
"${modifier}, n, focuswindow, Logseq"
# workspaces
# workspaces
"${modifier}, 1, workspace,1"
"${modifier}, 2, workspace,2"
"${modifier}, 3, workspace,3"

View file

@ -13,8 +13,26 @@
rust-analyzer
];
plugins = with pkgs.vimPlugins; [
vim-surround
vim-commentary
{
plugin = nvim-surround;
type = "lua";
config = ''
require("nvim-surround").setup()
'';
}
{
plugin = comment-nvim;
type = "lua";
config = ''
require("Comment").setup()
'';
}
{
plugin = vimwiki;
config = ''
let g:vimwiki_list = [{'path': '~/Documents/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
'';
}
{
plugin = telescope-nvim;
type = "lua";
@ -31,7 +49,6 @@
type = "lua";
config = builtins.readFile ./lspconfig.lua;
}
firenvim
];
};