Giter Site home page Giter Site logo

Comments (7)

manateelazycat avatar manateelazycat commented on September 22, 2024

I guess you just need add target mode in lsp-bridge-default-mode-hooks ?

from lsp-bridge.

fktpp2022 avatar fktpp2022 commented on September 22, 2024

I can not find a good hook for fundamental modes, and generic-x modes. I am now live with following code snip:

(require 'lsp-bridge)

(define-globalized-minor-mode lsp-bridge-global-mode lsp-bridge-mode lsp-bridge-mode-on)

(defun lsp-bridge-mode-on ()
  (interactive)

  (when (and (lsp-bridge--not-mind-wave-chat-buffer)
	     (lsp-bridge--not-acm-doc-markdown-buffer))
    (lsp-bridge-mode 1)))


(lsp-bridge-global-mode t)

from lsp-bridge.

fktpp2022 avatar fktpp2022 commented on September 22, 2024

After this change, I got lsp-bridge-mode enabled every where. But when there's a mode that have a predefined language-server failed to started. Tabnine will not work either.

e.g. Say I opened a file with .sh extsion, and lsp-bridge will try to launch bash-language-server. But I don't have it, then lsp-bridge will be disabled. And I can not get completion from Tabnine in this file.

from lsp-bridge.

manateelazycat avatar manateelazycat commented on September 22, 2024

I will write some code in this weekend with Chinese time. ;)

from lsp-bridge.

manateelazycat avatar manateelazycat commented on September 22, 2024

Hi @fktpp2022

I just commit 64f3ad3 , can you update to newest version and try?

You can enable lsp-bridge-mode in any mode, and turn on option acm-enable-tabnine, TabNine and other non-lsp backend still can works even lsp server command not install.

截图 2023-10-20 21-04-36

from lsp-bridge.

manateelazycat avatar manateelazycat commented on September 22, 2024

Please re-open this issue if newest version still have problem.

from lsp-bridge.

fktpp2022 avatar fktpp2022 commented on September 22, 2024

I have to say, it works great!!!

from lsp-bridge.

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.