Spacevim: Turn off auto-completion for English words?

Created on 16 Oct 2018  路  15Comments  路  Source: SpaceVim/SpaceVim

Is it possible to turn off auto-completion for English words? It is quite annoying because it adds a long list of useless items as candidates.

Most helpful comment

I also vote for disabling the neco-look plugin by default. Most developers don't need alphabetical suggestions for how to name their functions or classes.

All 15 comments

Do you use deoplete.nvim?
You can disable look source for it.
Please read deoplete.nvim documentation.

I think that's what's for default. I went through deoplete-options and it seems to be linked to neco-look, but I cannot figure out how to turn it off....

You can disable neco-look plugin in SpaceVim.
I don't know what is the proper solution in SpaceVim.

Tried
let g:spacevim_disabled_plugins = ['neco-look']
Doesnt work.

Well, I found the solution in the docs. My bad I didn't read it properly. (https://spacevim.org/documentation/#custom-configuration)
So, to disable neco-look you have to add disabled_plugins = ["neco-look"] in your ~/.SpaceVim.d/init.toml

Thanks for all of you, and yes, you can disable the plugin in toml file.

Thanks @marcelomendes . @wsdjeg is it possible to make this the default behavior?
I don't think many vim users will find English word looking up useful.

sorry, can not, because this plugin has been added since v0.1.0

@wsdjeg well maybe we can simply add the 'disalbe_plugins' line in init.toml as default?

I also vote for disabling the neco-look plugin by default. Most developers don't need alphabetical suggestions for how to name their functions or classes.

It would actually be the best to only load the plugin if 'spell' is set.

It used to have it like this in dein. I don't know if that still works. And I don't know what happens if spell is toggled..

call dein#add('ujihisa/neco-look', {
         \ 'if': 'executable("look")',
         \ 'on_if': '&spell',
\ })

You can configure deoplete like this.

call deoplete#custom#source('look', 'filetypes', ['help', 'gitcommit'])

or adding a commented out line in default toml file with some comments?

# uncomment this will disable the autocomplete of english words
#disabled_plugins = ["neco-look"]

@jingpengw I do not want to add too many content in the toml example file.

@stfl use 'if': 'executable("look")' seems better.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

teemola picture teemola  路  5Comments

dzintars picture dzintars  路  3Comments

linwaytin picture linwaytin  路  4Comments

Lobosque picture Lobosque  路  3Comments

gennad picture gennad  路  4Comments