add plugin Codium / ollamma / translate with trans
This commit is contained in:
parent
a22f336245
commit
400aa1e374
|
@ -246,6 +246,40 @@ let g:ycm_language_server +=
|
|||
" online deeplearning all language sementic completion system
|
||||
" Plugin 'zxqfl/tabnine-vim'
|
||||
|
||||
" Codeium - « free » coding assistant
|
||||
" https://github.com/Exafunction/codeium.vim
|
||||
Plugin 'Exafunction/codeium.vim'
|
||||
|
||||
|
||||
|
||||
|
||||
" Ollama Support for Vim
|
||||
" https://github.com/gergap/vim-ollama
|
||||
" Plugin 'gergap/vim-ollama'
|
||||
" Default chat model
|
||||
let g:ollama_chat_model = 'llama3.2:1b'
|
||||
|
||||
" Codellama models
|
||||
" let g:ollama_model = 'codellama:7b'
|
||||
|
||||
" " Codegemma (small and fast)
|
||||
" let g:ollama_model = 'codegemma:2b'
|
||||
" let g:ollama_fim_prefix = '<|fim_prefix|>'
|
||||
" let g:ollama_fim_middle = '<|fim_middle|>'
|
||||
" let g:ollama_fim_suffix = '<|fim_suffix|>'
|
||||
|
||||
" " Deepseek-coder-v2
|
||||
let g:ollama_model = 'deepseek-coder:1.3b'
|
||||
" let g:ollama_fim_prefix = '<|fim▁begin|>'
|
||||
" let g:ollama_fim_suffix = '<|fim▁hole|>'
|
||||
" let g:ollama_fim_middle = '<|fim▁end|>'
|
||||
|
||||
" " activate debug
|
||||
let g:ollama_debug = 1
|
||||
let g:ollama_logfile = '/home/patrick/vim-ollama.log'
|
||||
|
||||
|
||||
|
||||
" ansible
|
||||
" Plugin 'pearofducks/ansible-vim'
|
||||
" enable YAML for hosts.yml
|
||||
|
@ -688,12 +722,12 @@ nmap <leader>, :cprevious<cr>
|
|||
imap <leader>, <esc>:cprevious<cr>i
|
||||
nmap <leader>. :cnext<cr>
|
||||
imap <leader>. <esc>:cnext<cr>i
|
||||
" edit alternative
|
||||
" change alternative
|
||||
nmap <leader>/ :e#<cr>
|
||||
" auto indent
|
||||
nmap <leader>i m`gg=G``
|
||||
" try ; as :
|
||||
nmap ; :
|
||||
|
||||
|
||||
|
||||
" translate with trans (https://github.com/soimort/translate-shell)
|
||||
vmap <leader>fr :!trans -b :fr<cr>
|
||||
vmap <leader>en :!trans -b :en<cr>
|
||||
|
|
Loading…
Reference in New Issue