Giter VIP home page Giter VIP logo

fidget.nvim's Introduction

fidget.nvim

Standalone UI for nvim-lsp progress. Eye candy for the impatient.

fidget.nvim demo

Why?

The goals of this plugin are:

  • to provide a UI for nvim-lsp's progress handler.
  • to be easy to configure
  • to stay out of the way of other plugins (in particular status lines)

The language server protocol (LSP) defines an endpoint for servers to report their progress while performing work. This endpoint is supported by Neovim's builtin LSP client, but only a handful of plugins (that I'm aware of) make use of this feature. Those that do typically report progress in the status line, where space is at a premium and the layout is not well-suited to display the progress of concurrent tasks coming from multiple LSP servers. This approach also made status line configuration more complicated.

I wanted be able to see the progress reported by LSP servers without involving the status line. Who doesn't love a little bit of eye candy?

Requirements

Having a working nvim-lsp setup is not technically necessary to setup the plugin, but it won't do anything without a source of progress notifications.

For an up-to-date list of LSP servers this plugin is known to work with, see this pinned issue.

Quickstart

Install this plugin using your favorite plugin manager. For example, using vim-plug:

Plug 'j-hui/fidget.nvim'

Make sure the plugin installed (e.g., run :PlugInstall if using vim-plug). After the plugin is loaded (e.g., after plug#end() for vim-plug), call its setup function (in Lua):

require"fidget".setup{}

See the documentation for configuration options.

Acknowledgements and Alternatives

This plugin takes inspiration and borrows code from arkav/lualine-lsp-progress.

Fidget spinner designs were adapted from the npm package sindresorhus/cli-spinners.

nvim-lua/lsp-status.nvim also supports showing progress text, though it requires some configuration to integrate that into their status line.

neoclide/coc.nvim provides a nice LSP progress UI in the status line, which first inspired my desire to have this feature for nvim-lsp.

fidget.nvim's People

Contributors

akinsho avatar augustocdias avatar hiphish avatar j-hui avatar levouh avatar matze avatar valodim avatar wookayin 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.