Compare commits

...

5 commits

Author SHA1 Message Date
Ching Pei Yang
c7745775ce
Merge branch 'main' into clojure-lsp 2025-05-27 00:26:57 +02:00
Ching Pei Yang
b45f0516a1
Merge pull request #828 from horriblename/blink-cmdline
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
blink: fix unusable cmdline completion
2025-05-27 00:21:07 +02:00
Andreas Nilsson
3da08708d7
language/clojure: variable order
Co-authored-by: Soliprem <73885403+Soliprem@users.noreply.github.com>
2025-05-26 22:01:14 +02:00
Ching Pei Yang
195d39cef7 blink: add keybinds for cmdline 2025-05-26 16:12:07 +02:00
Ching Pei Yang
316aeeae4e blink: do not set default for cmdline sources 2025-05-26 16:12:07 +02:00
3 changed files with 17 additions and 2 deletions

View file

@ -48,7 +48,7 @@ in {
cmdline = { cmdline = {
sources = mkOption { sources = mkOption {
type = nullOr (listOf str); type = nullOr (listOf str);
default = []; default = null;
description = "List of sources to enable for cmdline. Null means use default source list."; description = "List of sources to enable for cmdline. Null means use default source list.";
}; };

View file

@ -122,6 +122,21 @@ in {
"fallback" "fallback"
]; ];
}; };
# cmdline is not enabled by default, we're just providing keymaps in
# case the user enables them
cmdline.keymap = {
${mappings.complete} = ["show" "fallback"];
${mappings.close} = ["hide" "fallback"];
${mappings.scrollDocsUp} = ["scroll_documentation_up" "fallback"];
${mappings.scrollDocsDown} = ["scroll_documentation_down" "fallback"];
# NOTE: mappings.confirm is skipped because our default, <CR> would
# lead to accidental triggers of blink.accept instead of executing
# the cmd
${mappings.next} = ["select_next" "show" "fallback"];
${mappings.previous} = ["select_prev" "fallback"];
};
}; };
}; };
}; };

View file

@ -25,9 +25,9 @@ in {
lsp = { lsp = {
enable = mkEnableOption "Clojure LSP support" // {default = config.vim.lsp.enable;}; enable = mkEnableOption "Clojure LSP support" // {default = config.vim.lsp.enable;};
package = mkOption { package = mkOption {
description = "Clojure LSP";
type = either package (listOf str); type = either package (listOf str);
default = pkgs.clojure-lsp; default = pkgs.clojure-lsp;
description = "Clojure LSP";
}; };
}; };
}; };