completion.lua 760 B

123456789101112131415161718192021222324252627282930313233343536
  1. local blink_cmp = require('blink.cmp')
  2. blink_cmp.setup({
  3. cmdline = {
  4. enabled = false,
  5. },
  6. completion = {
  7. accept = {
  8. auto_brackets = {
  9. enabled = false,
  10. },
  11. },
  12. documentation = {
  13. auto_show = true,
  14. auto_show_delay_ms = 500,
  15. },
  16. trigger = {
  17. prefetch_on_insert = false,
  18. show_on_keyword = false,
  19. show_on_trigger_character = false,
  20. },
  21. menu = {
  22. draw = {
  23. columns = {
  24. { 'label', 'label_description', gap = 1 },
  25. { 'kind' },
  26. },
  27. },
  28. },
  29. },
  30. keymap = {
  31. ['<Enter>'] = { 'select_and_accept', 'fallback' },
  32. ['<C-u>'] = { 'scroll_documentation_up', 'fallback' },
  33. ['<C-d>'] = { 'scroll_documentation_down', 'fallback' },
  34. },
  35. })