changed to ale completion

This commit is contained in:
gurkenhabicht 2023-11-12 14:08:39 +01:00
parent 3118593ffe
commit 1570a5a984
2 changed files with 31 additions and 6 deletions

View File

@ -65,3 +65,6 @@ https://osintframework.com/ OSINT Framework
https://packetstormsecurity.com/ Packet Storm https://packetstormsecurity.com/ Packet Storm
https://tryhackme.com/mnemonicdaemon/badges/redteamcapstone TryHackMe | User Badge https://tryhackme.com/mnemonicdaemon/badges/redteamcapstone TryHackMe | User Badge
https://writeup.raw.pm/ Write-up Factory https://writeup.raw.pm/ Write-up Factory
https://www.wietzebeukema.nl/powershell-securestring-decoder/ PowerShell: ConvertFrom-SecureString decoder
https://genneko.github.io/playing-with-bsd/networking/freebsd-vlan/ Understanding VLAN Configuration on FreeBSD - genneko
https://clinta.github.io/freebsd-jails-the-hard-way/ https://clinta.github.io/freebsd-jails-the-hard-way/

View File

@ -201,22 +201,29 @@ call AutoHighlightToggle()
" Code Completion " Code Completion
" "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set splitright
let g:ale_enabled = 1 let g:ale_enabled = 1
let g:ale_hover_enabled = 1 let g:ale_hover_enabled = 1
let g:ale_completion_enabled = 1
let g:ale_completion_autoimport = 1
" let g:ale_floating_window_border = ['│', '─', '╭', '╮', '╯', '╰', '│', '─']
let g:ale_floating_window_border = repeat([''], 8)
" let g:ale_close_preview_on_insert = 1
" let g:ale_popup_menu_enabled = 1
" nmap gr :ALEFindReferences<CR> " nmap gr :ALEFindReferences<CR>
" nmap K :ALEHover<CR> " nmap K :ALEHover<CR>
set completeopt+=menuone " set completeopt+=menuone
set completeopt+=noselect " set completeopt+=noselect
set completeopt+=noinsert " set completeopt+=noinsert
set shortmess+=c " Shut off completion messages set shortmess+=c " Shut off completion messages
set belloff+=ctrlg " Add only if Vim beeps during completion set belloff+=ctrlg " Add only if Vim beeps during completion
let g:mucomplete#enable_auto_at_startup = 1 let g:mucomplete#enable_auto_at_startup = 1
let g:mucomplete#completion_delay = 1 let g:mucomplete#completion_delay = 1
set omnifunc=syntaxcomplete#Complete " set omnifunc=syntaxcomplete#Complete
" set omnifunc=ale#completion#Complete " set omnifunc=ale#completion#Complete
"set omnifunc=ale#completion#OmniFunc set omnifunc=ale#completion#OmniFunc
"let g:ale_completion_enabled=1 "let g:ale_completion_enabled=1
"function! OpenCompletion() "function! OpenCompletion()
" if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z')) " if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z'))
@ -227,11 +234,26 @@ set omnifunc=syntaxcomplete#Complete
"autocmd InsertCharPre * call OpenCompletion() "autocmd InsertCharPre * call OpenCompletion()
let g:ale_set_balloons=1 let g:ale_set_balloons=1
" "
"set completeopt+=longest,menu,menuone,preview,noselect,noinsert set completeopt+=longest,menu,menuone,preview,noselect,noinsert
set splitkeep=screen
"" set completeopt+=menuone,noselect,noinsert "" set completeopt+=menuone,noselect,noinsert
"" ""
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
"
"
" --This puts the preview window to the right of the screen
"
" augroup previewWindowPosition
" au!
" autocmd BufWinEnter * call PreviewWindowPosition()
" augroup END
" function! PreviewWindowPosition()
" if &previewwindow
" wincmd L
" endif
" endfunction
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" "
" Remove conceal from Markdown when Insert mode is set " Remove conceal from Markdown when Insert mode is set