@@ -18,16 +18,13 @@ Cosmic-UI is a simple wrapper around specific vim functionality. Built in order
1818- LSP UI
1919 - Signature help
2020 - Hover
21- - Autocompletion documentation
22- - Rename floating popup
23- - Rename file change notification
21+ - Rename floating popup & file change notification
2422 - Code Actions
23+ - Exports values such as the border value set in ` .setup ` to use elsewhere in your configuration
2524
2625_ Coming soon..._
2726
2827- Highlighting documentation
29- - Preview windows?
30- - LSP definition, references, etc?
3128
3229## 📷 Screenshots
3330
@@ -44,55 +41,23 @@ _Coming soon..._
4441``` lua
4542 use ({
4643 ' CosmicNvim/cosmic-ui' ,
47- config = function ()
48- require (' cosmic-ui' ).setup ()
49- end ,
5044 requires = { ' MunifTanjim/nui.nvim' , ' nvim-lua/plenary.nvim' },
51- })
52- ```
53-
54- To enable ` lsp_signature ` integration, ensure that ` cosmic-ui ` initializes _ after_ your LSP servers
55-
56- ``` lua
57- use ({
58- ' CosmicNvim/cosmic-ui' ,
5945 config = function ()
6046 require (' cosmic-ui' ).setup ()
6147 end ,
62- requires = { ' MunifTanjim/nui.nvim' , ' nvim-lua/plenary.nvim' , ' ray-x/lsp_signature.nvim' },
63- after = ' nvim-lspconfig' ,
6448 })
6549```
6650
67- Autocomplete functionality is disabled by default, if you would like to set it up. Ensure that Cosmic-UI is also initialized after nvim-cmp .
51+ To enable ` lsp_signature ` integration, ensure that ` cosmic-ui ` initializes _ after _ your LSP servers. This is a requirement of ` lsp_signature ` itself .
6852
6953``` lua
7054 use ({
7155 ' CosmicNvim/cosmic-ui' ,
7256 requires = { ' MunifTanjim/nui.nvim' , ' nvim-lua/plenary.nvim' , ' ray-x/lsp_signature.nvim' },
7357 config = function ()
74- require (' cosmic-ui' ).setup ({
75- autocomplete = {
76- -- add any nvim-cmp settings you would like to override
77- }
78- })
79- end ,
80- })
81- ```
82-
83- If you would like to continue to lazy load nvim-cmp, you may alter your setup to the below.
84-
85- ``` lua
86- use ({
87- ' hrsh7th/nvim-cmp' ,
88- config = function ()
89- require (' cosmic-ui' ).setup_autocomplete ({
90- -- add any nvim-cmp settings you would like to override
91- })
58+ require (' cosmic-ui' ).setup ()
9259 end ,
93- requires = {... },
94- event = ' InsertEnter' ,
95- disable = vim .tbl_contains (user_plugins .disable , ' autocomplete' ),
60+ after = ' nvim-lspconfig' ,
9661 })
9762```
9863
@@ -116,9 +81,6 @@ You may override any of the settings below by passing a config object to `.setup
11681 hint = ' ' ,
11782 },
11883
119- -- autocomplete settings, see `:h cmp-config`
120- autocomplete = false ,
121-
12284 -- see h: vim.diagnostic.config
12385 -- `false` to disable
12486 diagnostic = {
@@ -174,7 +136,6 @@ You may override any of the settings below by passing a config object to `.setup
174136 -- lsp_signature settings
175137 -- `false` to disable
176138 lsp_signature = {
177- bind = true ,
178139 handler_opts = {
179140 -- override border if desired
180141 border = ' rounded' ,
@@ -207,7 +168,7 @@ You may override any of the settings below by passing a config object to `.setup
207168}
208169```
209170
210- ## ✨ Utilities
171+ ## ✨ Usage
211172
212173#### Rename
213174
0 commit comments