prefection
This commit is contained in:
@@ -265,6 +265,7 @@ do
|
|||||||
vim.api.nvim_set_option_value('cursorline', false, {win = win})
|
vim.api.nvim_set_option_value('cursorline', false, {win = win})
|
||||||
vim.api.nvim_set_option_value('winfixwidth', true, {win = win})
|
vim.api.nvim_set_option_value('winfixwidth', true, {win = win})
|
||||||
vim.api.nvim_set_option_value("fillchars", "eob: ", { win = win })
|
vim.api.nvim_set_option_value("fillchars", "eob: ", { win = win })
|
||||||
|
vim.cmd"wincmd ="
|
||||||
else
|
else
|
||||||
vim.api.nvim_win_close(padding_window, true)
|
vim.api.nvim_win_close(padding_window, true)
|
||||||
end
|
end
|
||||||
@@ -724,14 +725,32 @@ require'lazy'.setup{ --{{{1
|
|||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local actions = require'telescope.actions'
|
local actions = require'telescope.actions'
|
||||||
|
vim.o.splitright = true
|
||||||
require'telescope'.setup{
|
require'telescope'.setup{
|
||||||
defaults = {
|
defaults = {
|
||||||
file_ignore_patterns = {'%__virtual.cs$'},
|
file_ignore_patterns = {'%__virtual.cs$'},
|
||||||
mappings = {
|
mappings = {
|
||||||
i = { ['<C-Q>'] = actions.smart_send_to_qflist + actions.open_qflist, ['<C-j>'] = actions.select_default, },
|
i = {
|
||||||
n = { ['<C-Q>'] = actions.smart_send_to_qflist + actions.open_qflist, ['<C-j>'] = actions.select_default, },
|
['<C-Q>'] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||||
|
['<C-j>'] = actions.select_default,
|
||||||
|
},
|
||||||
|
n = {
|
||||||
|
['<C-Q>'] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||||
|
['<C-j>'] = actions.select_default,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
pickers = {
|
||||||
|
help_tags = {
|
||||||
|
attach_mappings = function(_, map)
|
||||||
|
map("i", "<CR>", actions.select_vertical)
|
||||||
|
map("n", "<CR>", actions.select_vertical)
|
||||||
|
map("i", "<C-j>", actions.select_vertical)
|
||||||
|
map("n", "<C-j>", actions.select_vertical)
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
extensions = { ['ui-select'] = { require'telescope.themes'.get_dropdown{}, }, },
|
extensions = { ['ui-select'] = { require'telescope.themes'.get_dropdown{}, }, },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user