This commit is contained in:
Rikuoh Tsujitani 2023-11-26 15:54:11 +09:00
parent ba022a9448
commit 51d9ab1925
Signed by: riq0h
GPG key ID: 010F09DEA298C717

View file

@ -135,6 +135,7 @@ require("lazy").setup({
defaults = { lazy = true }, defaults = { lazy = true },
{ "nvim-lualine/lualine.nvim", event = "VeryLazy" }, { "nvim-lualine/lualine.nvim", event = "VeryLazy" },
{ "nvim-telescope/telescope.nvim", cmd = "Telescope" }, { "nvim-telescope/telescope.nvim", cmd = "Telescope" },
{ "nvim-telescope/telescope-fzf-native.nvim", build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build', cmd = "Telescope" },
{ "nvim-telescope/telescope-file-browser.nvim", event = "VeryLazy" }, { "nvim-telescope/telescope-file-browser.nvim", event = "VeryLazy" },
{ "lewis6991/gitsigns.nvim", config = true, event = "VeryLazy" }, { "lewis6991/gitsigns.nvim", config = true, event = "VeryLazy" },
{ "ryanoasis/vim-devicons", event = "VeryLazy" }, { "ryanoasis/vim-devicons", event = "VeryLazy" },
@ -277,13 +278,30 @@ require("telescope").setup({
defaults = { defaults = {
borderchars = { "", "", "", "", "", "", "", "" }, borderchars = { "", "", "", "", "", "", "", "" },
color_devicons = true, color_devicons = true,
file_ignore_patterns = { "node_modules", ".git", ".svg", ".npm", "go" }, file_ignore_patterns = { "node_modules", ".git", ".cache", ".svg", ".npm", "go" },
mappings = { mappings = {
i = { i = {
["<esc>"] = require("telescope.actions").close, ["<esc>"] = require("telescope.actions").close,
}, },
}, },
}, },
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--smart-case",
"-uu",
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = "smart_case",
},
},
}) })
vim.keymap.set("n", "<leader>.", "<cmd>Telescope find_files hidden=true<CR>") vim.keymap.set("n", "<leader>.", "<cmd>Telescope find_files hidden=true<CR>")