I'm working on frontend project, we're using root alias, like:
import from '~/src/components/button';
import from '../../../../../components/button';
But when I try to import from
nvim is not able to autocomplete the path.
How can I let my nvim to know from where it should suggest the path?
~. Depending on the context, to get
~to resolve you have to use
expand('~/some/file')rather than just
~as my project root, but I can redefine it to
@/or something else.
~is probably a bad choice because of the confusion with home dir