From 486893c5688fd5299e01921c0647fa9bfb8983a0 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Charavel Date: Tue, 12 Aug 2025 13:14:02 -0400 Subject: [PATCH] Update sway and nvim --- .config/nvim/lua/plugins/cmp.lua | 18 ++++++++++++++---- .config/sway/config | 2 ++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index ad6399e..ab064f1 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -14,19 +14,29 @@ return { -- of 512, serves as an good starting point to estimate your computing -- power. Once you have a reliable estimate of your local computing power, -- you should adjust the context window to a larger value. - context_window = 512, + context_window = 1024, provider_options = { openai_fim_compatible = { -- For Windows users, TERM may not be present in environment variables. -- Consider using APPDATA instead. api_key = 'TERM', - name = 'Ollama', - end_point = 'http://localhost:11434/v1/completions', - model = 'qwen2.5-coder:7b', + name = 'Llama.cpp', + end_point = 'http://localhost:1234/v1/completions', + model = 'qwen/qwen2.5-coder-14b', optional = { max_tokens = 56, top_p = 0.9, }, + template = { + prompt = function(context_before_cursor, context_after_cursor, _) + return '<|fim_prefix|>' + .. context_before_cursor + .. '<|fim_suffix|>' + .. context_after_cursor + .. '<|fim_middle|>' + end, + suffix = false, + }, }, }, } diff --git a/.config/sway/config b/.config/sway/config index a853f2b..5aceeef 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -21,6 +21,8 @@ exec hash dbus-update-activation-environment 2>/dev/null && \ XDG_CURRENT_DESKTOP=sway \ WAYLAND_DISPLAY +exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 + # Official Catppuccin Mocha Colors (from catppuccin.com) set $rosewater #f5e0dc