Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The difference in Lua is that file paths are separated by dots ‘.’ instead of the usual file path delimiter (‘/‘ in the case of Unix based systems). This means that ‘gf’ by default can’t find these paths. If you check out ‘:help includeexpr’, you can see that we’re able to transform these virtual (dotted) file paths into their normal file paths using a substitution command (where ‘.’ is replaced with ‘/‘). This is the general basis of how nvim-lua-gf works.
Checkout pcall as this is built into lua. Alternatively, I made a plugin that handles this for you import.nvim
To use the LSP it would be 'go to definition'. If you use nvim-lspconfig, the default keymap is gd