Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
62973120bb
4 changed files with 24 additions and 36 deletions
|
|
@ -37,6 +37,8 @@ TERM = "xterm-256color"
|
||||||
size = 15.5
|
size = 15.5
|
||||||
{{ else if eq .chezmoi.hostname "mercutio" -}}
|
{{ else if eq .chezmoi.hostname "mercutio" -}}
|
||||||
size = 20.0
|
size = 20.0
|
||||||
|
{{ else if eq .chezmoi.hostname "rosencrantz" -}}
|
||||||
|
size = 15.0
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
size = 19.0
|
size = 19.0
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
@ -101,8 +103,11 @@ key = "P"
|
||||||
mode = "Vi|~Search"
|
mode = "Vi|~Search"
|
||||||
|
|
||||||
[[keyboard.bindings]]
|
[[keyboard.bindings]]
|
||||||
|
{{if eq .chezmoi.hostname "rosencrantz" -}}
|
||||||
|
action = "ToggleFullscreen"
|
||||||
|
{{ else -}}
|
||||||
action = "ToggleMaximized"
|
action = "ToggleMaximized"
|
||||||
#action = "ToggleFullscreen"
|
{{ end }}
|
||||||
key = "Return"
|
key = "Return"
|
||||||
mods = "Alt"
|
mods = "Alt"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ set fish_greeting ""
|
||||||
set EDITOR vi
|
set EDITOR vi
|
||||||
set -x GOPATH ~/.go
|
set -x GOPATH ~/.go
|
||||||
set -x BROWSER xdg-open
|
set -x BROWSER xdg-open
|
||||||
|
set -gx LANG en_US.UTF-8
|
||||||
|
|
||||||
if test -e $HOME/.asdf/asdf.fish
|
if test -e $HOME/.asdf/asdf.fish
|
||||||
. ~/.asdf/asdf.fish
|
. ~/.asdf/asdf.fish
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,19 @@
|
||||||
require("avante_lib").load()
|
require("avante_lib").load()
|
||||||
require("avante").setup({
|
require("avante").setup({
|
||||||
provider = "ollama",
|
provider = "ollama",
|
||||||
auto_suggestions_provider = "ollama",
|
auto_suggestions_provider = "ollama",
|
||||||
behavior = {
|
behavior = {
|
||||||
auto_suggestions = false,
|
auto_suggestions = false,
|
||||||
},
|
},
|
||||||
hints = {
|
hints = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
vendors = {
|
vendors = {
|
||||||
---@type AvanteProvider
|
ollama = {
|
||||||
ollama = {
|
endpoint = "http://127.0.0.1:11434/v1",
|
||||||
["local"] = true,
|
model = "qwen2.5-coder:7b",
|
||||||
endpoint = "127.0.0.1:11434/v1",
|
__inherited_from = "openai",
|
||||||
model = "qwen2.5-coder:7b",
|
api_key_name = "",
|
||||||
parse_curl_args = function(opts, code_opts)
|
},
|
||||||
return {
|
},
|
||||||
url = opts.endpoint .. "/chat/completions",
|
|
||||||
headers = {
|
|
||||||
["Accept"] = "application/json",
|
|
||||||
["Content-Type"] = "application/json",
|
|
||||||
},
|
|
||||||
body = {
|
|
||||||
model = opts.model,
|
|
||||||
messages = require("avante.providers").copilot.parse_message(code_opts), -- you can make your own message, but this is very advanced
|
|
||||||
max_tokens = 2048,
|
|
||||||
stream = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
parse_response_data = function(data_stream, event_state, opts)
|
|
||||||
require("avante.providers").openai.parse_response(data_stream, event_state, opts)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ require('go').setup({
|
||||||
iferr_vertical_shift = 2
|
iferr_vertical_shift = 2
|
||||||
})
|
})
|
||||||
|
|
||||||
require('telescope').load_extension('goimpl')
|
--require('telescope').load_extension('goimpl')
|
||||||
|
|
||||||
function org_imports(wait_ms)
|
function org_imports(wait_ms)
|
||||||
local params = vim.lsp.util.make_range_params()
|
local params = vim.lsp.util.make_range_params()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue