Compare commits
2 Commits
b9f2bfdeae
...
1070642635
| Author | SHA1 | Date | |
|---|---|---|---|
| 1070642635 | |||
| c3d433ddaf |
@@ -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 --------------------
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user