Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working, how to debug? #4

Closed
ktasper opened this issue Jun 10, 2024 · 3 comments
Closed

Plugin not working, how to debug? #4

ktasper opened this issue Jun 10, 2024 · 3 comments

Comments

@ktasper
Copy link

ktasper commented Jun 10, 2024

Hey,

First of all, this plugin looks amazing, its just what I am after. However I am having issues getting it to work.

This is how I am loading it via lazy

return {
  {
    'ravibrock/spellwarn.nvim',
    config = function()
      require('spellwarn').setup {

        event = { -- event(s) to refresh diagnostics on
          'CursorHold',
          'InsertLeave',
          'TextChanged',
          'TextChangedI',
          'TextChangedP',
          'TextChangedT',
        },
        ft_config = { -- spellcheck method: "cursor", "iter", or boolean
          alpha = false,
          help = false,
          lazy = false,
          lspinfo = false,
          mason = false,
        },
        ft_default = true, -- default option for unspecified filetypes
        max_file_size = nil, -- maximum file size to check in lines (nil for no limit)
        severity = { -- severity for each spelling error type (false to disable diagnostics for that type)
          spellbad = 'WARN',
          spellcap = 'HINT',
          spelllocal = 'HINT',
          spellrare = 'INFO',
        },
        prefix = 'possible misspelling(s): ', -- prefix for each diagnostic message
      }
    end,
  },
}

Yet when I do :Spellwarn enable nothing happens. For example

        -- heello
``` Does not show a warning, what can I do to debug this? I don't mind writing some docs once I understand what I am doing wrong.. Thanks.
@ravibrock
Copy link
Owner

That config snippet works for me. Did you set spell?

@ktasper
Copy link
Author

ktasper commented Jun 10, 2024

I did not... after set spell it works. Strange I thought I had that set already, but apparently not. Maybe adding that to the README might help new users like myself ?

Thanks!

@ktasper ktasper closed this as completed Jun 10, 2024
@ravibrock
Copy link
Owner

Sure, I can add a note about that. Glad I could help.

ravibrock added a commit that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants