Code Monkey home page Code Monkey logo

lsp-command's Introduction

lsp-command

Command interface for neovim LSP.

Provides full access to LSP features with a single :Lsp command. To give few examples, instead of :lua vim.lsp.buf.workspace_symbol('foo'), you can simply write :Lsp find foo. To format a range of lines, make a visual selection and write :Lsp format (or abbreviate it to just :Lsp f). lspconfig commands are now subcommands for :Lsp: :LspInfo is now :Lsp info/:Lsp?, :LspStart is :Lsp start etc.

Completion for :Lsp command is contextual. Only completions valid in the current context are suggested. That is, if the current buffer is not attached to any server, the only completions will be info, start, stop, restart. If buffer is attached, only actions supported by the attached language server are suggested.

Custom commands in vim have to start with an uppercase letter, but this plugin goes around it by defining a basic command line abbreviation, or an alias, from the lowercase :lsp. This means all of the examples above can be also written without capitalizing the first letter: :lsp find foo, :lsp format, :lsp info etc.

The interface is not final. Command names, their arguments and how they can be abbreviated can change at any time.

Requires neovim/lspconfig.

Usage

:h :Lsp

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.