Skip to content

Commit

Permalink
chore(ddc): update inputs & use pum preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ttak0422 committed Dec 10, 2024
1 parent 96f5178 commit 0c7cf3d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions main/denops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ rec {
language.lsp
treesitter.treesitter
snippet.vsnip
{
package = ddc-previewer-floating;
postConfig = read ../lua/autogen/ddc-previewer-floating.lua;
}
];
postConfig = {
language = "vim";
Expand Down
8 changes: 6 additions & 2 deletions vim/ddc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ call pum#set_option({
\ 'auto_confirm_time': 0,
\ 'direction': 'auto',
\ 'padding': v:false,
\ 'preview': v:true,
\ 'preview_delay': 100,
\ 'preview_width': 100,
\ 'preview_border': 'single',
\ 'highlight_preview': 'Pmenu',
\ 'scrollbar_char': '',
\ 'item_orders': ['abbr', 'space', 'kind', 'space', 'menu'],
\ 'max_height': 20,
\ 'use_setline': v:true,
\ 'offset_cmdcol': 0,
\ 'offset_cmdrow': 0,
\ 'preview': v:false,
\ 'preview_width': 120,
\ })
set wildoptions-=pum

Expand All @@ -30,6 +33,7 @@ inoremap <C-p> <Cmd>call pum#map#select_relative(-1)<CR>
inoremap <expr> <C-e> pum#visible() ? '<Cmd>call pum#map#cancel()<CR>' : '<End>'
inoremap <C-y> <Cmd>call pum#map#confirm()<CR>
inoremap <C-o> <Cmd>call pum#map#confirm_word()<CR>
inoremap <C-g> <Cmd>call pum#map#toggle_preview()<CR>
inoremap <C-x> <Cmd>call ddc#map#manual_complete()<CR>
inoremap <C-x><C-x> <Cmd>call ddc#map#manual_complete()<CR>
inoremap <C-x><C-b> <Cmd>call ddc#map#manual_complete(#{ sources: ['buffer'] })<CR>
Expand Down

0 comments on commit 0c7cf3d

Please sign in to comment.