mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
nixvim: replace telescope with snacks.nvim picker
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
@@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user