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