improve startup time from >250ms to ~70ms
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
return {
|
||||
"stevearc/dressing.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
}
|
||||
'stevearc/dressing.nvim',
|
||||
dependencies = {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
},
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
input = {
|
||||
enabled = true,
|
||||
-- default_prompt = 'Prompt',
|
||||
prompt_align = 'left',
|
||||
insert_only = false,
|
||||
start_in_insert = true,
|
||||
border = 'rounded',
|
||||
relative = 'cursor',
|
||||
prefer_width = 0.4,
|
||||
mappings = {
|
||||
n = {
|
||||
['<Esc>'] = 'Close',
|
||||
['q'] = 'Close',
|
||||
['<CR>'] = 'Confirm',
|
||||
},
|
||||
i = {
|
||||
['<C-c>'] = 'Close',
|
||||
['<CR>'] = 'Confirm',
|
||||
['<Up>'] = 'HistoryPrev',
|
||||
['<Down>'] = 'HistoryNext',
|
||||
},
|
||||
},
|
||||
override = function(conf)
|
||||
return conf
|
||||
end,
|
||||
},
|
||||
select = {},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user