Code Monkey home page Code Monkey logo

cmp-spell's People

Contributors

f3fora avatar overhacked avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cmp-spell's Issues

TODO

  • Add an appropriate compare function. See
    -- TODO: Add a custom compare function.
  • Enable this source only inside @spell See :h treesitter-highlight-spell #8
  • Enable this source only inside @Spell See :h spell-syntax
  • Replace enable_in_context option with hrsh7th/nvim-cmp#632

\w+ only captures ASCII

I had a problem with non-English spelling completion.
Turns out \w+ only captures ascii characters and then cmp doesn't count them as things to complete and cancels the completion.
It is an old vim limitation, that is inherited in neovim.
Tried it with \k or \K (\K is the better one, excludes numbers) and should work regardless of language?
At least it works for both English and any Cyrilic alphabet-based language

cmp-spell source is always first selected

This is my cmp sources:

      sources = cmp.config.sources({
        { name = "nvim_lsp" },
        { name = "luasnip" },
        { name = "buffer" },
        { name = "spell" },
        { name = "path" },
      }),

When I input text, lsp source should be on the top of popup menu, but I got spell source first:
image
Is there something wrong with priority of spell source?
When I remove spell source, I got this:
image
It seems to be normal.

cmp-spell cannot sort by order at first entry

I wanted the completion window to be printed in the same order as the vim.fn.spellsuggest() function. like this.

  • input : 'overshot'
  • output of spellsuggest() :
  1. overshoot
  2. Overshot
  3. overshoe
  4. over shot
  5. overshoots

To see this, I changed the sorting order in config of nvim-cmp like

sorting = {
  priority_weight = 2.0,
  comparators = {
    compare.order,
  }
},

but the completion window said the input word first like

1. overshot
2. overshoot
3. Overshot
4. overshoe
5. over shot
6. overshoots

Why does the first one displayed?
my source setting is

-- /////// source of lua
cmp.setup.filetype({'lua'}, {
  sources = {
    {
      name = 'spell', 
      group_index = 1,
      option = {
        keep_all_entries = true, -- it can show more possible list
        enable_in_context = function () -- is_available() does not work, this option make spell completion work only 
          return context.in_treesitter_capture('comment') or context.in_syntax_group('Comment')
        end
      }
    },
  }
})

Suggest correction

Hi there! Any way to make the extension suggest corrections for misspelled words?
Thanks a lot and keep up the good work! ๐Ÿ’ช

Spell completions are being filtered

Using the spell extension all the suggestions from spell should be shown:

image

cmp-spell uses vim builtin spelling correction, which should return:

image

However it seems like the results are being filtered to only include fuzzy matches which defeats the point of spell correcting.

code action

Hi how can I get the plugin to work with lsp code action

nmap("<a-cr>", "<cmd>lua vim.lsp.buf.code_action()<cr>")

similar to #3

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.