@@ -11,7 +11,6 @@ A modern Neovim plugin that integrates [ECA (Editor Code Assistant)](https://eca
1111- 🎨 ** Modern Interface** : Integrated sidebar with markdown support
1212- ⌨️ ** Intuitive Commands** : Ctrl+S to send, Enter for new line
1313- 🔧 ** Highly Configurable** : Customizable shortcuts, appearance and behavior
14- - ✨ ** Beautiful Markdown** : Integration with [ markview.nvim] ( https://github.com/OXY2DEV/markview.nvim )
1514- 📊 ** Visual Feedback** : Status bar with server information
1615- 🔄 ** Real-time Streaming** : Responses appear as they are generated
1716
@@ -30,62 +29,14 @@ A modern Neovim plugin that integrates [ECA (Editor Code Assistant)](https://eca
3029}
3130```
3231
33- #### Complete Configuration with Markview
34-
35- ``` lua
36- {
37- " W3ND31/eca-neovim" ,
38- dependencies = {
39- -- Recommended for beautiful markdown rendering
40- {
41- " OXY2DEV/markview.nvim" ,
42- lazy = false ,
43- dependencies = {
44- " nvim-treesitter/nvim-treesitter" ,
45- " nvim-tree/nvim-web-devicons"
46- }
47- }
48- },
49- config = function ()
50- require (" eca" ).setup ({
51- debug = false ,
52- behaviour = {
53- auto_set_keymaps = true ,
54- auto_focus_sidebar = true ,
55- auto_start_server = true ,
56- },
57- markview = {
58- enable = true ,
59- filetypes = { " markdown" , " Eca" },
60- },
61- mappings = {
62- chat = " <leader>ec" ,
63- focus = " <leader>ef" ,
64- toggle = " <leader>et" ,
65- },
66- windows = {
67- width = 40 ,
68- wrap = true ,
69- },
70- })
71- end
72- }
73- ```
74-
7532### 📦 [ packer.nvim] ( https://github.com/wbthomason/packer.nvim )
7633
7734``` lua
7835use {
7936 " W3ND31/eca-neovim" ,
8037 requires = {
81- -- Optional: for beautiful markdown
82- {
83- " OXY2DEV/markview.nvim" ,
84- requires = {
85- " nvim-treesitter/nvim-treesitter" ,
86- " nvim-tree/nvim-web-devicons"
87- }
88- }
38+ -- Required for enhanced UI components
39+ " MunifTanjim/nui.nvim" ,
8940 },
9041 config = function ()
9142 require (" eca" ).setup ({
@@ -101,10 +52,8 @@ use {
10152" In your init.vim or init.lua
10253Plug 'W3ND31/eca-neovim'
10354
104- " Optional: for beautiful markdown
105- Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
106- Plug 'nvim-tree/nvim-web-devicons'
107- Plug 'OXY2DEV/markview.nvim'
55+ " Required dependencies
56+ Plug 'MunifTanjim/nui.nvim'
10857
10958" After the plugins, add:
11059lua << EOF
11968``` vim
12069call dein#add('W3ND31/eca-neovim')
12170
122- " Optional: for beautiful markdown
123- call dein#add('nvim-treesitter/nvim-treesitter')
124- call dein#add('nvim-tree/nvim-web-devicons')
125- call dein#add('OXY2DEV/markview.nvim')
71+ " Required dependencies
72+ call dein#add('MunifTanjim/nui.nvim')
12673
12774" Configuration
12875lua << EOF
13784[plugins ]
13885"eca-neovim" = { git = " W3ND31/eca-neovim" }
13986
140- # Optional: for beautiful markdown
141- "markview.nvim" = { git = " OXY2DEV/markview.nvim" }
142- "nvim-treesitter" = " scm"
143- "nvim-web-devicons" = " scm"
87+ # Required dependencies
88+ "nui.nvim" = { git = " MunifTanjim/nui.nvim" }
14489```
14590
14691### 🌱 [ mini.deps] ( https://github.com/echasnovski/mini.nvim )
@@ -151,10 +96,8 @@ local add = MiniDeps.add
15196add ({
15297 source = " W3ND31/eca-neovim" ,
15398 depends = {
154- -- Optional: for beautiful markdown
155- " OXY2DEV/markview.nvim" ,
156- " nvim-treesitter/nvim-treesitter" ,
157- " nvim-tree/nvim-web-devicons"
99+ -- Required dependencies
100+ " MunifTanjim/nui.nvim" ,
158101 }
159102})
160103
@@ -241,15 +184,6 @@ require("eca").setup({
241184 show_status_updates = true ,
242185 },
243186
244- -- === MARKVIEW INTEGRATION ===
245- markview = {
246- -- Enable markview.nvim integration
247- enable = true ,
248-
249- -- File types to enable markview
250- filetypes = { " markdown" , " Eca" },
251- },
252-
253187 -- === KEY MAPPINGS ===
254188 mappings = {
255189 chat = " <leader>ec" , -- Open chat
@@ -309,7 +243,6 @@ require("eca").setup({
309243
310244``` lua
311245require (" eca" ).setup ({
312- markview = { enable = false },
313246 behaviour = { show_status_updates = false },
314247 windows = { width = 30 },
315248})
@@ -319,7 +252,6 @@ require("eca").setup({
319252
320253``` lua
321254require (" eca" ).setup ({
322- markview = { enable = true },
323255 behaviour = { auto_focus_sidebar = true },
324256 windows = {
325257 width = 50 ,
@@ -352,7 +284,6 @@ require("eca").setup({
352284
353285``` lua
354286require (" eca" ).setup ({
355- markview = { enable = false },
356287 behaviour = {
357288 auto_focus_sidebar = false ,
358289 show_status_updates = false ,
@@ -522,33 +453,8 @@ Consider readability and maintainability.
522453
523454### ✨ Optional
524455
525- - ** [ markview.nvim] ( https://github.com/OXY2DEV/markview.nvim ) ** - For beautiful markdown rendering in chat
526- - ** [ nvim-treesitter] ( https://github.com/nvim-treesitter/nvim-treesitter ) ** - Required for markview
527- - ** [ nvim-web-devicons] ( https://github.com/nvim-tree/nvim-web-devicons ) ** - Icons for markview
528456- ** [ plenary.nvim] ( https://github.com/nvim-lua/plenary.nvim ) ** - Utility functions (some distributions)
529457
530- ### 🎨 Installing Markview (Recommended)
531-
532- Markview.nvim makes the chat much more beautiful and readable:
533-
534- ``` lua
535- -- With lazy.nvim
536- {
537- " OXY2DEV/markview.nvim" ,
538- lazy = false ,
539- dependencies = {
540- " nvim-treesitter/nvim-treesitter" ,
541- " nvim-tree/nvim-web-devicons"
542- },
543- config = function ()
544- require (" markview" ).setup ({
545- modes = { " n" , " i" , " no" , " c" },
546- hybrid_modes = { " i" },
547- })
548- end
549- }
550- ```
551-
552458### 💻 Tested Systems
553459
554460- ✅ ** macOS** (Intel and Apple Silicon)
@@ -590,17 +496,6 @@ require("eca").setup({
590496- Configure proxy if necessary
591497- Download server manually and configure ` server_path `
592498
593- ### 🎨 Markview not working
594-
595- ** Symptoms** : Markdown appears as plain text
596-
597- ** Solutions** :
598-
599- - Install markview.nvim and dependencies
600- - Check if ` markview.enable = true ` in configuration
601- - Run ` :TSUpdate markdown ` to update parsers
602- - Restart Neovim after installing markview
603-
604499### ⌨️ Shortcuts not working
605500
606501** Symptoms** : ` <leader>ec ` doesn't open chat
@@ -633,7 +528,6 @@ vim.keymap.set("n", "<leader>et", ":EcaToggle<CR>", { desc = "ECA Toggle" })
633528
634529** Solutions** :
635530
636- - Disable markview: ` markview.enable = false `
637531- Reduce window width: ` windows.width = 25 `
638532- Disable visual updates: ` behaviour.show_status_updates = false `
639533- Use minimalist configuration
@@ -753,7 +647,6 @@ This plugin was inspired and based on the work of:
753647
754648- ** [ avante.nvim] ( https://github.com/yetone/avante.nvim ) ** - Base structure and UI concepts
755649- ** [ eca-vscode] ( https://github.com/editor-code-assistant/eca-vscode ) ** - ECA server integration
756- - ** [ markview.nvim] ( https://github.com/OXY2DEV/markview.nvim ) ** - Beautiful markdown rendering
757650- ** Neovim Community** - For all the tools and inspiration
758651
759652## 🔗 Useful Links
0 commit comments