chore: add zk & fix golsp

This commit is contained in:
2026-03-15 09:49:59 -04:00
parent 9415fa937c
commit 454b93ba2a
5 changed files with 27 additions and 3 deletions

View File

@@ -37,6 +37,8 @@ in
bind "set show-mode-in-prompt on"
set -o vi || true
source <(fzf --bash)
VISUAL=vim
EDITOR="$VISUAL"
@@ -72,6 +74,8 @@ in
'';
};
programs.fzf.enable = true;
home.packages = with pkgs; [
bashInteractive
fastfetch

View File

@@ -189,7 +189,6 @@ setup_lsp("gopls", {
callback = organize_go_imports,
})
end,
cmd = { nix_vars.gopls },
filetypes = { "go" },
settings = {
gopls = {

View File

@@ -133,7 +133,6 @@ in
go
golangci-lint
golangci-lint-langserver
gopls
lua-language-server
nil
nodePackages.eslint
@@ -176,7 +175,6 @@ in
bash = "${pkgs.bashInteractive}/bin/bash",
clangd = "${pkgs.clang-tools}/bin/clangd",
golintls = "${pkgs.golangci-lint-langserver}/bin/golangci-lint-langserver",
gopls = "${pkgs.gopls}/bin/gopls",
luals = "${pkgs.lua-language-server}/bin/lua-language-server",
sveltels = "${pkgs.nodePackages.svelte-language-server}/bin/svelteserver",
tsls = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server",

View File

@@ -0,0 +1,22 @@
{ lib
, config
, namespace
, ...
}:
let
inherit (lib) mkIf;
cfg = config.${namespace}.programs.terminal.zk;
in
{
options.${namespace}.programs.terminal.zk = {
enable = lib.mkEnableOption "enable zk";
};
config = mkIf cfg.enable {
programs.zk = {
enable = true;
};
programs.fzf.enable = true;
};
}