1

Compare commits

...

3 Commits

3 changed files with 61 additions and 4 deletions

View File

@ -3,6 +3,7 @@
pkgs, pkgs,
nixosConfig, nixosConfig,
config, config,
hostname,
lib, lib,
mylib, mylib,
username, username,
@ -52,8 +53,8 @@
opencode = { opencode = {
enable = true; enable = true;
enableMcpIntegration = true; enableMcpIntegration = true;
extraPackages = [ extraPackages = with pkgs; [
# pkgs.opencode-claude-auth # Installed using npm # opencode-claude-auth # Installed using npm
]; ];
# Writes opencode.json # Writes opencode.json
@ -86,8 +87,54 @@
command = ["alejandra" "$FILE"]; command = ["alejandra" "$FILE"];
extensions = [".nix"]; extensions = [".nix"];
}; };
perltidy = {
command = ["perltidy" "$FILE"];
extensions = [".pl"];
};
};
lsp = {
nixd = {
command = ["nixd"];
extensions = [".nix"];
initialization = {
preferences = {
nixd = {
nixpkgs = {expr = "import <nixpkgs> {}";};
options = {
nixos = {expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.${hostname}.options";};
home-manager = {expr = "(builtins.getFlake \"/home/${username}/NixFlake\").nixosConfigurations.\"${hostname}\".options.home-manager.users.type.getSubOptions []";};
};
diagnostic = {
suppress = ["sema-escaping-with" "var-bind-to-this" "escaping-this-with"];
};
};
};
};
};
perlnavigator = {
command = ["perlnavigator"];
extensions = [".pl"];
initialization = {
preferences = {};
};
};
# perlpls = {
# command = ["pls"];
# extensions = [".pl"];
# initialization = {
# preferences = {
# perl = {
# perlcritic = {enabled = false;};
# syntax = {enabled = true;};
# };
# };
# };
# };
r-language-server = {
command = ["R" "--no-echo" "-e" "languageserver::run()"];
extensions = [".r" ".rmd" ".quarto"];
};
}; };
lsp = true;
permission = { permission = {
"*" = "ask"; "*" = "ask";
"read" = "allow"; "read" = "allow";
@ -99,7 +146,7 @@
plugin = [ plugin = [
"opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth "opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth
"@tarquinen/opencode-dcp@latest" # better compacting "@tarquinen/opencode-dcp@latest" # better compacting
"@slkiser/opencode-quota" # "@slkiser/opencode-quota"
]; ];
share = "disabled"; share = "disabled";
shell = "fish"; shell = "fish";

View File

@ -1472,6 +1472,14 @@ in {
url = "http://localhost:12345", url = "http://localhost:12345",
start = false, start = false,
}, },
events = {
permissions = {
edits = {
-- Disable neovim diff popup tab
enabled = false,
},
},
},
} }
vim.o.autoread = true -- Required for `vim.g.opencode_opts.events.reload` vim.o.autoread = true -- Required for `vim.g.opencode_opts.events.reload`

View File

@ -160,6 +160,8 @@ in {
czkawka-full # file deduplicator czkawka-full # file deduplicator
binaryninja-free # reverse engineering binaryninja-free # reverse engineering
tableplus # database explorer tableplus # database explorer
# opencode-desktop
lmstudio # TODO: Ollama
# Office # Office
kdePackages.wacomtablet # For xournalpp/krita kdePackages.wacomtablet # For xournalpp/krita