forked from nico/dots
nvim: added neovim configuration
This commit is contained in:
parent
7182c3a7a0
commit
0399226628
17 changed files with 579 additions and 0 deletions
23
stow/.config/nvim/lua/nico/lazy/telescope.lua
Normal file
23
stow/.config/nvim/lua/nico/lazy/telescope.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
require('telescope').setup({
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
['<C-j>'] = require("telescope.actions").move_selection_next,
|
||||
['<C-k>'] = require("telescope.actions").move_selection_previous,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
vim.keymap.set('n', 'ff', builtin.find_files, {})
|
||||
vim.keymap.set('n', 'fg', builtin.git_files, {})
|
||||
vim.keymap.set('n', 'fs', builtin.grep_string, {})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue