neovim-config/lua/plugins/neoai-nvim.lua

13 lines
490 B
Lua
Raw Normal View History

2023-04-18 05:12:56 +00:00
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" }
-- )