Compare commits
2 commits
a394b9cefd
...
e703451af2
Author | SHA1 | Date | |
---|---|---|---|
e703451af2 | |||
3ff06fa2bc |
4 changed files with 54 additions and 9 deletions
|
@ -1,4 +1,13 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
zk
|
||||||
|
nixd
|
||||||
|
terraform-ls
|
||||||
|
python3Packages.python-lsp-server
|
||||||
|
nodePackages.typescript-language-server
|
||||||
|
];
|
||||||
|
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
@ -11,6 +20,7 @@
|
||||||
normal = "block";
|
normal = "block";
|
||||||
select = "underline";
|
select = "underline";
|
||||||
};
|
};
|
||||||
|
color-modes = true;
|
||||||
true-color = true; # to make colors coherent when in ssh
|
true-color = true; # to make colors coherent when in ssh
|
||||||
# inline-diagnostic = {
|
# inline-diagnostic = {
|
||||||
# cursor-line = "hint";
|
# cursor-line = "hint";
|
||||||
|
@ -23,6 +33,7 @@
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
language-servers = [ "nixd" ];
|
language-servers = [ "nixd" ];
|
||||||
|
formatter.command = "nixfmt";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "markdown";
|
name = "markdown";
|
||||||
|
@ -35,10 +46,6 @@
|
||||||
];
|
];
|
||||||
language-server = {
|
language-server = {
|
||||||
nixd.command = "nixd";
|
nixd.command = "nixd";
|
||||||
vtsls = {
|
|
||||||
command = "vtsls";
|
|
||||||
args = [ "--stdio" ];
|
|
||||||
};
|
|
||||||
zk = {
|
zk = {
|
||||||
command = "zk";
|
command = "zk";
|
||||||
args = [ "lsp" ];
|
args = [ "lsp" ];
|
||||||
|
|
|
@ -254,12 +254,7 @@
|
||||||
"picard"
|
"picard"
|
||||||
])
|
])
|
||||||
[
|
[
|
||||||
nixd # TODO probably not the best place
|
|
||||||
terraform-lsp # TODO probably not best place
|
|
||||||
python3Packages.jedi-language-server # TODO probably not best place
|
|
||||||
nodePackages.typescript-language-server # TODO probably not best place
|
|
||||||
cntr # TODO probably not best place
|
cntr # TODO probably not best place
|
||||||
nom # FIXME disable on aarch64-linux, breaks everything :(
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
42
hmModules/zk/default.nix
Normal file
42
hmModules/zk/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
programs.bat.enable = true;
|
||||||
|
programs.fzf.enable = true;
|
||||||
|
programs.zk = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
notebook.dir = "~/notebook";
|
||||||
|
note = {
|
||||||
|
language = "en";
|
||||||
|
default-title = "Untitled";
|
||||||
|
filename = "{{id}}";
|
||||||
|
extension = "md";
|
||||||
|
template = "default.md";
|
||||||
|
};
|
||||||
|
group.journal = {
|
||||||
|
paths = [ "journal" ];
|
||||||
|
note = {
|
||||||
|
filename = "{{format-date now}}";
|
||||||
|
template = "journal.md";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
format.markdown = {
|
||||||
|
hashtags = false;
|
||||||
|
colon-tags = true;
|
||||||
|
multiword-tags = false;
|
||||||
|
};
|
||||||
|
tool = {
|
||||||
|
pager = "less -FIRX";
|
||||||
|
fzf-preview = "bat --color always {-1}";
|
||||||
|
};
|
||||||
|
lsp.diagnostics = {
|
||||||
|
wiki-title = "hint";
|
||||||
|
dead-link = "error";
|
||||||
|
};
|
||||||
|
lsp.completion = {
|
||||||
|
note-label = "{{title-or-path}}";
|
||||||
|
note-filter-text = "{{title}} {{path}}";
|
||||||
|
note-detail = "{{filename-stem}}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -85,6 +85,7 @@
|
||||||
"calibre"
|
"calibre"
|
||||||
"reinstall-magisk-on-lineage"
|
"reinstall-magisk-on-lineage"
|
||||||
"vscode-server"
|
"vscode-server"
|
||||||
|
"zk"
|
||||||
];
|
];
|
||||||
extraGroups = [ ];
|
extraGroups = [ ];
|
||||||
backupPaths = [ ];
|
backupPaths = [ ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue