Compare commits

..

2 Commits

Author SHA1 Message Date
1070642635 feat(llama-swap): add qwen3.6-27b-thinking model 2026-04-22 13:01:38 -04:00
c3d433ddaf feat(nvim): add manual mode for LSP servers
Allow LSP servers to be enabled on-demand via a buffer-local command
instead of auto-starting on matching filetypes. The command name is
auto-derived from the server name (e.g. 'GolangciLint'). Switch
golangci-lint to manual mode as it's resource-heavy and not always needed.
2026-04-22 13:01:32 -04:00
2 changed files with 50 additions and 2 deletions

View File

@@ -98,10 +98,30 @@ local default_config = {
on_attach = on_attach, on_attach = on_attach,
} }
local setup_lsp = function(name, config) local setup_lsp = function(name, config, opts)
opts = opts or {}
local final_config = vim.tbl_deep_extend("force", default_config, config or {}) local final_config = vim.tbl_deep_extend("force", default_config, config or {})
vim.lsp.config(name, final_config) vim.lsp.config(name, final_config)
-- Manual Mode - Register a buffer-local command instead of auto-enabling.
-- The command name is derived from opts.cmd_name or the LSP name.
if opts.manual then
local cmd_name = opts.cmd_name or name:gsub("^%l", string.upper):gsub("_%l", function(s)
return s:sub(2):upper()
end)
local fts = final_config.filetypes or {}
vim.api.nvim_create_autocmd("FileType", {
pattern = fts,
callback = function(ev)
vim.api.nvim_buf_create_user_command(ev.buf, cmd_name, function()
vim.lsp.enable(name)
end, { desc = "Enable " .. name .. " LSP" })
end,
})
return
end
vim.lsp.enable(name) vim.lsp.enable(name)
end end
@@ -244,7 +264,7 @@ setup_lsp("golangci_lint_ls", {
"--issues-exit-code=1", "--issues-exit-code=1",
}, },
}, },
}) }, { manual = true, cmd_name = "GolangciLint" })
------------------------------------------------------ ------------------------------------------------------
--------------------- None-LS LSP -------------------- --------------------- None-LS LSP --------------------

View File

@@ -177,6 +177,34 @@ in
}; };
}; };
# https://huggingface.co/unsloth/Qwen3.6-27B-GGUF/tree/main
"qwen3.6-27b-thinking" = {
name = "Qwen3.6 (27B) - Thinking";
macros.ctx = "196608";
cmd = ''
${llama-cpp}/bin/llama-server \
--port ''${PORT} \
-m /mnt/ssd/Models/Qwen3.6/Qwen3.6-27B-IQ4_XS.gguf \
-c ''${ctx} \
--temp 0.6 \
--top-p 0.95 \
--top-k 20 \
--min-p 0.00 \
--presence-penalty 1.5 \
-ctk q8_0 \
-ctv q8_0 \
-dev CUDA0 \
-fit off
'';
# --chat-template-kwargs "{\"enable_thinking\": false}"
metadata = {
type = [
"text-generation"
"coding"
];
};
};
# https://huggingface.co/unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF/tree/main # https://huggingface.co/unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF/tree/main
"qwen3-30b-2507-instruct" = { "qwen3-30b-2507-instruct" = {
name = "Qwen3 2507 (30B) - Instruct"; name = "Qwen3 2507 (30B) - Instruct";