Skip to content

mrded/nvim-lsp-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-lsp-notify

NVIM plugin to notify about LSP processes

Motivation

The motivation was to address the uncertainty that can sometimes accompany using LSP. I wanted to create a solution that would provide better visibility into the LSP's processes.

Examples

null-ls and lua-ls null-ls and rust-analyzer

Optional dependencies

Installation

Using packer.nvim

Basic setup will use vim.notify() for notifications:

use {
  'mrded/nvim-lsp-notify',
  config = function()
    require('lsp-notify').setup({})
  end
}

You can pass notify function, for example from nvim-notify:

use {
  'mrded/nvim-lsp-notify',
  requires = { 'rcarriga/nvim-notify' },
  config = function()
    require('lsp-notify').setup({
      notify = require('notify'),
    })
  end
}

Or icons to customize icons:

use {
  'mrded/nvim-lsp-notify',
  requires = { 'rcarriga/nvim-notify' },
  config = function()
    require('lsp-notify').setup({
      icons = {
        spinner = { '|', '/', '-', '\\' },      -- `= false` to disable only this icon
        done = '!'                              -- `= false` to disable only this icon
      }
    })
  end
}

Or icons = false to disable them completely:

use {
  'mrded/nvim-lsp-notify',
  requires = { 'rcarriga/nvim-notify' },
  config = function()
    require('lsp-notify').setup({
      icons = false
    })
  end
}

Credits

I am deeply grateful to the creators of nvim-notify for their invaluable contributions. Their work, specifically the implementation of LSP notifications in their usage recipes, served as the foundation for this project, which has been developed into a convenient, standalone module.

About

NVIM plugin to notify about LSP processes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages