modules/home/programs/editor/helix.nix: add keybind, change lsp
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -39,54 +39,46 @@ in {
|
|||||||
wrap-indicator = "";
|
wrap-indicator = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
keys.normal = {
|
keys = {
|
||||||
space = {
|
insert.C-c = "normal_mode";
|
||||||
space = "file_picker";
|
normal = {
|
||||||
w = ":w";
|
esc = ["collapse_selection" "keep_primary_selection"];
|
||||||
q = ":q";
|
space = {
|
||||||
x = ":x";
|
space = "file_picker";
|
||||||
n = ":n";
|
w = ":w";
|
||||||
"," = "goto_previous_buffer";
|
q = ":q";
|
||||||
"." = "goto_next_buffer";
|
x = ":x";
|
||||||
l = ":reflow";
|
n = ":n";
|
||||||
|
"," = "goto_previous_buffer";
|
||||||
|
"." = "goto_next_buffer";
|
||||||
|
l = ":reflow";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
esc = ["collapse_selection" "keep_primary_selection"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
language-server = {
|
language-server = with lib; {
|
||||||
clangd = {
|
clangd.command = "${pkgs.clang-tools}/bin/clangd";
|
||||||
command = "${pkgs.clang-tools}/bin/clangd";
|
markdown-oxide.command = getExe pkgs.markdown-oxide;
|
||||||
};
|
nil.command = getExe pkgs.nil;
|
||||||
rust-analyzer = {
|
nixd.command = getExe pkgs.nixd;
|
||||||
command = "${pkgs.rust-analyzer}/bin/rust-analyzer";
|
rust-analyzer.command = getExe pkgs.rust-analyzer;
|
||||||
};
|
# texlab.command = getExe pkgs.texlab;
|
||||||
texlab = {
|
tinymist.command = getExe pkgs.tinymist;
|
||||||
command = "${pkgs.texlab}/bin/texlab";
|
|
||||||
};
|
|
||||||
nil = {
|
|
||||||
command = "${pkgs.nil}/bin/nil";
|
|
||||||
};
|
|
||||||
markdown-oxide = {
|
|
||||||
command = "${pkgs.markdown-oxide}/bin/markdown-oxide";
|
|
||||||
};
|
|
||||||
tinymist = {
|
|
||||||
command = lib.getExe pkgs.tinymist;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
language = [
|
language = [
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter.command = "${pkgs.alejandra}/bin/alejandra";
|
formatter.command = "${pkgs.alejandra}/bin/alejandra";
|
||||||
language-servers = ["nil"];
|
language-servers = ["nixd"];
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "latex";
|
|
||||||
auto-format = true;
|
|
||||||
formatter.command = "${pkgs.texlivePackages.latexindent}/bin/latexindent";
|
|
||||||
language-servers = ["texlab"];
|
|
||||||
}
|
}
|
||||||
|
# {
|
||||||
|
# name = "latex";
|
||||||
|
# auto-format = true;
|
||||||
|
# formatter.command = "${pkgs.texlivePackages.latexindent}/bin/latexindent";
|
||||||
|
# language-servers = ["texlab"];
|
||||||
|
# }
|
||||||
{
|
{
|
||||||
name = "typst";
|
name = "typst";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
|
Reference in New Issue
Block a user