parent
0d410f342c
commit
c6c255ff88
18
config.nix
18
config.nix
|
@ -39,8 +39,23 @@
|
|||
inline-diagnostics.cursor-line = "error";
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
keys = {
|
||||
keys =
|
||||
let
|
||||
caseMenu = with pkgs; {
|
||||
p = ":pipe ${lib.getExe sttr} pascal";
|
||||
c = ":pipe ${lib.getExe sttr} camel";
|
||||
k = ":pipe ${lib.getExe sttr} kebab";
|
||||
K = ":pipe ${lib.getExe sttr} kebab | ${lib.getExe sttr} upper";
|
||||
s = ":pipe ${lib.getExe sttr} snake";
|
||||
S = ":pipe ${lib.getExe sttr} snake | ${lib.getExe sttr} upper";
|
||||
u = ":pipe ${lib.getExe sttr} upper";
|
||||
l = ":pipe ${lib.getExe sttr} lower";
|
||||
t = ":pipe ${lib.getExe sttr} title";
|
||||
};
|
||||
in
|
||||
{
|
||||
normal = {
|
||||
"~" = caseMenu;
|
||||
space = {
|
||||
q = ":quit";
|
||||
Q = ":quit!";
|
||||
|
@ -162,6 +177,7 @@
|
|||
];
|
||||
};
|
||||
select = {
|
||||
"~" = caseMenu;
|
||||
space = {
|
||||
j = with pkgs; {
|
||||
e = ":pipe ${lib.getExe jq}";
|
||||
|
|
Loading…
Reference in New Issue