You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**implementation** (works the same as definition).
11
+
-**hover** provides comments before the class name with direct declarations within the class name.
12
+
7
13
The supported languages are `css`(postcss), `sass` and `scss`. `styl` files are parsed as regular `css`.
8
14
9
15
## Installation
@@ -18,33 +24,29 @@ See if your editor supports language servers or if there is a plugin to add supp
18
24
19
25
### Neovim
20
26
21
-
Example uses [`nvim-lspconfig`](https://github.com/neovim/lspconfig)
27
+
Example uses [`nvim-lspconfig`](https://github.com/neovim/nvim-lspconfig)
28
+
29
+
```lua
30
+
require'lspconfig'.cssmodules_ls.setup {
31
+
-- provide your on_attach to bind keymappings
32
+
on_attach=custom_on_attach,
33
+
-- optionally
34
+
init_options= {
35
+
camelCase='dashes',
36
+
},
37
+
}
38
+
```
39
+
40
+
**Known issue**: if you have multiple LSP that provide hover and go-to-definition support, there can be races(example typescript and cssmodules-language-server work simultaneously). As a workaround you can disable **definition** in favor of **implementation** to avoid conflicting with typescript's go-to-definition.
0 commit comments