diff --git a/flake.lock b/flake.lock index 3a25e53..2e79bf6 100644 --- a/flake.lock +++ b/flake.lock @@ -44,11 +44,11 @@ ] }, "locked": { - "lastModified": 1770164260, - "narHash": "sha256-mQgOAYWlVJyuyXjZN6yxqXWyODvQI5P/UZUCU7IOuYo=", + "lastModified": 1771851181, + "narHash": "sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "4fda26500b4539e0a1e3afba9f0e1616bdad4f85", + "rev": "9a4b494b1aa1b93d8edf167f46dc8e0c0011280c", "type": "github" }, "original": { @@ -106,11 +106,11 @@ ] }, "locked": { - "lastModified": 1770163968, - "narHash": "sha256-Ggh7hAS0tAOcPF66rrho9WAFZQZE0+SZYs+dnLgidpw=", + "lastModified": 1771891493, + "narHash": "sha256-L0OCnG8rsWJYZ3mzHSz0iENtlBXQjjcGgvMgsBqN14U=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "4ae5c0c99f5e7fe02f0df0220a7d09b1945df646", + "rev": "7db85d094c68697fc36801bccdf015b4c2bdb274", "type": "github" }, "original": { @@ -122,11 +122,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1770163048, - "narHash": "sha256-MEaHWrzF6PqjyQH8+m84dhVr8R4lDYc3V+XW194O4no=", + "lastModified": 1771885993, + "narHash": "sha256-2c4H+5f0qhsp13Vx8pbsGiSRTHBJIfQaRAAUSHGEpgo=", "owner": "neovim", "repo": "neovim", - "rev": "ddd1bf757fab3615301053acab5cc85508340844", + "rev": "d9d8c660fd5559d928c8870a21970a375674e310", "type": "github" }, "original": { @@ -142,11 +142,11 @@ ] }, "locked": { - "lastModified": 1770184146, - "narHash": "sha256-DsqnN6LvXmohTRaal7tVZO/AKBuZ02kPBiZKSU4qa/k=", + "lastModified": 1771520882, + "narHash": "sha256-9SeTZ4Pwr730YfT7V8Azb8GFbwk1ZwiQDAwft3qAD+o=", "owner": "LnL7", "repo": "nix-darwin", - "rev": "0d7874ef7e3ba02d58bebb871e6e29da36fa1b37", + "rev": "6a7fdcd5839ec8b135821179eea3b58092171bcf", "type": "github" }, "original": { @@ -162,11 +162,11 @@ ] }, "locked": { - "lastModified": 1770202486, - "narHash": "sha256-VhmDekVd7JUEw6CRrN27cou1FfQuoRHhUEq3uCzfl98=", + "lastModified": 1771734689, + "narHash": "sha256-/phvMgr1yutyAMjKnZlxkVplzxHiz60i4rc+gKzpwhg=", "owner": "nix-community", "repo": "nix-index-database", - "rev": "f7d77408f21b6e8d03a5271ad9e633bfbac9cc7a", + "rev": "8f590b832326ab9699444f3a48240595954a4b10", "type": "github" }, "original": { @@ -195,11 +195,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1769302137, - "narHash": "sha256-QEDtctEkOsbx8nlFh4yqPEOtr4tif6KTqWwJ37IM2ds=", + "lastModified": 1771423359, + "narHash": "sha256-yRKJ7gpVmXbX2ZcA8nFi6CMPkJXZGjie2unsiMzj3Ig=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "a351494b0e35fd7c0b7a1aae82f0afddf4907aa8", + "rev": "740a22363033e9f1bb6270fbfb5a9574067af15b", "type": "github" }, "original": { @@ -217,11 +217,11 @@ ] }, "locked": { - "lastModified": 1769217863, - "narHash": "sha256-RY9kJDXD6+2Td/59LkZ0PFSereCXHdBX9wIkbYjRKCY=", + "lastModified": 1771563879, + "narHash": "sha256-vA5hocvdGhr+jfBN7A7ogeZqIz2qx01EixXwdVsQcnE=", "owner": "nix-community", "repo": "NixOS-WSL", - "rev": "38a5250e57f583662eac3b944830e4b9e169e965", + "rev": "379d20c55f552e91fb9f3f0382e4a97d3f452943", "type": "github" }, "original": { @@ -264,11 +264,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1770115704, - "narHash": "sha256-KHFT9UWOF2yRPlAnSXQJh6uVcgNcWlFqqiAZ7OVlHNc=", + "lastModified": 1771848320, + "narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e6eae2ee2110f3d31110d5c222cd395303343b08", + "rev": "2fc6539b481e1d2569f25f8799236694180c0993", "type": "github" }, "original": { @@ -316,11 +316,11 @@ "tmux": { "flake": false, "locked": { - "lastModified": 1770059185, - "narHash": "sha256-zcll86R5uxUHhEb7VKshJibGwgJOGz2K6ru2gf+DT9g=", + "lastModified": 1771921679, + "narHash": "sha256-4qJvEm8/dkOhbetVuVfrTpeS/iVG2O48QYUYavXEAM4=", "owner": "tmux", "repo": "tmux", - "rev": "615c27c11789948df2db09e113e882f82dfb3e1c", + "rev": "08779aa2a3ddb67f10357962c3bb8fde8820cef5", "type": "github" }, "original": { @@ -336,11 +336,11 @@ ] }, "locked": { - "lastModified": 1769747637, - "narHash": "sha256-fRdj480sqW/a+APO6CmelZsa07BRAdEQLUjBQJuyQbU=", + "lastModified": 1771735013, + "narHash": "sha256-QAh0iw/AgjcaNvBE5OIZstxVxagLVK0RAuH7EhIL/N8=", "owner": "youwen5", "repo": "zen-browser-flake", - "rev": "09e429679b7cc175e71e2d25800bab66493c1c80", + "rev": "32b69f03007507fc012be9203efdd414f4bc0d66", "type": "github" }, "original": { diff --git a/nvim/lua/plugins/opencode.lua b/nvim/lua/plugins/opencode.lua index 6cdc413..643da19 100644 --- a/nvim/lua/plugins/opencode.lua +++ b/nvim/lua/plugins/opencode.lua @@ -1,3 +1,10 @@ +---@type opencode.Opts +vim.g.opencode_opts = { + provider = { + enabled = "terminal", + } +} + return { { "opencode-nvim", @@ -7,20 +14,19 @@ return { function() require("opencode").toggle() end, desc = "Opencode", mode = { "n", "v" }, - } + }, + { + + "gl", + function() return require("opencode").operator("@this ") end, + desc = "Add range to opencode", + mode = { "n", "x" }, + }, + { + "gll", + function() return require("opencode").operator("@this ") .. "_" end, + desc = "Add line to opencode", + }, }, - ---@type opencode.Opts - opts = { - provider = { - enabled = "terminal", - } - }, - after = function(plug) - vim.g.opencode_opts = plug.opts - vim.keymap.set({ "n", "x" }, "gl", function() return require("opencode").operator("@this ") end, - { desc = "Add range to opencode", expr = true }) - vim.keymap.set("n", "gll", function() return require("opencode").operator("@this ") .. "_" end, - { desc = "Add line to opencode", expr = true }) - end, }, }