up
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
./options.nix
|
||||
./plugins/blink-cmp.nix
|
||||
./plugins/conform.nix
|
||||
./plugins/fff.nix
|
||||
./plugins/grug-far.nix
|
||||
./plugins/harpoon.nix
|
||||
./plugins/hunk.nix
|
||||
@@ -12,6 +13,7 @@
|
||||
./plugins/lsp.nix
|
||||
./plugins/mini.nix
|
||||
./plugins/oil.nix
|
||||
./plugins/opencode.nix
|
||||
./plugins/toggleterm.nix
|
||||
./plugins/treesitter.nix
|
||||
./plugins/zk.nix
|
||||
|
||||
@@ -66,13 +66,13 @@
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ff";
|
||||
action = ":Pick files<CR>";
|
||||
action.__raw = "function() require('fff').find_files() end";
|
||||
options.desc = "Search files";
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>fg";
|
||||
action = ":Pick grep_live<CR>";
|
||||
action.__raw = "function() require('fff').live_grep() end";
|
||||
options.desc = "Grep";
|
||||
}
|
||||
{
|
||||
|
||||
8
modules/_neovim/plugins/fff.nix
Normal file
8
modules/_neovim/plugins/fff.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{pkgs, ...}: {
|
||||
programs.nixvim = {
|
||||
extraPlugins = [pkgs.vimPlugins.fff-nvim];
|
||||
extraConfigLua = ''
|
||||
require('fff').setup({})
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -28,8 +28,10 @@
|
||||
{ mode = 'n', keys = '<Leader>e', desc = '+Explore/+Edit' },
|
||||
{ mode = 'n', keys = '<Leader>f', desc = '+Find' },
|
||||
{ mode = 'n', keys = '<Leader>g', desc = '+Git' },
|
||||
{ mode = 'n', keys = '<Leader>l', desc = '+LSP' },
|
||||
{ mode = 'x', keys = '<Leader>l', desc = '+LSP' },
|
||||
{ mode = 'n', keys = '<Leader>l', desc = '+LSP' },
|
||||
{ mode = 'x', keys = '<Leader>l', desc = '+LSP' },
|
||||
{ mode = 'n', keys = '<Leader>o', desc = '+OpenCode' },
|
||||
{ mode = 'x', keys = '<Leader>o', desc = '+OpenCode' },
|
||||
require("mini.clue").gen_clues.builtin_completion(),
|
||||
require("mini.clue").gen_clues.g(),
|
||||
require("mini.clue").gen_clues.marks(),
|
||||
|
||||
34
modules/_neovim/plugins/opencode.nix
Normal file
34
modules/_neovim/plugins/opencode.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{pkgs, ...}: let
|
||||
opencode-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
pname = "opencode-nvim";
|
||||
version = "unstable-2026-03-07";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "sudo-tee";
|
||||
repo = "opencode.nvim";
|
||||
rev = "dffa3f39a8251c7ba53b1544d8536b5f51b4e90d";
|
||||
hash = "sha256-KxIuToMpyo/Yi4xKirMV8Fznlma6EL1k4YQm5MQdGw4=";
|
||||
};
|
||||
doCheck = false;
|
||||
};
|
||||
in {
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
opencode-nvim
|
||||
plenary-nvim
|
||||
render-markdown-nvim
|
||||
];
|
||||
extraConfigLua = ''
|
||||
require('render-markdown').setup({
|
||||
anti_conceal = { enabled = false },
|
||||
file_types = { 'markdown', 'opencode_output' },
|
||||
})
|
||||
require('opencode').setup({
|
||||
server = {
|
||||
url = 'http://127.0.0.1',
|
||||
port = 18822,
|
||||
auto_kill = false,
|
||||
},
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user