From 7561a5eeaf779204e823e85ec62ff8f263814474 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Mon, 8 Jun 2026 12:53:10 -0400 Subject: refactor: sync vscode and neovim features and keymaps --- .config/nvim/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.config/nvim/init.lua') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 1afb090..8c76303 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -21,6 +21,7 @@ vim.cmd [[ Plug 'williamboman/mason.nvim' Plug 'ThePrimeagen/vim-be-good' Plug 'WhoIsSethDaniel/mason-tool-installer.nvim' + Plug 'nickjvandyke/opencode.nvim' call plug#end() ]] @@ -448,3 +449,11 @@ if vim.fn.filereadable(_mkey) == 1 and vim.fn.filereadable(_ukey) == 1 then }) end end + +-- opencode integration +local ok_oc, opencode = pcall(require, "opencode") +if ok_oc then + keymap({ "n", "x" }, "oa", function() opencode.ask("@this: ") end, { desc = "opencode: ask" }) + keymap({ "n", "x" }, "os", function() opencode.select() end, { desc = "opencode: select" }) + keymap({ "n", "x" }, "o", function() return opencode.operator("@this ") end, { desc = "opencode: operator", expr = true }) +end -- cgit v1.2.3