Steps to repro
-
install typescript language server
npm i -g typescript-language-server
-
install cssmodules language server
npm i -g cssmodules-language-server
-
Enable both in your neovim by calling
require('lspconfig').tsserver.setup() require('lspconfig').cssmodules_ls.setup()
-
open
src/index.ts
-
place cursor on
blue
and callvim.lsp.buf.definiton()
You will see that the open buffer now is either styles.module.css
or styles.d.ts
, if you press <C-o>
, you go to the other file from the two. One more <C-o>
will return you to src/index.ts