Coder Social home page Coder Social logo

lsp-biome's Introduction

lsp-biome

lsp-mode Client for Biome

Installation

To integrate lsp-biome into your Emacs setup, you can take either:

  1. Clone this repo, add the lsp-biome.el file to your Emacs load-path.

    (add-to-list 'load-path "/path/to/lsp-biome/")

    Replace "/path/to/lsp-biome/" with the actual path to the lsp-biome directory.

  2. Alternatively, if you're using a package manager like use-package with quelpa, add the following configuration:

    (use-package lsp-biome
        :quelpa (lsp-biome :fetcher github :repo "cxa/lsp-biome"))

Configuration

Customize the behavior of lsp-biome using the following configuration options:

  • lsp-biome-active-file-types: File types that lsp-biome should activate. The default is:
    (list (rx "." (or "tsx" "jsx"
                      "ts" "js"
                      "mts" "mjs"
                      "cts" "cjs"
                      "json" "jsonc")
              eos)
    
  • lsp-biome-organize-imports-on-save: Enable/disable automatic organization of imports on save. The default is nil.
  • lsp-biome-autofix-on-save: Enable/disable automatic fixes on save. The default is nil.
  • lsp-biome-format-on-save: Enable/disable automatic formatting on save. The default is nil.

Commands

Explore the following commands provided by lsp-biome:

  • lsp-biome-organize-imports: Organize imports in the current buffer. Note: This overrides lsp-organize-imports under lsp-biome, and they are equivalent.
  • lsp-biome-fix-all: Apply automatic code fixes in current buffer.

Notice

Please note that lsp-biome only works with projects that have biome installed locally (a.k.a node_modules inside project).

lsp-biome's People

Contributors

cxa avatar dywedir avatar kisaragi-hiu avatar

Watchers

 avatar

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.