Replace fzf.vim functionality with telescope
This commit is contained in:
parent
59ec8d490b
commit
c86636a697
|
@ -1,7 +0,0 @@
|
|||
map gf :GFiles<cr>
|
||||
map <Leader>gf :Files<cr>
|
||||
map gb :Buffers<cr>
|
||||
map gs :GFiles?<cr>
|
||||
map <Leader>ag :Ag<space>
|
||||
|
||||
imap <C-x><M-C-F> <plug>(fzf-complete-file)
|
1
init.vim
1
init.vim
|
@ -194,5 +194,6 @@ lua require("conf.treesitter")
|
|||
set foldmethod=expr
|
||||
set foldexpr=nvim_treesitter#foldexpr()
|
||||
set nofoldenable " Disable folding at startup.
|
||||
lua require("conf.telescope")
|
||||
lua require("conf.indent-blankline")
|
||||
" vi:foldmethod=marker sw=2
|
||||
|
|
|
@ -1,3 +1,35 @@
|
|||
local map = vim.keymap.set
|
||||
telescope = require('telescope')
|
||||
telescope.load_extension('fzf_native')
|
||||
telescope.builtin = require('telescope.builtin')
|
||||
|
||||
telescope.setup {
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
override_generic_sorter = true, -- override the generic sorter
|
||||
override_file_sorter = true, -- override the file sorter
|
||||
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
|
||||
-- the default case_mode is "smart_case"
|
||||
},
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown {
|
||||
-- even more opts
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
telescope.load_extension('fzf')
|
||||
telescope.load_extension("ui-select")
|
||||
|
||||
|
||||
--telescope.load_extension('lsp_handlers')
|
||||
--
|
||||
map('n', 'gff', telescope.builtin.fd)
|
||||
map('n', 'gfg', telescope.builtin.git_files)
|
||||
map('n', 'gfs', telescope.builtin.git_status)
|
||||
map('n', 'gs', telescope.builtin.git_status)
|
||||
map('n', 'gs', telescope.builtin.lsp_dynamic_workspace_symbols)
|
||||
map('n', 'g/', telescope.builtin.live_grep)
|
||||
map('n', '<C-/>', telescope.builtin.current_buffer_fuzzy_find)
|
||||
map('n', '<leader>*', telescope.builtin.grep_string)
|
||||
map('n', 'gb', telescope.builtin.buffers)
|
||||
|
|
|
@ -52,6 +52,7 @@ Plug 'nvim-lua/plenary.nvim'
|
|||
Plug 'nvim-telescope/telescope.nvim'
|
||||
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
|
||||
Plug 'gbrlsnchs/telescope-lsp-handlers.nvim'
|
||||
Plug 'nvim-telescope/telescope-ui-select.nvim'
|
||||
Plug 'ray-x/lsp_signature.nvim'
|
||||
Plug 'mfussenegger/nvim-jdtls'
|
||||
|
||||
|
@ -64,7 +65,6 @@ Plug 'junegunn/vim-easy-align'
|
|||
|
||||
" for stuff installed via disto package manager, e.g. fzf's bundled vim plugin
|
||||
Plug '/usr/share/vim/vimfiles'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'lambdalisue/suda.vim'
|
||||
|
|
Loading…
Reference in a new issue