Update
This commit is contained in:
@@ -1,43 +1,43 @@
|
|||||||
return {
|
return {
|
||||||
{
|
-- {
|
||||||
'milanglacier/minuet-ai.nvim',
|
-- 'milanglacier/minuet-ai.nvim',
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
'nvim-lua/plenary.nvim',
|
-- 'nvim-lua/plenary.nvim',
|
||||||
'Saghen/blink.cmp'
|
-- 'Saghen/blink.cmp'
|
||||||
},
|
-- },
|
||||||
config = function()
|
-- config = function()
|
||||||
require('minuet').setup {
|
-- require('minuet').setup {
|
||||||
provider = 'openai_fim_compatible',
|
-- provider = 'openai_fim_compatible',
|
||||||
n_completions = 1, -- recommend for local model for resource saving
|
-- n_completions = 1, -- recommend for local model for resource saving
|
||||||
-- I recommend beginning with a small context window size and incrementally
|
-- -- I recommend beginning with a small context window size and incrementally
|
||||||
-- expanding it, depending on your local computing power. A context window
|
-- -- expanding it, depending on your local computing power. A context window
|
||||||
-- of 512, serves as an good starting point to estimate your computing
|
-- -- of 512, serves as an good starting point to estimate your computing
|
||||||
-- power. Once you have a reliable estimate of your local computing power,
|
-- -- power. Once you have a reliable estimate of your local computing power,
|
||||||
-- you should adjust the context window to a larger value.
|
-- -- you should adjust the context window to a larger value.
|
||||||
context_window = 512,
|
-- context_window = 512,
|
||||||
provider_options = {
|
-- provider_options = {
|
||||||
openai_fim_compatible = {
|
-- openai_fim_compatible = {
|
||||||
-- For Windows users, TERM may not be present in environment variables.
|
-- -- For Windows users, TERM may not be present in environment variables.
|
||||||
-- Consider using APPDATA instead.
|
-- -- Consider using APPDATA instead.
|
||||||
api_key = 'TERM',
|
-- api_key = 'TERM',
|
||||||
name = 'Llama.cpp',
|
-- name = 'Llama.cpp',
|
||||||
end_point = 'http://localhost:1234/v1/completions',
|
-- end_point = 'http://localhost:1234/v1/completions',
|
||||||
model = 'qwen2.5-coder-7b-instruct',
|
-- model = 'qwen2.5-coder-7b-instruct',
|
||||||
-- template = {
|
---- template = {
|
||||||
-- prompt = function(context_before_cursor, context_after_cursor, _)
|
---- prompt = function(context_before_cursor, context_after_cursor, _)
|
||||||
-- return '<|fim_prefix|>'
|
---- return '<|fim_prefix|>'
|
||||||
-- .. context_before_cursor
|
---- .. context_before_cursor
|
||||||
-- .. '<|fim_suffix|>'
|
---- .. '<|fim_suffix|>'
|
||||||
-- .. context_after_cursor
|
---- .. context_after_cursor
|
||||||
-- .. '<|fim_middle|>'
|
---- .. '<|fim_middle|>'
|
||||||
-- end,
|
---- end,
|
||||||
-- suffix = false,
|
---- suffix = false,
|
||||||
-- },
|
---- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
{
|
{
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
-- optional: provides snippets for the snippet source
|
-- optional: provides snippets for the snippet source
|
||||||
@@ -78,7 +78,7 @@ return {
|
|||||||
-- Default list of enabled providers defined so that you can extend it
|
-- Default list of enabled providers defined so that you can extend it
|
||||||
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'lsp', 'path', 'snippets', 'buffer', 'minuet' },
|
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||||
},
|
},
|
||||||
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
||||||
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
||||||
@@ -87,23 +87,23 @@ return {
|
|||||||
-- See the fuzzy documentation for more information
|
-- See the fuzzy documentation for more information
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||||
},
|
},
|
||||||
config = function()
|
-- config = function()
|
||||||
require('blink-cmp').setup {
|
-- require('blink-cmp').setup {
|
||||||
sources = {
|
-- sources = {
|
||||||
default = { 'lsp', 'path', 'buffer', 'snippets', 'minuet' },
|
-- default = { 'lsp', 'path', 'buffer', 'snippets', 'minuet' },
|
||||||
providers = {
|
-- providers = {
|
||||||
minuet = {
|
-- minuet = {
|
||||||
name = 'minuet',
|
-- name = 'minuet',
|
||||||
module = 'minuet.blink',
|
-- module = 'minuet.blink',
|
||||||
async = true,
|
-- async = true,
|
||||||
-- Should match minuet.config.request_timeout * 1000,
|
-- -- Should match minuet.config.request_timeout * 1000,
|
||||||
-- since minuet.config.request_timeout is in seconds
|
-- -- since minuet.config.request_timeout is in seconds
|
||||||
timeout_ms = 3000,
|
-- timeout_ms = 3000,
|
||||||
score_offset = 50, -- Gives minuet higher priority among suggestions
|
-- score_offset = 50, -- Gives minuet higher priority among suggestions
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
end
|
-- end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,5 +271,6 @@ bindsym $mod+tab layout tabbed
|
|||||||
bindsym Print exec bash -c 'file=$(~/.local/bin/snag -d ~/screenshots/) && wl-copy < $file'
|
bindsym Print exec bash -c 'file=$(~/.local/bin/snag -d ~/screenshots/) && wl-copy < $file'
|
||||||
bindsym Print+Ctrl exec bash -c 'file=$(~/.local/bin/snag -r -d ~/screenshots/) && wl-copy < $file'
|
bindsym Print+Ctrl exec bash -c 'file=$(~/.local/bin/snag -r -d ~/screenshots/) && wl-copy < $file'
|
||||||
|
|
||||||
|
for_window [shell="xwayland"] title_format "[XW] %title"
|
||||||
|
|
||||||
include ~/.config/sway/config.d/*
|
include ~/.config/sway/config.d/*
|
||||||
|
|||||||
1
.zshrc
1
.zshrc
@@ -9,6 +9,7 @@ bindkey "^A" beginning-of-line
|
|||||||
bindkey "^E" end-of-line
|
bindkey "^E" end-of-line
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
|
bindkey "^[[3~" delete-char
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|||||||
Reference in New Issue
Block a user