diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 47974ec..8d8c078 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -1,47 +1,47 @@ return { - { - 'milanglacier/minuet-ai.nvim', - dependencies = { - 'nvim-lua/plenary.nvim', - 'Saghen/blink.cmp' - }, - config = function() - require('minuet').setup { - provider = 'openai_fim_compatible', - n_completions = 1, -- recommend for local model for resource saving - -- I recommend beginning with a small context window size and incrementally - -- expanding it, depending on your local computing power. A context window - -- 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 = 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 = 'Llama.cpp', - end_point = 'http://localhost:1234/v1/completions', - model = 'qwen2.5-coder-7b-instruct', - 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, - }, - }, - }, - } - end, - }, +-- { +-- 'milanglacier/minuet-ai.nvim', +-- dependencies = { +-- 'nvim-lua/plenary.nvim', +-- 'Saghen/blink.cmp' +-- }, +-- config = function() +-- require('minuet').setup { +-- provider = 'openai_fim_compatible', +-- n_completions = 1, -- recommend for local model for resource saving +-- -- I recommend beginning with a small context window size and incrementally +-- -- expanding it, depending on your local computing power. A context window +-- -- 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 = 8192, +-- provider_options = { +-- openai_fim_compatible = { +-- -- For Windows users, TERM may not be present in environment variables. +-- -- Consider using APPDATA instead. +-- api_key = 'TERM', +-- name = 'Llama.cpp', +-- end_point = 'http://172.16.10.19:1234/v1/completions', +-- model = 'qwen/qwen3-coder-30b', +-- optional = { +-- max_tokens = 512, +-- 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, +-- }, +-- }, +-- }, +-- } +-- end, +-- }, { 'saghen/blink.cmp', -- optional: provides snippets for the snippet source @@ -82,7 +82,7 @@ return { -- Default list of enabled providers defined so that you can extend it -- elsewhere in your config, without redefining it, due to `opts_extend` sources = { - default = { 'lsp', 'path', 'snippets', 'buffer', 'minuet' }, + default = { 'lsp', 'path', 'snippets', 'buffer' }, }, -- (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, @@ -92,23 +92,23 @@ return { fuzzy = { implementation = "prefer_rust_with_warning" } }, opts_extend = { "sources.default" }, - config = function() - require('blink-cmp').setup { - sources = { - default = { 'lsp', 'path', 'buffer', 'snippets', 'minuet' }, - providers = { - minuet = { - name = 'minuet', - module = 'minuet.blink', - async = true, - -- Should match minuet.config.request_timeout * 1000, - -- since minuet.config.request_timeout is in seconds - timeout_ms = 3000, - score_offset = 50, -- Gives minuet higher priority among suggestions - }, - }, - }, - } - end +-- config = function() +-- require('blink-cmp').setup { +-- sources = { +-- default = { 'lsp', 'path', 'buffer', 'snippets', 'minuet' }, +-- providers = { +-- minuet = { +-- name = 'minuet', +-- module = 'minuet.blink', +-- async = true, +-- -- Should match minuet.config.request_timeout * 1000, +-- -- since minuet.config.request_timeout is in seconds +-- timeout_ms = 3000, +-- score_offset = 50, -- Gives minuet higher priority among suggestions +-- }, +-- }, +-- }, +-- } +-- end } } diff --git a/.config/nvim/lua/vim-options.lua b/.config/nvim/lua/vim-options.lua index 41c4b71..4500893 100644 --- a/.config/nvim/lua/vim-options.lua +++ b/.config/nvim/lua/vim-options.lua @@ -11,3 +11,4 @@ vim.o.termguicolors = true vim.o.winborder = "rounded" vim.o.cursorline = true vim.o.list = true +vim.o.scrolloff = 8 diff --git a/.tmux.conf b/.tmux.conf index ca41d11..e9cecc2 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -21,7 +21,7 @@ set -ag terminal-overrides ",$TERM:Tc" # Status bar configuration -set -g status-interval 60 +set -g status-interval 10 set -g status-position bottom set -g status-bg colour235 set -g status-fg colour136