feat: introduce Ollama Copilot with dependencies to coding configuration
This commit is contained in:
@@ -210,6 +210,19 @@ M.minimap = {
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
M.ollama_copilot = {
|
||||||
|
host = "localhost",
|
||||||
|
port = "11434",
|
||||||
|
model = "codellama:7b-code",
|
||||||
|
max_completion_size = 15, -- use -1 for limitless
|
||||||
|
debug = false,
|
||||||
|
}
|
||||||
|
|
||||||
|
M.substitute = {
|
||||||
|
yank_substituted_text = false,
|
||||||
|
preserve_cursor_position = true,
|
||||||
|
}
|
||||||
|
|
||||||
-- Image.nvim filetypes
|
-- Image.nvim filetypes
|
||||||
M.image = "markdown"
|
M.image = "markdown"
|
||||||
|
|
||||||
|
|||||||
+14
-55
@@ -17,6 +17,14 @@ return {
|
|||||||
{ -- VSCode
|
{ -- VSCode
|
||||||
import = "lazyvim.plugins.extras.vscode",
|
import = "lazyvim.plugins.extras.vscode",
|
||||||
},
|
},
|
||||||
|
{ -- Ollama Copilot
|
||||||
|
"Faywyn/llama-copilot.nvim",
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
opts = require("data.types").ollama_copilot,
|
||||||
|
},
|
||||||
{ -- G-code
|
{ -- G-code
|
||||||
"wilriker/gcode.vim",
|
"wilriker/gcode.vim",
|
||||||
},
|
},
|
||||||
@@ -30,14 +38,8 @@ return {
|
|||||||
{ -- Alternate
|
{ -- Alternate
|
||||||
"ton/vim-alternate",
|
"ton/vim-alternate",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
ft = { "cpp", "h", "hpp", "c" },
|
ft = require("data.types").alternate,
|
||||||
keys = {
|
keys = require("data.keys").alternate,
|
||||||
{ -- Toggle Alternate
|
|
||||||
"<leader>a",
|
|
||||||
"<cmd>Alternate<cr>",
|
|
||||||
desc = "Toggle Alternate",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{ -- Highlight colors
|
{ -- Highlight colors
|
||||||
"brenoprata10/nvim-highlight-colors",
|
"brenoprata10/nvim-highlight-colors",
|
||||||
@@ -50,62 +52,19 @@ return {
|
|||||||
"luckasRanarison/tailwind-tools.nvim",
|
"luckasRanarison/tailwind-tools.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||||
opts = {}, -- your configuration
|
opts = {},
|
||||||
},
|
},
|
||||||
{ -- Substitute
|
{ -- Substitute
|
||||||
"gbprod/substitute.nvim",
|
"gbprod/substitute.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
opts = {
|
opts = require("data.types").substitute,
|
||||||
yank_substituted_text = false,
|
keys = require("data.keys").substitute,
|
||||||
preserve_cursor_position = true,
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{ -- Substitute operator in normal mode
|
|
||||||
"x",
|
|
||||||
function()
|
|
||||||
require("substitute").operator()
|
|
||||||
end,
|
|
||||||
desc = "Substitute operator",
|
|
||||||
},
|
|
||||||
{ -- Substitute line in normal mode
|
|
||||||
"xx",
|
|
||||||
function()
|
|
||||||
require("substitute").line()
|
|
||||||
end,
|
|
||||||
desc = "Substitute line",
|
|
||||||
},
|
|
||||||
{ -- Substitute end of line in normal mode
|
|
||||||
"X",
|
|
||||||
function()
|
|
||||||
require("substitute").eol()
|
|
||||||
end,
|
|
||||||
desc = "Substitute end of line",
|
|
||||||
},
|
|
||||||
{ -- Substitute visual selection in visual mode
|
|
||||||
"x",
|
|
||||||
function()
|
|
||||||
require("substitute").visual()
|
|
||||||
end,
|
|
||||||
desc = "Substitute visual selection",
|
|
||||||
mode = "x",
|
|
||||||
},
|
|
||||||
{ -- Substitute visual selection in visual mode
|
|
||||||
"<leader>r",
|
|
||||||
function()
|
|
||||||
require("substitute").visual()
|
|
||||||
end,
|
|
||||||
desc = "Substitute",
|
|
||||||
mode = "x",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{ -- mini.splitjoin
|
{ -- mini.splitjoin
|
||||||
"echasnovski/mini.splitjoin",
|
"echasnovski/mini.splitjoin",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
opts = {
|
opts = {
|
||||||
mappings = {
|
mappings = require("data.keys").splitjoin,
|
||||||
toggle = "gJ",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user