Install neoai-nvim
This commit is contained in:
parent
310045fbef
commit
d44a4cd533
@ -347,6 +347,14 @@ return require('packer').startup(function(use)
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
-- use 'github/copilot.vim'
|
-- use 'github/copilot.vim'
|
||||||
|
use { "MunifTanjim/nui.nvim" }
|
||||||
|
use {
|
||||||
|
"Bryley/neoai.nvim",
|
||||||
|
require = { "MunifTanjim/nui.nvim" },
|
||||||
|
config = function()
|
||||||
|
require('plugins.neoai-nvim')
|
||||||
|
end
|
||||||
|
}
|
||||||
use 'ziglang/zig.vim'
|
use 'ziglang/zig.vim'
|
||||||
use {
|
use {
|
||||||
'akinsho/bufferline.nvim',
|
'akinsho/bufferline.nvim',
|
||||||
|
12
lua/plugins/neoai-nvim.lua
Normal file
12
lua/plugins/neoai-nvim.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
require('neoai').setup()
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>ai', '<cmd>NeoAI<cr>',
|
||||||
|
{ silent = true, noremap = true, desc = "Toggle Neo[AI]" }
|
||||||
|
)
|
||||||
|
vim.keymap.set('n', '<leader>ac', '<cmd>NeoAIContext<cr>',
|
||||||
|
{ silent = true, noremap = true, desc = "Toggle Neo[A]i with [C]ontext of current buffer" }
|
||||||
|
)
|
||||||
|
-- Can't get this to work :/
|
||||||
|
-- vim.keymap.set('x', '<leader>ai', [[<cmd>'<,'>NeoAIContext<cr>]],
|
||||||
|
-- { silent = true, noremap = true, desc = "Toggle Neo[AI] with context of selected text" }
|
||||||
|
-- )
|
Loading…
Reference in New Issue
Block a user