summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-27 14:20:35 +0200
committerJulian T <julian@jtle.dk>2020-09-27 14:20:35 +0200
commit42dd75e25f01b680c958cc6d1838f3d21e36b269 (patch)
treefc31d61763f4b68e8352c983059deba52a0f209d
parent6a95d5a301b478d5bdac1c1cb8ccca10c01fb092 (diff)
Back on vimcompletesme
-rw-r--r--vim/.vimrc22
1 files changed, 11 insertions, 11 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 02ee5af..a581bce 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -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