more kakoune config
This commit is contained in:
parent
efced09d1e
commit
17a41fe2a9
@ -10,6 +10,7 @@
|
|||||||
numberLines = {
|
numberLines = {
|
||||||
enable = true;
|
enable = true;
|
||||||
relative = true;
|
relative = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
scrollOff.lines = 3;
|
scrollOff.lines = 3;
|
||||||
showWhitespace.enable = false;
|
showWhitespace.enable = false;
|
||||||
@ -21,6 +22,16 @@
|
|||||||
enableMouse = true;
|
enableMouse = true;
|
||||||
setTitle = true;
|
setTitle = true;
|
||||||
};
|
};
|
||||||
|
hooks = [
|
||||||
|
{
|
||||||
|
name = "WinSetOption";
|
||||||
|
option = "filetype=nix";
|
||||||
|
commands = ''
|
||||||
|
set-option window indentwidth 2
|
||||||
|
set-option window formatcmd nixpkgs-fmt
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
plugins = with pkgs.kakounePlugins; [
|
plugins = with pkgs.kakounePlugins; [
|
||||||
kakoune-rainbow
|
kakoune-rainbow
|
||||||
@ -29,7 +40,8 @@
|
|||||||
pkgs.kak-lsp
|
pkgs.kak-lsp
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
eval %sh{kak-lsp --kakoune -s $kak_session} # Not needed if you load it with plug.kak.
|
hook global InsertChar \t %{ exec -draft h@ }
|
||||||
|
eval %sh{kak-lsp --kakoune -s $kak_session}
|
||||||
lsp-enable
|
lsp-enable
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user