Git Product home page Git Product logo

vim-lexical's Issues

Release tag

There is no, can you create one?

Thanks

Matthias

Lags while typing if lexical is active

I have lexical enabled for markdown and text files, along with litecorrect. Everything works as long as I don't pause typing for too long. If I do pause mid-word, lexical will cause a 5-10 second hang.

For example, I can type th<space> quickly with no problems, but if I pause between th and <space>, then vim will hang for about 5 seconds before the space appears. I can reproduce this 100% of the time in that scenario - just pause for a quick 3-count between the th and <space>. The problem will occasionally happen while backspacing over text as well when I have partially deleted a word.

I have NeoComplete installed, and I've seen that issues can arise with that combo, but even after calling NeoCompleteDisable on the buffer I get the above behavior. I have a fairly complex vimrc, so I'm trying to narrow down if it's another interaction between plugins as I get the chance.

Insert mode spelling suggest key conflicts with terminals

The documentation notes the following:

For spelling suggestions while in Insert mode:

  • «CTRL-X» «CTRL-S» - suggest spelling

This may work from GUI client versions of VIM, but it doesn't work from the terminal where CTRL+S is usually intercepted by the terminal emulator and interpreted as a STOP character.

Is there a way to re-map this and can the documentation be updated to reflect how this is done?

Global-load to benefit users of neocomplete

Related to #10, where neocomplete will process file specified by dictionary at load time, causing a 3-4 second delay per buffer when lexical#init() is called.

Then, global load will have a single delay when starting vim. Buffer-specific calls to lexical#init() will no longer delay.

Provide completion function for emerging 'thesaurusfunc'

I have filed vim/vim#8950 and awesome @yegappan suggested POC implementation in yegappan/vim@949c4f2 Now, in order to test this, I would need a function following API of https://vimhelp.org/insert.txt.html#complete-functions generating a list of synonyms. Would it be possible for your plugin to add such function, which could be used as a value of 'thesaurusfunc' (same API as for 'completefunc' and 'omnifunc').

I hope it would be also help with your issue #9.

Cc: @Ron89 from https://github.com/Ron89/thesaurus_query.vim

Cross-posted with Ron89/thesaurus_query.vim#50

Detecting links?

Ideally it'd be great if the plugin could not have issues with links, is there a way to make sure that it understands what links are and just assume that they are spelled correctly?

Default mapping for dictionary lookup

The current one if «CTRL-X» «CTRL-K». In my eyes `«CTRL-X» «CTRL-D» (for Dictionary) would be more suitable. What do you think?

Bests from Berlin.

autocompletion source for asyncomplete.vim

Prabir Shrestha's asyncomplete.vim is compatible with vim8 and neovim. It would be nice to have a lexical/dictionary source for it. It makes use of vim8's timer feature.

I know I shouldn't be just dropping this in your issues, as if this is on-demand stuff. But I'm excited and can't help it. Thank you for your plugin.

Populates list of all entries in thesaurus

I cannot figure out what I am doing wrong. Using the thesaurus command only populates a list of the entire file. It is not suggesting only synonyms of the highlighted word.

E174: Command already exists: add ! to replace it

Hi Thanks for the work on this, very useful. I'm getting this error when I try to customize with "define your own commands". I'm using the example:

command -nargs=0 LexMed call lexical#init({
                    \ 'spell': 1,
                    \ 'spelllang':  ['en', 'medical'],
                    \ 'dictionary': ['~/.vim/dictionary/medical_terms.txt',
                    \                '/usr/share/dict/words',
                    \               ],
                    \ 'thesaurus':  ['~/.vim/dictionary/medical_synonyms.txt',
                    \                '~/.vim/thesaurus/mthesaur.txt',
                    \               ],
                    \ 'spellfile':  ['~/.vim/spell/en.add'],
                    \ })

But everytime I reload VIM I get:

Error detected while processing /Users/me/.vimrc:
line  518:
E174: Command already exists: add ! to replace it

Any ideas what could be wrong? Thanks

support thesaurus completion with multi-word entries

i get completions for synonyms but they are split by whitespace so that for example a line

foo;foo bar;bar;baz

would produce these completions for foo: ['foo', 'bar', 'bar', 'baz'].

It would be nice to be able to define a separator string which would be used to split the entries.

Format for dictionaries

I have the following format for German spellchecking:

command -nargs=0 German call lexical#init({
                    \ 'spell': 1,
                    \ 'spelllang':  ['de_20'],
                    \ 'dictionary': ['~/.vim/spell/gerspchk.dict'],
                    \ 'thesaurus':  ['~/.vim/thesaurus/openthesaurus.txt'],
                    \ 'spellfile':  ['~/.vim/spell/de.utf-8.add'],
                    \ })

and somewhere I found a really big dicitionary for german called gerspchk.dict and was wondering why it didn't work.

screenshot - 20 08 2015 - 21 42 28

The issue was, that the whole file was in one big line. Now each word is on one line and it working now

screenshot - 20 08 2015 - 21 55 24

My suggestion: Would it make sense to create a seperate repository or directory, which contains thesaurus and dictionary for other languages? I was searching a while until I found a good German one.

Mark good words for specific files?

Hi! First thank you for this great plugin. It is very useful.

I wonder if it is possible to mark good words for specific files? For example, if there are some abbreviations in some tex files but not others, it'd be useful to mark those abbrs as good words in those tex files only instead of the global vocabulary.

It seems can't work with neocomplete?

I install neocomplete plugin too, and I find after call lexical#init() vim will freeze about 3~5 seconds when I type something and it will pop up completion menu. If I use :NeoCompleteDisable vim will go well.
But I find I can't disable it with this autocmd FileType text,markdown,mkd,textile NeoCompleteDisable. How can I do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.