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

How to disable fold/unfold suggestions? #510

Closed
mrkkrp opened this issue Oct 17, 2020 · 3 comments
Closed

How to disable fold/unfold suggestions? #510

mrkkrp opened this issue Oct 17, 2020 · 3 comments
Labels
component: hls-retrie-plugin type: enhancement New feature or request type: support User support tickets, questions, help with setup etc.

Comments

@mrkkrp
Copy link

mrkkrp commented Oct 17, 2020

I have noticed that now there are code actions that propose to fold/unfold functions. They do not work and are very annoying. How can I disable this plugin?

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools

haskell-language-server version: 0.4.0.0 (GHC: 8.8.4) (PATH: /nix/store/gif7ck91xlm2kxchbwa87v6gf440b9zf-haskell-language-server-0.4.0.0/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:          3.2.0.0
stack:          2.3.3
ghc:            Not found

Editor: emacs with stack.

@jneira jneira added type: support User support tickets, questions, help with setup etc. type: enhancement New feature or request labels Oct 18, 2020
@jneira
Copy link
Member

jneira commented Feb 24, 2021

fold/unfold functions comes from the splice plugin?
In any case we can disable plugins per feature and type so adding in the proper lsp config configuration for emacs:

{
    "haskell": {
        "plugin" : {
            "retrie" : {
                "codeActionsOn" : false
            }
        }
    }
}

You can replace splice with the actual plugin if it is not generating the fold/unfold, all plugins are listed here
A working configuration disabling features in emacss here

@pepeiborra
Copy link
Collaborator

This is actually the retrie plugin, not the splice plugin

@jneira
Copy link
Member

jneira commented Feb 24, 2021

thanks, correcting my previous comment to set retrie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-retrie-plugin type: enhancement New feature or request type: support User support tickets, questions, help with setup etc.
Projects
None yet
Development

No branches or pull requests

4 participants