Compare commits
No commits in common. "598c389741d6145340badfbf53df689075ab9ca5" and "cb98d962a55daef93d4a653d3ce2c3b6deeab0d1" have entirely different histories.
598c389741
...
cb98d962a5
@ -106,6 +106,10 @@ return {
|
|||||||
callback = function(ev)
|
callback = function(ev)
|
||||||
local opts = { noremap = true, buffer = ev.buf }
|
local opts = { noremap = true, buffer = ev.buf }
|
||||||
|
|
||||||
|
-- TODO: inoremap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm() : "\<TAB>"
|
||||||
|
-- Should I drop this? It's only for expanding snippets because
|
||||||
|
-- coc.nvim was being weird about it
|
||||||
|
|
||||||
-- Fixit mapping, or close enough, actually any code action
|
-- Fixit mapping, or close enough, actually any code action
|
||||||
vim.keymap.set('n', '<leader>fi',
|
vim.keymap.set('n', '<leader>fi',
|
||||||
require("actions-preview").code_actions, opts)
|
require("actions-preview").code_actions, opts)
|
||||||
|
@ -2,28 +2,9 @@ return {
|
|||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'nvim-telescope/telescope-fzy-native.nvim',
|
|
||||||
'nvim-tree/nvim-web-devicons',
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local telescope = require('telescope')
|
require('telescope').setup({})
|
||||||
telescope.setup({
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = {
|
|
||||||
['<C-s>'] = 'select_horizontal',
|
|
||||||
['<C-h>'] = 'preview_scrolling_left',
|
|
||||||
['<C-l>'] = 'preview_scrolling_right',
|
|
||||||
},
|
|
||||||
n = {
|
|
||||||
['<C-s>'] = 'select_horizontal',
|
|
||||||
['<C-h>'] = 'preview_scrolling_left',
|
|
||||||
['<C-l>'] = 'preview_scrolling_right',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
telescope.load_extension('fzy_native')
|
|
||||||
|
|
||||||
-- TODO: Add more mappings?
|
-- TODO: Add more mappings?
|
||||||
local opts = { noremap = true }
|
local opts = { noremap = true }
|
||||||
@ -31,7 +12,7 @@ return {
|
|||||||
vim.keymap.set('n', '<leader>gf', ':Telescope git_files<CR>', opts)
|
vim.keymap.set('n', '<leader>gf', ':Telescope git_files<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>lg', ':Telescope live_grep<CR>', opts)
|
vim.keymap.set('n', '<leader>lg', ':Telescope live_grep<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>b', ':Telescope buffers<CR>', opts)
|
vim.keymap.set('n', '<leader>b', ':Telescope buffers<CR>', opts)
|
||||||
vim.keymap.set('n', '<leader>ht', ':Telescope help_tags<CR>', opts)
|
vim.keymap.set('n', '<leader>he', ':Telescope help_tags<CR>', opts)
|
||||||
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user