vimwiki and better neovim plugins
This commit is contained in:
parent
52796f0967
commit
20808b19e1
4 changed files with 27 additions and 15 deletions
|
|
@ -38,6 +38,4 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./browser.nix
|
./browser.nix
|
||||||
];
|
];
|
||||||
|
|
@ -66,5 +65,4 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.librewolf.enable = true;
|
programs.librewolf.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,39 +54,38 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
bind = [
|
bind = [
|
||||||
|
# movement
|
||||||
# movement
|
|
||||||
"${modifier}, h, movefocus, l"
|
"${modifier}, h, movefocus, l"
|
||||||
"${modifier}, l, movefocus, r"
|
"${modifier}, l, movefocus, r"
|
||||||
"${modifier}, j, layoutmsg, cyclenext"
|
"${modifier}, j, layoutmsg, cyclenext"
|
||||||
"${modifier}, k, layoutmsg, cycleprev"
|
"${modifier}, k, layoutmsg, cycleprev"
|
||||||
|
|
||||||
# window management
|
# window management
|
||||||
"${modifier}, F, fullscreen,"
|
"${modifier}, F, fullscreen,"
|
||||||
"${modifier}, V, togglefloating,"
|
"${modifier}, V, togglefloating,"
|
||||||
"${modifier}_SHIFT, X, killactive"
|
"${modifier}_SHIFT, X, killactive"
|
||||||
|
|
||||||
# master layout
|
# master layout
|
||||||
"${modifier}, space, layoutmsg,swapwithmaster master"
|
"${modifier}, space, layoutmsg,swapwithmaster master"
|
||||||
"${modifier}, W, layoutmsg, orientationprev"
|
"${modifier}, W, layoutmsg, orientationprev"
|
||||||
"${modifier}_SHIFT, W, layoutmsg, orientationnext"
|
"${modifier}_SHIFT, W, layoutmsg, orientationnext"
|
||||||
|
|
||||||
# window grouping
|
# window grouping
|
||||||
"${modifier}_SHIFT, V, togglegroup,"
|
"${modifier}_SHIFT, V, togglegroup,"
|
||||||
"${modifier}_SHIFT, j, changegroupactive,b"
|
"${modifier}_SHIFT, j, changegroupactive,b"
|
||||||
"${modifier}_SHIFT, k, changegroupactive,f"
|
"${modifier}_SHIFT, k, changegroupactive,f"
|
||||||
"${modifier}_SHIFT, h, moveintogroup,l"
|
"${modifier}_SHIFT, h, moveintogroup,l"
|
||||||
"${modifier}_SHIFT, l, moveintogroup,r"
|
"${modifier}_SHIFT, l, moveintogroup,r"
|
||||||
|
|
||||||
# scratch buffer
|
# scratch buffer
|
||||||
"${modifier}, Y, togglespecialworkspace"
|
"${modifier}, Y, togglespecialworkspace"
|
||||||
"${modifier}_SHIFT, Y, movetoworkspace, special"
|
"${modifier}_SHIFT, Y, movetoworkspace, special"
|
||||||
|
|
||||||
# applications
|
# applications
|
||||||
"${modifier}, slash, focuswindow, brave-browser"
|
"${modifier}, slash, focuswindow, brave-browser"
|
||||||
"${modifier}, n, focuswindow, Logseq"
|
"${modifier}, n, focuswindow, Logseq"
|
||||||
|
|
||||||
# workspaces
|
# workspaces
|
||||||
"${modifier}, 1, workspace,1"
|
"${modifier}, 1, workspace,1"
|
||||||
"${modifier}, 2, workspace,2"
|
"${modifier}, 2, workspace,2"
|
||||||
"${modifier}, 3, workspace,3"
|
"${modifier}, 3, workspace,3"
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,26 @@
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
];
|
];
|
||||||
plugins = with pkgs.vimPlugins; [
|
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;
|
plugin = telescope-nvim;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
|
|
@ -31,7 +49,6 @@
|
||||||
type = "lua";
|
type = "lua";
|
||||||
config = builtins.readFile ./lspconfig.lua;
|
config = builtins.readFile ./lspconfig.lua;
|
||||||
}
|
}
|
||||||
firenvim
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue