[Nvim] fix render-markdown
This commit is contained in:
@@ -15,10 +15,10 @@ return {
|
||||
-- Custom Parameters (with defaults)
|
||||
{
|
||||
"David-Kunz/gen.nvim",
|
||||
cmd = "Gen",
|
||||
opts = {
|
||||
-- model = "llama3.2:3b", -- The default model to use.
|
||||
model = "qwen3-coder:30b",
|
||||
-- host = "192.168.0.17",
|
||||
quit_map = "q", -- set keymap to close the response window
|
||||
retry_map = "<c-r>", -- set keymap to re-send the current prompt
|
||||
accept_map = "<c-cr>", -- set keymap to replace the previous selection with the last result
|
||||
@@ -31,9 +31,6 @@ return {
|
||||
no_auto_close = false, -- Never closes the window automatically.
|
||||
file = false, -- Write the payload to a temporary file to keep the command short.
|
||||
hidden = false, -- Hide the generation window (if true, will implicitly set `prompt.replace = true`), requires Neovim >= 0.10
|
||||
init = function()
|
||||
pcall(io.popen, "ollama serve > /dev/null 2>&1 &")
|
||||
end,
|
||||
-- Function to initialize Ollama
|
||||
command = function(options)
|
||||
local body = { model = options.model, stream = true }
|
||||
@@ -54,7 +51,10 @@ return {
|
||||
},
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
opts = {},
|
||||
ft = { "markdown", "gitcommit" },
|
||||
opts = function()
|
||||
return require "configs.render-markdown"
|
||||
end,
|
||||
},
|
||||
|
||||
-- {
|
||||
|
||||
Reference in New Issue
Block a user