はじめに
NeovimのTelescopeプラグインでファイル検索のデフォルト設定は .gitignore
に記述されたファイルが検索対象になりません。.gitignore
に記述したファイルも検索対象に含める設定を紹介します。
設定方法
telescopeに no_ignore = true
の設定を追加します。以下はlazy.nvimで設定をする例です。
require('telescope').setup {
--省略
pickers = {
find_files = {
no_ignore = true,
},
},
--省略
}
動作を確認したバージョン
- neovim 0.10.1
- Telescope 0.1.8