Skip to content

Commit 6480114

Browse files
authored
Updates to lualine behavior (#4)
* working on making the autoinstall output easier to read * re-invoke after install * added messages for those who don't have autoinstall = true * lualine integration * rollback behavior * rolling back changes * updated readme for lualine behavior * updated readme * updated readme
1 parent c2bc0ee commit 6480114

2 files changed

Lines changed: 221 additions & 158 deletions

File tree

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,29 @@ export OPENAI_API_KEY=your_api_key
2929
```lua
3030
return {
3131
'johnseth97/codex.nvim',
32+
branch = 'patch-2',
3233
lazy = true,
3334
keys = {
3435
{
3536
'<leader>cc',
36-
function()
37-
require('codex').toggle()
38-
end,
37+
function() require('codex').toggle() end,
3938
desc = 'Toggle Codex popup',
4039
},
4140
},
42-
config = function()
43-
require('codex').setup {
44-
keymaps = {}, -- <-- disable internal mapping
45-
border = 'rounded',
46-
width = 0.8,
47-
height = 0.8,
48-
autoinstall = true,
49-
}
50-
end,
41+
opts = {
42+
keymaps = {}, -- disable internal mapping
43+
border = 'rounded', -- or 'double'
44+
width = 0.8,
45+
height = 0.8,
46+
autoinstall = true,
47+
},
5148
}
5249
```
5350

5451
Usage:
5552
- Call `:Codex` (or `:CodexToggle`) to open or close the Codex popup.
5653
-- Map your own keybindings via the `keymaps.toggle` setting.
57-
- Add to your statusline:
58-
```vim
59-
set statusline+=%{v:lua.require'codex'.statusline()}
54+
- Add lualinenotifier to show backgrounded Codex window:
55+
```lua
56+
require('codex').status() -- drop in to your lualine sections
6057
```

0 commit comments

Comments
 (0)