Git blame command, remove telescope fuzzy finder
This commit is contained in:
parent
64390e0389
commit
0ed6f24866
@ -7,7 +7,7 @@ function M.config()
|
||||
end
|
||||
|
||||
local actions = require "telescope.actions"
|
||||
telescope.load_extension "fzf"
|
||||
--telescope.load_extension "fzf"
|
||||
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
@ -86,12 +86,12 @@ function M.config()
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true,
|
||||
override_generic_sorter = true,
|
||||
override_file_sorter = true,
|
||||
case_mode = "smart_case",
|
||||
},
|
||||
-- fzf = {
|
||||
-- fuzzy = true,
|
||||
-- override_generic_sorter = true,
|
||||
-- override_file_sorter = true,
|
||||
-- case_mode = "smart_case",
|
||||
-- },
|
||||
},
|
||||
}
|
||||
end
|
||||
|
@ -31,7 +31,8 @@ map('n', '<leader>w', '<cmd>cclose<CR>', opts)
|
||||
-- Navigate buffers
|
||||
map("n", "<S-l>", "<cmd>bnext<CR>", opts)
|
||||
map("n", "<S-h>", "<cmd>bprevious<CR>", opts)
|
||||
map("n", "<leader>q", "<cmd>Bdelete!<CR>", opts)
|
||||
map("n", "<leader>c", "<cmd>Bdelete<CR>", opts) -- don't close if unsaved
|
||||
map("n", "<leader>q", "<cmd>Bdelete!<CR>", opts) -- close it no matter what B)
|
||||
|
||||
-- Toggle Diagnostics
|
||||
map("n", "<leader>de", "<cmd>lua vim.diagnostic.enable()<cr>", opts)
|
||||
@ -62,7 +63,9 @@ map("n", "<leader>la", "<cmd>Lspsaga code_action<CR>", opts)
|
||||
map("n", "<C-u>", "<cmd>lua require('lspsaga.action').smart_scroll_with_saga(-1)<CR>", opts)
|
||||
map("n", "<C-d>", "<cmd>lua require('lspsaga.action').smart_scroll_with_saga(1)<CR>", opts)
|
||||
|
||||
-- LSP (See also configs/lsp-installer.lua)
|
||||
map("n", "<leader>b", "<cmd>GitBlameToggle<CR>", opts)
|
||||
|
||||
-- LSP (See configs/lsp-installer.lua)
|
||||
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
||||
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "gl", "<cmd>lua vim.diagnostic.open_float({ source = true, prefix = function(d, i, ttl) return string.rep(' ', #tostring(ttl) - #tostring(i)) .. tostring(i) .. ': ', nil end })<CR>")
|
||||
-- vim.api.nvim_buf_set_keymap(bufnr, "n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts)
|
||||
|
@ -67,7 +67,7 @@ packer.startup {
|
||||
|
||||
-- Telescope (find files, words, git commits, etc)
|
||||
use { 'nvim-telescope/telescope.nvim', config = function() require'configs.telescope'.config() end }
|
||||
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
|
||||
-- use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
|
||||
|
||||
--
|
||||
-- Treesitter
|
||||
|
Loading…
Reference in New Issue
Block a user