chore(neovim): touch-ups
- Move ollama plugin out of user.lua, as that file has basically just UI configuration - Remove zen astrocommunity configuration and enable snacks.nvim's zen - Remove unused community plugins - Configure catppuccin/nvim's integrations, adding snacks.nvim and blink.cmp while removing notify, telescope and nvim-cmp
This commit is contained in:
parent
203ae22384
commit
fd1903218e
4 changed files with 48 additions and 49 deletions
|
@ -10,11 +10,8 @@ return {
|
||||||
{ import = "astrocommunity.media.vim-wakatime" },
|
{ import = "astrocommunity.media.vim-wakatime" },
|
||||||
|
|
||||||
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
||||||
{ import = "astrocommunity.editing-support.zen-mode-nvim" },
|
|
||||||
|
|
||||||
{ import = "astrocommunity.motion.flash-nvim" },
|
|
||||||
{ import = "astrocommunity.motion.flit-nvim" },
|
{ import = "astrocommunity.motion.flit-nvim" },
|
||||||
{ import = "astrocommunity.motion.leap-nvim" },
|
|
||||||
{ import = "astrocommunity.motion.mini-ai" },
|
{ import = "astrocommunity.motion.mini-ai" },
|
||||||
{ import = "astrocommunity.motion.mini-surround" },
|
{ import = "astrocommunity.motion.mini-surround" },
|
||||||
|
|
||||||
|
|
33
modules/neovim/lua/plugins/ollama-nvim.lua
Normal file
33
modules/neovim/lua/plugins/ollama-nvim.lua
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- @type LazySpec
|
||||||
|
return {
|
||||||
|
"nomnivore/ollama.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
|
||||||
|
-- All the user commands added by the plugin
|
||||||
|
cmd = { "Ollama", "OllamaModel", "OllamaServe", "OllamaServeStop" },
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
-- Sample keybind for prompt menu. Note that the <c-u> is important for selections to work properly.
|
||||||
|
{
|
||||||
|
"<leader>oo",
|
||||||
|
":<c-u>lua require('ollama').prompt()<cr>",
|
||||||
|
desc = "ollama prompt",
|
||||||
|
mode = { "n", "v" },
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Sample keybind for direct prompting. Note that the <c-u> is important for selections to work properly.
|
||||||
|
{
|
||||||
|
"<leader>oG",
|
||||||
|
":<c-u>lua require('ollama').prompt('Generate_Code')<cr>",
|
||||||
|
desc = "ollama Generate Code",
|
||||||
|
mode = { "n", "v" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
---@type Ollama.Config
|
||||||
|
opts = {
|
||||||
|
-- your configuration overrides
|
||||||
|
},
|
||||||
|
}
|
7
modules/neovim/lua/plugins/snacks-nvim.lua
Normal file
7
modules/neovim/lua/plugins/snacks-nvim.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
--- @type LazySpec
|
||||||
|
return {
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.zen = { enabled = true }
|
||||||
|
end,
|
||||||
|
}
|
|
@ -22,9 +22,9 @@ return {
|
||||||
"⠀⠀⠀⠀⠀⠀⠀⠙⠂⠀⠙⢀⣀⣿⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠁⠀⣻⣿⣿⣿⣿⣿⣿⠏⠀⠘⠃⠀⠀⠀⠀⠀⠀⠀",
|
"⠀⠀⠀⠀⠀⠀⠀⠙⠂⠀⠙⢀⣀⣿⣿⣿⣿⣿⣿⣿⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠁⠀⣻⣿⣿⣿⣿⣿⣿⠏⠀⠘⠃⠀⠀⠀⠀⠀⠀⠀",
|
||||||
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡈⠻⠿⣿⣿⣿⡿⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠻⢿⣿⣿⣿⠿⠛⢁⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
|
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡈⠻⠿⣿⣿⣿⡿⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠻⢿⣿⣿⣿⠿⠛⢁⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
|
||||||
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⠛⣶⣦⣤⣤⣤⡤⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⢤⣤⣤⣤⣶⣾⠛⠓⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
|
"⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⠛⣶⣦⣤⣤⣤⡤⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⢤⣤⣤⣤⣶⣾⠛⠓⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
|
||||||
}, "\n")
|
}, "\n"),
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -38,7 +38,9 @@ return {
|
||||||
integrations = {
|
integrations = {
|
||||||
aerial = true,
|
aerial = true,
|
||||||
alpha = true,
|
alpha = true,
|
||||||
cmp = true,
|
blink_cmp = true,
|
||||||
|
cmp = false,
|
||||||
|
colorful_winsep = { enabled = true, color = "lavender" },
|
||||||
dap = true,
|
dap = true,
|
||||||
dap_ui = true,
|
dap_ui = true,
|
||||||
gitsigns = true,
|
gitsigns = true,
|
||||||
|
@ -48,16 +50,15 @@ return {
|
||||||
mason = true,
|
mason = true,
|
||||||
native_lsp = { enabled = true },
|
native_lsp = { enabled = true },
|
||||||
neotree = true,
|
neotree = true,
|
||||||
notify = true,
|
|
||||||
semantic_tokens = true,
|
semantic_tokens = true,
|
||||||
|
snacks = { enabled = true, indent_scope_color = "lavender" },
|
||||||
symbols_outline = true,
|
symbols_outline = true,
|
||||||
telescope = true,
|
telescope = { enabled = false },
|
||||||
treesitter = true,
|
treesitter = true,
|
||||||
ts_rainbow = false,
|
ts_rainbow = false,
|
||||||
ufo = true,
|
ufo = true,
|
||||||
which_key = true,
|
which_key = true,
|
||||||
window_picker = true,
|
window_picker = true,
|
||||||
colorful_winsep = { enabled = true, color = "lavender" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
specs = {
|
specs = {
|
||||||
|
@ -167,47 +168,8 @@ return {
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Adds highlighting and custom commands for ledger files
|
|
||||||
{
|
|
||||||
"ledger/vim-ledger",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Better UI hooks
|
-- Better UI hooks
|
||||||
{
|
{
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Add Ollama support in-editor
|
|
||||||
{
|
|
||||||
"nomnivore/ollama.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- All the user commands added by the plugin
|
|
||||||
cmd = { "Ollama", "OllamaModel", "OllamaServe", "OllamaServeStop" },
|
|
||||||
|
|
||||||
keys = {
|
|
||||||
-- Sample keybind for prompt menu. Note that the <c-u> is important for selections to work properly.
|
|
||||||
{
|
|
||||||
"<leader>oo",
|
|
||||||
":<c-u>lua require('ollama').prompt()<cr>",
|
|
||||||
desc = "ollama prompt",
|
|
||||||
mode = { "n", "v" },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Sample keybind for direct prompting. Note that the <c-u> is important for selections to work properly.
|
|
||||||
{
|
|
||||||
"<leader>oG",
|
|
||||||
":<c-u>lua require('ollama').prompt('Generate_Code')<cr>",
|
|
||||||
desc = "ollama Generate Code",
|
|
||||||
mode = { "n", "v" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
---@type Ollama.Config
|
|
||||||
opts = {
|
|
||||||
-- your configuration overrides
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue