nvim-config

Log | Files | Refs | Submodules | README

completion.vim (1077B)


      1 " Last Change: 2021 May 19
      2 
      3 if !exists('g:loaded_completion')
      4 	finish
      5 endif
      6 
      7 let g:completion_auto_change_source = 1
      8 
      9 let g:completion_chain_complete_list = {
     10 			\'default' : {
     11 			\	'default' : [{'complete_items' : ['lsp', 'snippet']}],
     12 			\	'comment' : [],
     13 			\	'string' : [{'mode' : 'file'}],
     14 			\	},
     15 			\'vim' : [
     16 			\	{'mode' : 'cmd'},
     17 			\	],
     18 			\'c' : [
     19 			\	{'complete_items': ['lsp', 'snippet']},
     20 			\	],
     21 			\'lua' : [
     22 			\	{'complete_items': ['lsp', 'snippet']}
     23 			\	],
     24 			\'mem' : [
     25 			\	{'complete_items': ['ts', 'snippet']}
     26 			\	],
     27 			\'java' : [
     28 			\	{ 'mode' : 'omni', 'triggered_only': ['.', '::']},
     29 			\	{ 'mode' : 'tags' },
     30 			\	],
     31 			\'groff' : [],
     32       \'ledger' : [ {"complete_items" : ["ts"]} ],
     33 			\'mail' : [],
     34 			\'vimwiki' : [],
     35       \'markdown': [
     36       \ { 'mode' : 'file' },
     37       \ { 'complete_items' : [ 'snippet' ] }
     38       \]
     39 			\}
     40 
     41 let g:completion_enable_snippet = 'vim-vsnip'
     42 
     43 let g:vsnip_snippet_dir = expand("$HOME") . '/.config/nvim/snippets/'
     44 
     45 " Use completion-nvim in every buffer
     46 autocmd BufEnter * lua require'completion'.on_attach()