I've set up company-mode in emacs and enabled the company-files backend, and am now able to start typing in code which looks like this:
import Foo from '../
and have company provide some auto-completion options, resulting in e.g.:
import Foo from '../../baz/bar/Foo.js
. Is it now possible to configure company-files to begin its process in some other directory (e.g.
../../baz), so that I can write code that looks like this:
import Foo from 'bar/Foo.js';
and still get autocompletion along the way?
Ideally I'd like a way to tell company-mode "traverse up the filesystem tree from this file's location until you find a directory containing a file named 'package.json' and begin auto-completion from there", but providing an absolute filesystem path string would be okay too.