1

Modules/Neovim: Configure opencode-nvim

This commit is contained in:
2026-06-13 17:53:45 +02:00
parent dc756c70b2
commit da0c4e9afe
2 changed files with 70 additions and 62 deletions

View File

@ -1461,21 +1461,23 @@ in {
};
};
# opencode = {
# name = "opencode";
# pkg = pkgs.vimPlugins.opencode-nvim;
# lazy = false;
# config = ''
# function()
# ---@type opencode.Opts
# vim.g.opencode_opts = {
# -- Your configuration, if any; goto definition on the type or field for details
# }
#
# vim.o.autoread = true -- Required for `vim.g.opencode_opts.events.reload`
# end
# '';
# };
opencode = {
name = "opencode";
pkg = pkgs.vimPlugins.opencode-nvim;
lazy = false;
config = ''
function()
vim.g.opencode_opts = {
server = {
url = "http://localhost:12345",
start = false,
},
}
vim.o.autoread = true -- Required for `vim.g.opencode_opts.events.reload`
end
'';
};
# obsidian = rec {
# name = "obsidian";
@ -2307,7 +2309,7 @@ in {
noice # Modern UI overhaul, e.g. floating cmdline
# obsidian # Integration with Obsidian.md
# opencode # TODO: Doesn't work, can't find "opencode --port" process
opencode # TODO: Doesn't work, can't find "opencode --port" process
# overseer # Run tasks from within neovim (e.g. cargo) # TODO:
persisted # Session management