feat: added codex and what counts as word to init.lua
This commit is contained in:
parent
6b0b8456a0
commit
05ac6d2b52
2 changed files with 33 additions and 0 deletions
7
init.lua
7
init.lua
|
|
@ -21,6 +21,13 @@ vim.cmd('cnoreabbrev q qa')
|
||||||
vim.cmd('cnoreabbrev Q q')
|
vim.cmd('cnoreabbrev Q q')
|
||||||
vim.cmd('cnoreabbrev x xa')
|
vim.cmd('cnoreabbrev x xa')
|
||||||
vim.cmd('cnoreabbrev q! qa!')
|
vim.cmd('cnoreabbrev q! qa!')
|
||||||
|
|
||||||
|
-- Editing what counts as a word
|
||||||
|
vim.cmd('set iskeyword+=-')
|
||||||
|
vim.cmd('set iskeyword+=.')
|
||||||
|
vim.cmd('set iskeyword+=:')
|
||||||
|
vim.cmd('set iskeyword+=/')
|
||||||
|
|
||||||
-- Keybinds
|
-- Keybinds
|
||||||
|
|
||||||
-- Remaps
|
-- Remaps
|
||||||
|
|
|
||||||
26
lua/plugins/codex.lua
Normal file
26
lua/plugins/codex.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
return {
|
||||||
|
'kkrampis/codex.nvim',
|
||||||
|
lazy = true,
|
||||||
|
cmd = { 'Codex', 'CodexToggle' }, -- Optional: Load only on command execution
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
'<leader>cc', -- Change this to your preferred keybinding
|
||||||
|
function() require('codex').toggle() end,
|
||||||
|
desc = 'Toggle Codex popup or side-panel',
|
||||||
|
mode = { 'n', 't' }
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
keymaps = {
|
||||||
|
toggle = nil, -- Keybind to toggle Codex window (Disabled by default, watch out for conflicts)
|
||||||
|
quit = '<C-q>', -- Keybind to close the Codex window (default: Ctrl + q)
|
||||||
|
}, -- Disable internal default keymap (<leader>cc -> :CodexToggle)
|
||||||
|
border = 'rounded', -- Options: 'single', 'double', or 'rounded'
|
||||||
|
width = 0.8, -- Width of the floating window (0.0 to 1.0)
|
||||||
|
height = 0.8, -- Height of the floating window (0.0 to 1.0)
|
||||||
|
model = nil, -- Optional: pass a string to use a specific model (e.g., 'o3-mini')
|
||||||
|
autoinstall = true, -- Automatically install the Codex CLI if not found
|
||||||
|
panel = false, -- Open Codex in a side-panel (vertical split) instead of floating window
|
||||||
|
use_buffer = false, -- Capture Codex stdout into a normal buffer instead of a terminal buffer
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue