@@ -18,16 +18,13 @@ Cosmic-UI is a simple wrapper around specific vim functionality. Built in order
18
18
- LSP UI
19
19
- Signature help
20
20
- Hover
21
- - Autocompletion documentation
22
- - Rename floating popup
23
- - Rename file change notification
21
+ - Rename floating popup & file change notification
24
22
- Code Actions
23
+ - Exports values such as the border value set in ` .setup ` to use elsewhere in your configuration
25
24
26
25
_ Coming soon..._
27
26
28
27
- Highlighting documentation
29
- - Preview windows?
30
- - LSP definition, references, etc?
31
28
32
29
## 📷 Screenshots
33
30
@@ -44,55 +41,23 @@ _Coming soon..._
44
41
``` lua
45
42
use ({
46
43
' CosmicNvim/cosmic-ui' ,
47
- config = function ()
48
- require (' cosmic-ui' ).setup ()
49
- end ,
50
44
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' ,
59
45
config = function ()
60
46
require (' cosmic-ui' ).setup ()
61
47
end ,
62
- requires = { ' MunifTanjim/nui.nvim' , ' nvim-lua/plenary.nvim' , ' ray-x/lsp_signature.nvim' },
63
- after = ' nvim-lspconfig' ,
64
48
})
65
49
```
66
50
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 .
68
52
69
53
``` lua
70
54
use ({
71
55
' CosmicNvim/cosmic-ui' ,
72
56
requires = { ' MunifTanjim/nui.nvim' , ' nvim-lua/plenary.nvim' , ' ray-x/lsp_signature.nvim' },
73
57
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 ()
92
59
end ,
93
- requires = {... },
94
- event = ' InsertEnter' ,
95
- disable = vim .tbl_contains (user_plugins .disable , ' autocomplete' ),
60
+ after = ' nvim-lspconfig' ,
96
61
})
97
62
```
98
63
@@ -116,9 +81,6 @@ You may override any of the settings below by passing a config object to `.setup
116
81
hint = ' ' ,
117
82
},
118
83
119
- -- autocomplete settings, see `:h cmp-config`
120
- autocomplete = false ,
121
-
122
84
-- see h: vim.diagnostic.config
123
85
-- `false` to disable
124
86
diagnostic = {
@@ -174,7 +136,6 @@ You may override any of the settings below by passing a config object to `.setup
174
136
-- lsp_signature settings
175
137
-- `false` to disable
176
138
lsp_signature = {
177
- bind = true ,
178
139
handler_opts = {
179
140
-- override border if desired
180
141
border = ' rounded' ,
@@ -207,7 +168,7 @@ You may override any of the settings below by passing a config object to `.setup
207
168
}
208
169
```
209
170
210
- ## ✨ Utilities
171
+ ## ✨ Usage
211
172
212
173
#### Rename
213
174
0 commit comments