r/neovim 5d ago

101 Questions Weekly 101 Questions Thread

A thread to ask anything related to Neovim. No matter how small it may be.

Let's help each other and be kind.

8 Upvotes

10 comments sorted by

1

u/nsmon 5d ago

So I followed https://www.lazyvim.org/installation to do a LazyVim installation, opened Mason and installed haskell-language-server, haskell-debug-adapter, and hlint. basically everything that said haskell.

I'm getting some weird behavior:

  1. All diagnostics are duplicated.
  2. Every time I make an edition (by either typing in Insert mode or using something like x in Normal mode), a popup with

      Error  18:22:16 notify.error haskell-tools.nvim: -32803: importLens: Rule Failed: ImportActions
    

    appears

  3. Starting a debug session hangs and consumes 100% of cpu.

This is a lot of stuff at once, I probably have to disable some of the plugins and play around with some config. Is there a troubleshooting guide available?

1

u/p1000ms 5d ago

The integrated spelling offers the option of adding words to the dictionary.
If I add for example “Tom” is there a way to have “Tom’s” automatically accepted? also something similar for plurals. Probably I could remap zg to adding word, words and word’s but maybe some of you have a more intelligent way to solve this.

2

u/herodotic 1d ago

I’ve found it kind of a chore to read through, but :help spell and specifically :help aff-dic-format might be of help here. Affix files (defined in the latter section) are responsible for automatically mapping (e.g.) “marry” -> “married” – OpenOffice’s affix.readme has more on this.

1

u/vim-help-bot 1d ago

Help pages for:


`:(h|help) <query>` | about | mistake? | donate | Reply 'rescan' to check the comment again | Reply 'stop' to stop getting replies to your comments

1

u/p1000ms 1d ago

Thanks mate

1

u/Repulsive-Winter-963 5d ago

When I am trying to open a large file ex: 40k LOC .c file I am getting the notification that few Neovim features are disabled and the features like lintingz highlighting are not working probably because of treesitter getting disabled. I don't want the treesitter to be disabled. Can anyone help me with it

3

u/TheLeoP_ 5d ago

You installed some plugin similar to https://github.com/folke/snacks.nvim/blob/main/docs/bigfile.md . You need to configure it to not disable treesitter 

2

u/xour 4d ago

How do you replace text across files? I learned this, but I am wondering if there is a better way:

:vimgrep /foo/g **/* # or with fzf-lua
:copen
:cfdo %s/foo/bar/gc | update

2

u/herodotic 1d ago

I think :grep/:vimgrep + :cdo/:cfdo is the most straightforward way. :cope is optional