Compare commits

...
3 Commits
Author SHA1 Message Date
chris 75254adb1e Merge branch 'main' of labs.scarif.space:chris/nvim 2026-09-11 18:23:39 +01:00
chris dfbaf1bf68 Formatting 2026-09-11 18:22:12 +01:00
chris 2cde089e1e Update files 2026-09-02 20:21:07 +01:00
7 changed files with 14 additions and 7 deletions
+1
View File
@@ -381,6 +381,7 @@ local test_maps = {
local neotest = require 'neotest' local neotest = require 'neotest'
local bufnr = vim.api.nvim_get_current_buf() local bufnr = vim.api.nvim_get_current_buf()
local row = vim.api.nvim_win_get_cursor(0)[1] - 1 local row = vim.api.nvim_win_get_cursor(0)[1] - 1
local adapters = neotest.state.adapter_ids() local adapters = neotest.state.adapter_ids()
local found = false local found = false
+6 -5
View File
@@ -46,11 +46,10 @@ return {
}, },
}, },
provider = 'openai_compatible', provider = 'openai_compatible',
request_timeout = 3, request_timeout = 2.5,
throttle = 500, -- Increase to reduce costs and avoid rate limits throttle = 1500, -- Increase to reduce costs and avoid rate limits
debounce = 400, -- Increase to reduce costs and avoid rate limits debounce = 600, -- Increase to reduce costs and avoid rate limits
n_completions = 1, n_completions = 1,
before_cursor_filter_length = 10,
provider_options = { provider_options = {
openai_compatible = { openai_compatible = {
api_key = 'COMPLETION_OPENAI_API_KEY', api_key = 'COMPLETION_OPENAI_API_KEY',
@@ -58,15 +57,17 @@ return {
model = vim.env.COMPLETION_MODEL, model = vim.env.COMPLETION_MODEL,
name = 'Openrouter', name = 'Openrouter',
optional = { optional = {
max_tokens = 300, max_tokens = 56,
top_p = 0.9, top_p = 0.9,
provider = { provider = {
-- Prioritize throughput for faster completion -- Prioritize throughput for faster completion
sort = 'throughput', sort = 'throughput',
}, },
reasoning_effort = 'none',
}, },
}, },
}, },
} }
end, end,
} }
+1
View File
@@ -1 +1,2 @@
return {} return {}
+2 -1
View File
@@ -120,7 +120,7 @@ utils.Etr = function(trigger, description, options)
trigger, trigger,
description, description,
vim.tbl_extend('force', { vim.tbl_extend('force', {
condition = line_end condition = line_end,
}, options or {}) }, options or {})
) )
end end
@@ -150,3 +150,4 @@ utils.bs = function(trigger, nodes, options)
end end
return utils return utils
+1
View File
@@ -14,3 +14,4 @@ function M.open(name)
end end
return M return M
+1
View File
@@ -51,3 +51,4 @@ function M:report_exit_status(handle, request)
end end
return M return M
+2 -1
View File
@@ -5,4 +5,5 @@ vim.cmd('highlight LineNr guifg=' .. line_number_color)
vim.cmd('highlight LineNrAbove guifg=' .. line_number_color) vim.cmd('highlight LineNrAbove guifg=' .. line_number_color)
vim.cmd('highlight LineNrBelow guifg=' .. line_number_color) vim.cmd('highlight LineNrBelow guifg=' .. line_number_color)
vim.api.nvim_set_hl(0, "CopilotSuggestion", { fg = "#888888", italic = true }) vim.api.nvim_set_hl(0, 'CopilotSuggestion', { fg = '#888888', italic = true })