プロジェクト内のファイルの一覧に git_files のpickerをよく使うのだが、新しくファイルを足したときにそれが一覧に出てなく困っていた。

デフォルトは {"git","ls-files","--exclude-standard","--cached"} なので、 --others を足せば良さそう。というわけで以下のようになった。

local telescope = require('telescope')
local builtin = require('telescope.builtin')

vim.keymap.set('n', '<Space>f', builtin.git_files, {})

telescope.setup{
  pickers = {
    git_files = {
      git_command = {'git', 'ls-files', '--exclude-standard', '--cached', '--others',},
    },
  },
}

以上。