nixvim: replace telescope with snacks.nvim picker

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-03-11 20:15:02 +09:00
co-authored by Claude Sonnet 4.6
parent 2ca45cc0ce
commit 1e70d4830b
4 changed files with 16 additions and 12 deletions
+7 -5
View File
@@ -72,10 +72,12 @@ in {
# Dropbar # Dropbar
(mkRaw "<leader>dp" "function() require('dropbar.api').pick() end" "dropbarでナビゲート") (mkRaw "<leader>dp" "function() require('dropbar.api').pick() end" "dropbarでナビゲート")
# Telescope (explicit form for reliability) # Snacks Picker
(mkRaw "<leader>ff" "function() require('telescope.builtin').find_files() end" "ファイルを探す") (mkRaw "<leader>ff" "function() Snacks.picker.files() end" "ファイルを探す")
(mkRaw "<leader>fg" "function() require('telescope.builtin').live_grep() end" "文字列を全文検索") (mkRaw "<leader>fg" "function() Snacks.picker.grep() end" "文字列を全文検索")
(mkRaw "<leader>fb" "function() require('telescope.builtin').buffers() end" "開いているバッファを探す") (mkRaw "<leader>fb" "function() Snacks.picker.buffers() end" "開いているバッファを探す")
(mkRaw "<leader>fh" "function() require('telescope.builtin').help_tags() end" "ヘルプ項目を探す") (mkRaw "<leader>fh" "function() Snacks.picker.help() end" "ヘルプ項目を探す")
(mkRaw "<leader>fk" "function() Snacks.picker.keymaps() end" "キーマップを探す")
(mkRaw "<leader>fc" "function() Snacks.picker.commands() end" "コマンドを探す")
]; ];
} }
@@ -1,6 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
./telescope.nix ./snacks.nix
./treesitter.nix ./treesitter.nix
./blink-cmp.nix ./blink-cmp.nix
./gitsigns.nix ./gitsigns.nix
@@ -0,0 +1,8 @@
{ pkgs, ... }: {
programs.nixvim = {
extraPlugins = [ pkgs.vimPlugins.snacks-nvim ];
extraConfigLua = ''
require("snacks").setup({ picker = { enabled = true } })
'';
};
}
@@ -1,6 +0,0 @@
{...}: {
programs.nixvim.plugins.telescope = {
enable = true;
extensions.fzf-native.enable = true;
};
}