diff options
author | Julian T <julian@jtle.dk> | 2020-09-27 14:20:35 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-27 14:20:35 +0200 |
commit | 42dd75e25f01b680c958cc6d1838f3d21e36b269 (patch) | |
tree | fc31d61763f4b68e8352c983059deba52a0f209d | |
parent | 6a95d5a301b478d5bdac1c1cb8ccca10c01fb092 (diff) |
Back on vimcompletesme
-rw-r--r-- | vim/.vimrc | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -15,7 +15,7 @@ set shellslash " Completion Plugin 'prabirshrestha/async.vim' Plugin 'prabirshrestha/vim-lsp' - Plugin 'lifepillar/vim-mucomplete' + Plugin 'ajh17/VimCompletesMe' Plugin 'Shougo/echodoc.vim' Plugin 'tpope/vim-surround' @@ -38,17 +38,19 @@ set shellslash " Git Plugin 'tpope/vim-fugitive' - + " File support " Plugin 'cespare/vim-toml' "Plugin 'lervag/vimtex' - + Plugin 'aklt/plantuml-syntax' + Plugin 'LnL7/vim-nix' + " Plugin 'vimwiki/vimwiki' - + " Snippits - Plugin 'SirVer/ultisnips' - Plugin 'honza/vim-snippets' + " Plugin 'SirVer/ultisnips' + " Plugin 'honza/vim-snippets' call vundle#end() " required filetype plugin indent on " required @@ -57,10 +59,6 @@ set shellslash set completeopt+=menuone set completeopt+=noselect - let g:UltiSnipsExpandTrigger = '<C-s>' - let g:mucomplete#chains = {} - let g:mucomplete#chains.default = [ 'omni', 'ulti', 'path', 'keyn' ] - if has('nvim') let g:echodoc#enable_at_startup = 1 let g:echodoc#type = 'virtual' @@ -80,7 +78,7 @@ set shellslash au User lsp_setup call lsp#register_server({ \ 'name': 'python', \ 'cmd': {server_info->['pyls']}, - \ 'whitelist': ['python'], + \ 'whitelist': ['python', 'py'], \ }) endif if executable('clangd') @@ -116,6 +114,7 @@ set shellslash function! s:on_lsp_buffer_enabled() abort echo "Enabling lsp" set omnifunc=lsp#complete + let b:vcm_tab_complete = 'omni' set signcolumn=yes nmap <buffer> gd <plug>(lsp-definition) nmap <buffer> <f2> <plug>(lsp-rename) @@ -215,6 +214,7 @@ set shellslash " Enforcing filetypes autocmd BufRead,BufNewFile *.ino set filetype=c autocmd BufRead,BufNewFile *.asc set filetype=asciidoc + autocmd BufRead,BufNewFile *.nix set filetype=nix " Highlightning And colors set termguicolors |