Disable/Enable LSP clients for buffers.
- nvim-lspconfig: It is required.
- null-ls.nvim: It is optional.
- telescope: It is optional.
- telescope-find-pickers.nvim: It is optional. If you use telescope, it's highly recommended to install the plugin.
Read the tags. The versions follows the rules of SemVer 2.0.0.
Plug 'neovim/nvim-lspconfig'
Plug 'adoyle-h/lsp-toggle.nvim'
use { 'neovim/nvim-lspconfig' }
use { 'adoyle-h/lsp-toggle.nvim' }
call dein#add('neovim/nvim-lspconfig')
call dein#add('adoyle-h/lsp-toggle.nvim')
require('lsp-toggle').setup()
or
require('lsp-toggle').setup {
create_cmds = true, -- Whether to create user commands
telescope = true, -- Whether to load telescope extensions
}
It provides two commands:
ToggleLSP
: Disable/Enable LSP for current buffer.ToggleNullLSP
: Disable/Enable NullLS source for all buffers.
These commands use vim.ui.select
to open a select window for LSPs.
If telescope enabled, it will load two telescope extensions which named ToggleLSP
and ToggleNullLSP
.
Before opening new Issue/Discussion/PR and posting any comments, please read Contributing Guidelines.
Copyright 2022-2024 ADoyle (adoyle.h@gmail.com). Some Rights Reserved. The project is licensed under the Apache License Version 2.0.
See the LICENSE file for the specific language governing permissions and limitations under the License.
See the NOTICE file distributed with this work for additional information regarding copyright ownership.
- one.nvim: All-in-one neovim configuration framework implemented with Lua.
- telescope-extension-maker.nvim: Easy to make a telescope extension
- ad-telescope-extensions: A set of telescope extensions
- Other lua projects created by me.