Skip to content

Commit 544d21b

Browse files
authored
Merge pull request #12 from editor-code-assistant/updating-readme
Updating Readme
2 parents 6169a7b + aee7491 commit 544d21b

File tree

2 files changed

+57
-10
lines changed

2 files changed

+57
-10
lines changed

README.md

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,39 @@ A modern Neovim plugin that integrates [ECA (Editor Code Assistant)](https://eca
2424
#### Basic Configuration
2525

2626
```lua
27-
{ "editor-code-assistant/eca-nvim", opts = {} }
27+
{
28+
"editor-code-assistant/eca-nvim",
29+
dependencies = {
30+
"MunifTanjim/nui.nvim", -- Required: UI framework
31+
"nvim-lua/plenary.nvim", -- Optional: Enhanced async operations
32+
},
33+
opts = {}
34+
}
35+
```
36+
37+
#### Advanced Configuration
38+
39+
```lua
40+
{
41+
"editor-code-assistant/eca-nvim",
42+
dependencies = {
43+
"MunifTanjim/nui.nvim", -- Required: UI framework
44+
"nvim-lua/plenary.nvim", -- Optional: Enhanced async operations
45+
},
46+
keys = {
47+
{ "<leader>ec", "<cmd>EcaChat<cr>", desc = "Open ECA chat" },
48+
{ "<leader>ef", "<cmd>EcaFocus<cr>", desc = "Focus ECA sidebar" },
49+
{ "<leader>et", "<cmd>EcaToggle<cr>", desc = "Toggle ECA sidebar" },
50+
},
51+
opts = {
52+
debug = false,
53+
server_path = "",
54+
behaviour = {
55+
auto_set_keymaps = true,
56+
auto_focus_sidebar = true,
57+
},
58+
}
59+
}
2860
```
2961

3062
### 📦 [packer.nvim](https://github.com/wbthomason/packer.nvim)
@@ -33,8 +65,8 @@ A modern Neovim plugin that integrates [ECA (Editor Code Assistant)](https://eca
3365
use {
3466
"editor-code-assistant/eca-nvim",
3567
requires = {
36-
-- Required for enhanced UI components
37-
"MunifTanjim/nui.nvim",
68+
"MunifTanjim/nui.nvim", -- Required: UI framework
69+
"nvim-lua/plenary.nvim", -- Optional: Enhanced async operations
3870
},
3971
config = function()
4072
require("eca").setup({
@@ -53,6 +85,9 @@ Plug 'editor-code-assistant/eca-nvim'
5385
" Required dependencies
5486
Plug 'MunifTanjim/nui.nvim'
5587
88+
" Optional dependencies (enhanced async operations)
89+
Plug 'nvim-lua/plenary.nvim'
90+
5691
" After the plugins, add:
5792
lua << EOF
5893
require("eca").setup({
@@ -69,9 +104,14 @@ call dein#add('editor-code-assistant/eca-nvim')
69104
" Required dependencies
70105
call dein#add('MunifTanjim/nui.nvim')
71106
107+
" Optional dependencies (enhanced async operations)
108+
call dein#add('nvim-lua/plenary.nvim')
109+
72110
" Configuration
73111
lua << EOF
74-
require("eca").setup()
112+
require("eca").setup({
113+
-- Your configurations here
114+
})
75115
EOF
76116
```
77117

@@ -80,10 +120,13 @@ EOF
80120
```toml
81121
# rocks.toml
82122
[plugins]
83-
"eca-neovim" = { git = "editor-code-assistant/eca-nvim" }
123+
"eca-nvim" = { git = "editor-code-assistant/eca-nvim" }
84124

85125
# Required dependencies
86126
"nui.nvim" = { git = "MunifTanjim/nui.nvim" }
127+
128+
# Optional dependencies (enhanced async operations)
129+
"plenary.nvim" = { git = "nvim-lua/plenary.nvim" }
87130
```
88131

89132
### 🌱 [mini.deps](https://github.com/echasnovski/mini.nvim)
@@ -94,12 +137,14 @@ local add = MiniDeps.add
94137
add({
95138
source = "editor-code-assistant/eca-nvim",
96139
depends = {
97-
-- Required dependencies
98-
"MunifTanjim/nui.nvim",
140+
"MunifTanjim/nui.nvim", -- Required: UI framework
141+
"nvim-lua/plenary.nvim", -- Optional: Enhanced async operations
99142
}
100143
})
101144

102-
require("eca").setup()
145+
require("eca").setup({
146+
-- Your configurations here
147+
})
103148
```
104149

105150
## ⚡ Quick Start

plugin-spec.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
-- Plugin specification for package managers
22
return {
3-
name = "eca-neovim",
3+
name = "eca-nvim",
44
description = "ECA (Editor Code Assistant) integration for Neovim",
55
dependencies = {
6-
"nvim-lua/plenary.nvim", -- For async operations (optional)
6+
"MunifTanjim/nui.nvim", -- UI framework (required)
7+
"nvim-lua/plenary.nvim", -- For async operations (optional)
78
},
89
config = function()
910
require("eca").setup({
@@ -39,5 +40,6 @@ return {
3940
"EcaServerRestart",
4041
"EcaServerStatus",
4142
"EcaSend",
43+
"EcaLogs",
4244
},
4345
}

0 commit comments

Comments
 (0)