Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. return {
  2. {
  3. 'codota/tabnine-nvim',
  4. build = "./dl_binaries.sh",
  5. config = function()
  6. require('tabnine').setup({
  7. disable_auto_comment = true,
  8. accept_keymap = "<Tab>",
  9. dismiss_keymap = "<C-]>",
  10. debounce_ms = 800,
  11. suggestion_color = { gui = "#808080", cterm = 244 },
  12. exclude_filetypes = { "TelescopePrompt", "NvimTree" },
  13. log_file_path = nil,
  14. ignore_certificate_errors = false,
  15. workspace_folders = {
  16. paths = { "/home/ninjafire/Workspace" },
  17. },
  18. })
  19. end
  20. },
  21. {
  22. 'saghen/blink.cmp',
  23. dependencies = 'rafamadriz/friendly-snippets',
  24. version = 'v0.*',
  25. opts = {
  26. signature = { enabled = true },
  27. keymap = {
  28. preset = 'default', -- "default, super-tab, enter"
  29. ['<A-1>'] = { function(cmp) cmp.accept({ index = 1 }) end },
  30. ['<A-2>'] = { function(cmp) cmp.accept({ index = 2 }) end },
  31. ['<A-3>'] = { function(cmp) cmp.accept({ index = 3 }) end },
  32. ['<A-4>'] = { function(cmp) cmp.accept({ index = 4 }) end },
  33. ['<A-5>'] = { function(cmp) cmp.accept({ index = 5 }) end },
  34. ['<A-6>'] = { function(cmp) cmp.accept({ index = 6 }) end },
  35. ['<A-7>'] = { function(cmp) cmp.accept({ index = 7 }) end },
  36. ['<A-8>'] = { function(cmp) cmp.accept({ index = 8 }) end },
  37. ['<A-9>'] = { function(cmp) cmp.accept({ index = 9 }) end },
  38. },
  39. appearance = {
  40. use_nvim_cmp_as_default = true,
  41. nerd_font_variant = 'mono'
  42. },
  43. sources = {
  44. default = { 'lsp', 'path', 'snippets', 'buffer', "markdown" },
  45. -- cmdline = {},
  46. providers = {
  47. markdown = {
  48. name = 'RenderMarkdown',
  49. module = 'render-markdown.integ.blink',
  50. fallbacks = { 'lsp' },
  51. },
  52. },
  53. },
  54. completion = {
  55. menu = {
  56. draw = {
  57. columns = { { 'item_idx' }, { 'kind_icon' }, { 'label', 'label_description', gap = 1 }, { 'source_id' } },
  58. components = {
  59. item_idx = {
  60. text = function(ctx) return tostring(ctx.idx) end,
  61. highlight = 'BlinkCmpItemIdx'
  62. }
  63. }
  64. },
  65. border = 'single',
  66. }
  67. },
  68. },
  69. opts_extend = { "sources.default" }
  70. },
  71. {
  72. 'windwp/nvim-ts-autotag',
  73. config = function()
  74. require('nvim-ts-autotag').setup({
  75. opts = {
  76. enable_close = true, -- Auto close tags
  77. enable_rename = true, -- Auto rename pairs of tags
  78. enable_close_on_slash = false -- Auto close on trailing </
  79. },
  80. per_filetype = {
  81. ["html"] = {
  82. enable_close = false
  83. }
  84. }
  85. })
  86. end
  87. }
  88. }
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement