mirror of
https://github.com/cap153/nvim.git
synced 2026-01-07 03:00:07 +08:00
添加fzf-lua配置
This commit is contained in:
parent
6d2c60eedc
commit
557287033b
8 changed files with 78 additions and 50 deletions
|
|
@ -7,9 +7,9 @@ return {
|
|||
config = function()
|
||||
local builtin = require('telescope.builtin')
|
||||
-- ctrl+t打开文件查找
|
||||
vim.keymap.set('n', '<c-t>', builtin.find_files, {})
|
||||
-- vim.keymap.set('n', '<c-t>', builtin.find_files, {})
|
||||
-- ctrl+f打开字符串查找
|
||||
vim.keymap.set('n', '<c-f>', '<cmd>lua require("telescope.builtin").grep_string({ search = vim.fn.input("Grep For > "), only_sort_text = true, })<cr>', { noremap = true })
|
||||
-- vim.keymap.set('n', '<c-f>', '<cmd>lua require("telescope.builtin").grep_string({ search = vim.fn.input("Grep For > "), only_sort_text = true, })<cr>', { noremap = true })
|
||||
-- 下面的配置从cw的配置粘贴过来的,删除一部分看不懂的
|
||||
local ts = require('telescope')
|
||||
ts.setup({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue