Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return {
- {
- 'codota/tabnine-nvim',
- build = "./dl_binaries.sh",
- config = function()
- require('tabnine').setup({
- disable_auto_comment = true,
- accept_keymap = "<Tab>",
- dismiss_keymap = "<C-]>",
- debounce_ms = 800,
- suggestion_color = { gui = "#808080", cterm = 244 },
- exclude_filetypes = { "TelescopePrompt", "NvimTree" },
- log_file_path = nil,
- ignore_certificate_errors = false,
- workspace_folders = {
- paths = { "/home/ninjafire/Workspace" },
- },
- })
- end
- },
- {
- 'saghen/blink.cmp',
- dependencies = 'rafamadriz/friendly-snippets',
- version = 'v0.*',
- opts = {
- signature = { enabled = true },
- keymap = {
- preset = 'default', -- "default, super-tab, enter"
- ['<A-1>'] = { function(cmp) cmp.accept({ index = 1 }) end },
- ['<A-2>'] = { function(cmp) cmp.accept({ index = 2 }) end },
- ['<A-3>'] = { function(cmp) cmp.accept({ index = 3 }) end },
- ['<A-4>'] = { function(cmp) cmp.accept({ index = 4 }) end },
- ['<A-5>'] = { function(cmp) cmp.accept({ index = 5 }) end },
- ['<A-6>'] = { function(cmp) cmp.accept({ index = 6 }) end },
- ['<A-7>'] = { function(cmp) cmp.accept({ index = 7 }) end },
- ['<A-8>'] = { function(cmp) cmp.accept({ index = 8 }) end },
- ['<A-9>'] = { function(cmp) cmp.accept({ index = 9 }) end },
- },
- appearance = {
- use_nvim_cmp_as_default = true,
- nerd_font_variant = 'mono'
- },
- sources = {
- default = { 'lsp', 'path', 'snippets', 'buffer', "markdown" },
- -- cmdline = {},
- providers = {
- markdown = {
- name = 'RenderMarkdown',
- module = 'render-markdown.integ.blink',
- fallbacks = { 'lsp' },
- },
- },
- },
- completion = {
- menu = {
- draw = {
- columns = { { 'item_idx' }, { 'kind_icon' }, { 'label', 'label_description', gap = 1 }, { 'source_id' } },
- components = {
- item_idx = {
- text = function(ctx) return tostring(ctx.idx) end,
- highlight = 'BlinkCmpItemIdx'
- }
- }
- },
- border = 'single',
- }
- },
- },
- opts_extend = { "sources.default" }
- },
- {
- 'windwp/nvim-ts-autotag',
- config = function()
- require('nvim-ts-autotag').setup({
- opts = {
- enable_close = true, -- Auto close tags
- enable_rename = true, -- Auto rename pairs of tags
- enable_close_on_slash = false -- Auto close on trailing </
- },
- per_filetype = {
- ["html"] = {
- enable_close = false
- }
- }
- })
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement