summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-10-20 15:22:17 +0200
committernavewindre <boneyaard@gmail.com>2024-10-20 15:22:17 +0200
commitd52c33b2b7e4de8a9da5e0b9c91578bfc69a327a (patch)
tree835080e91ee19b884949b8d5f101bd2692e81302 /vimrc
parentcb58cda557df2d38566092618889b60d1564359e (diff)
bbbbb
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc21
1 files changed, 16 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index bff8b7e..d7454ae 100644
--- a/vimrc
+++ b/vimrc
@@ -246,8 +246,7 @@ lua <<EOF
---@type AvanteProvider
ollama = {
["local"] = true,
- endpoint = "127.0.0.1:11432/v1",
- use_xml_format = false,
+ endpoint = "127.0.0.1:11434/v1",
-- model = 'qwen2.5:7b-instruct-q4_K_M',
model = 'qwen2.5-coder:7b-instruct-q5_K_M',
-- model = 'yi-coder:9b-chat-q4_0',
@@ -385,7 +384,7 @@ function! TablineTabs()
endfunction
let g:tabby_keybinding_accept = '<Tab>'
-autocmd Filetype json let g:indentLine_setConceal = 0
+autocmd Filetype json,jsonc let g:indentLine_setConceal = 0
autocmd Filetype javascriptreact,typescriptreact TSEnable indent
function! SWB()
@@ -527,8 +526,20 @@ vnoremap <S-Tab> <gv
nnoremap <leader><left> <Plug>lightline#bufferline#move_previous()
nnoremap <leader><right> <Plug>lightline#bufferline#move_next()
-nnoremap f :call OpenFloat()<CR>
-nnoremap F :call OpenLsp()<CR>
+nnoremap t :call OpenFloat()<CR>
+nnoremap T :call OpenLsp()<CR>
+
+nnoremap gd <C-]>
+
+nnoremap [[ ?{<CR>:nohl<CR>
+nnoremap ]] /}<CR>:nohl<CR>
+nnoremap ][ /{<CR>:nohl<CR>
+nnoremap [] ?}<CR>:nohl<CR>
+
+vnoremap [[ ?{<CR>:<C-u>nohl<CR>gv
+vnoremap ]] /}<CR>:<C-u>nohl<CR>gv
+vnoremap ][ /{<CR>:<C-u>nohl<CR>gv
+vnoremap [] ?}<CR>:<C-u>nohl<CR>gv
colorscheme base16-synth-midnight-dark
hi LineNr guibg=#000000