diff --git a/README.md b/README.md index 85b2925..fa3cc1f 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ options. | Variable | Default | |:--------------------------------|:----------------------| -| `g:ncm2_alchmist_vim_path` | `find by runtimepath` | +| `g:ncm2_alchemist_vim_path` | `find by runtimepath` | -- `g:ncm2_alchmist_vim_path` +- `g:ncm2_alchemist_vim_path` Path to `alchemist.vim` plugin, if installed via `Plug` it should be something like `~/.config/nvim/plugged/alchemist.vim/`. This plugin will try diff --git a/autoload/ncm2_alchemist.vim b/autoload/ncm2_alchemist.vim index b64cd5a..1f7e4a9 100644 --- a/autoload/ncm2_alchemist.vim +++ b/autoload/ncm2_alchemist.vim @@ -30,14 +30,14 @@ func! ncm2_alchemist#on_complete(ctx) endfunc func! ncm2_alchemist#alchemist_vim_path() - if empty(get(g:, 'ncm2_alchmist_vim_path')) + if empty(get(g:, 'ncm2_alchemist_vim_path')) for l:path in split(&runtimepath, ',') if l:path =~ '/alchemist.vim/' && !empty(glob(l:path . "elixir_sense")) - let g:ncm2_alchmist_vim_path = l:path + let g:ncm2_alchemist_vim_path = l:path break endif endfor endif - return get(g:, 'ncm2_alchmist_vim_path') + return get(g:, 'ncm2_alchemist_vim_path') endfunc