Telescope resume mapping, make scoped search abortable

This commit is contained in:
Amanda Graven 2024-03-18 15:44:59 +01:00
parent 8f87432254
commit f56f17aed0

View file

@ -13,7 +13,8 @@ local workman = false
-- Set font
o.guifont = 'IosevkaTermSlab Nerd Font,IosevkaTerm Nerd Font,Iosevka Term Slab,Iosevka:h10:#e-subpixelantialias'
vim.g.neovide_floating_z_height = 1
g.neovide_floating_z_height = 1
g.neovide_cursor_smooth_blink = 1
if fn.hostname() == 'tappy' then
g.neovide_refresh_rate = 144
end
@ -547,7 +548,9 @@ require('lazy').setup({
capabilities = lspconfig.util.default_config.capabilities,
settings = {
java = {},
java = {
autobuild = { enabled = false },
},
},
init_options = {
@ -978,7 +981,7 @@ require('lazy').setup({
{'williamboman/mason-lspconfig.nvim', dependencies = {'williamboman/mason.nvim'}, opts = {
automatic_installation = true
}},
{'NeogitOrg/neogit', opts = {
{'NeogitOrg/neogit', lazy = false, opts = {
disable_context_highlighting = true,
integrations = {
diffview = true,
@ -987,6 +990,8 @@ require('lazy').setup({
item = {"", ""},
section = {"", ""},
},
}, keys = {
{'<Leader><C-g>', '<Cmd>Neogit<CR>', { desc = 'Neogit' }}
}},
{'rcarriga/nvim-notify', dependencies = {'nvim-telescope/telescope.nvim'}, opts = {
stages = 'fade'
@ -1092,6 +1097,7 @@ require('lazy').setup({
g = {'<Cmd>Telescope live_grep<CR>', 'Grep'},
G = {function()
vim.ui.input({ completion = 'dir' }, function(input)
if not input then return end
telescope.builtin.live_grep { search_dirs = {input} }
end)
end, 'Grep in subdirectory'},
@ -1106,6 +1112,7 @@ require('lazy').setup({
m = {'<Cmd>Telescope man_pages sections=ALL<CR>', 'Man pages'},
[':'] = {'<Cmd>Telescope commands<CR>', 'Commands'},
u = {'<Cmd>Telescope undo<CR>', 'Undo'},
['.'] = {'<Cmd>Telescope resume<CR>', 'Resume'},
}
}
require'telescope'.load_extension('fzf')