Coder Social home page Coder Social logo

Comments (9)

yyoncho avatar yyoncho commented on August 24, 2024

The question is whether we can do better or you just like it off.

from lsp-haskell.

hellwolf avatar hellwolf commented on August 24, 2024

I'd definitely prefer the default setting that means having it on.

from lsp-haskell.

hellwolf avatar hellwolf commented on August 24, 2024

actually

(use-package lsp-haskell
  :config
  (add-hook 'lsp-after-initialize-hook
            #'(lambda ()
                (lsp--set-configuration
                 `(:haskell (:plugin (:class (:codeLensOn ,nil))))
                 ))))

didn't work :(

from lsp-haskell.

yyoncho avatar yyoncho commented on August 24, 2024

set lsp-lens-enable to nil

from lsp-haskell.

hellwolf avatar hellwolf commented on August 24, 2024

Ah, but I only want to disable the codeLens for the "class" plugin for now.

from lsp-haskell.

hellwolf avatar hellwolf commented on August 24, 2024

I think make them only expand only when clicked with a modifier key pressed could be an option?

from lsp-haskell.

michaelpj avatar michaelpj commented on August 24, 2024

Looking at the HLS issue, it seems that there already is an option, we just don't expose it in lsp-haskell. Unfortunately, we have to manually regenerate the defcustoms for all the options as new ones are added, so it just needs someone to do the work. PRs welcome!

from lsp-haskell.

hellwolf avatar hellwolf commented on August 24, 2024

we have to manually regenerate the defcustoms for all the options as new ones are added, so it just needs someone to do the work. PRs welcome!

I wouldn't mind doing the PR, but I don't know how to generate, is it using:

https://github.com/emacs-lsp/lsp-mode/blob/master/scripts/lsp-generate-settings.el

Though I'd still prefer not to disable the feature if it gets a better "UX" :)

from lsp-haskell.

michaelpj avatar michaelpj commented on August 24, 2024

We updated the config, so this should be configurable now.

from lsp-haskell.

Related Issues (20)

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.