add ollama pluigin
This commit is contained in:
parent
cc1b5ae9c7
commit
010f692b41
4 changed files with 43 additions and 22 deletions
|
|
@ -2,6 +2,17 @@ require('lsp-progress').setup({
|
|||
|
||||
})
|
||||
|
||||
-- Define a function to check the status and return the corresponding icon
|
||||
local function get_ollama_status()
|
||||
local status = require("ollama").status()
|
||||
|
||||
if status == "IDLE" then
|
||||
return ""
|
||||
elseif status == "WORKING" then
|
||||
return "OLLAMA BUSY"
|
||||
end
|
||||
end
|
||||
|
||||
local config = {
|
||||
sections = {
|
||||
lualine_c = {
|
||||
|
|
@ -12,6 +23,7 @@ local config = {
|
|||
},
|
||||
lualine_x = {
|
||||
'filetype',
|
||||
get_ollama_status,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
dot_vim/lua/ollama_setup.lua
Normal file
7
dot_vim/lua/ollama_setup.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require("ollama").setup({
|
||||
model = "codellama",
|
||||
url = "http://ollama.ollama.svc.k8s.barakmich.com",
|
||||
serve = {
|
||||
on_start = false,
|
||||
},
|
||||
})
|
||||
|
|
@ -623,6 +623,7 @@ end
|
|||
|
||||
require("hoversplit").setup({})
|
||||
|
||||
require("murdock")
|
||||
--require("murdock")
|
||||
require("ollama_setup")
|
||||
require("lir_setup")
|
||||
require("lualine_setup")
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ Plug 'nvim-lua/popup.nvim'
|
|||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
Plug 'sindrets/diffview.nvim'
|
||||
Plug 'nomnivore/ollama.nvim'
|
||||
|
||||
Plug 'kyazdani42/nvim-web-devicons' " for file icons
|
||||
"Plug 'kyazdani42/nvim-tree.lua'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue