How do I view all symbols in the current file using Neovim's built-in LSP?
gO
Since Neovim 0.
gO
Since Neovim 0.
:lua vim.diagnostic.config({virtual_text = false})
Neovim's built-in diagnostic system (vim.
:lua vim.lsp.inlay_hint.enable()
Neovim 0.
gra
Since Neovim 0.
grr
Since Neovim 0.
vim.diagnostic.goto_next()
Neovim's built-in vim.
vim.lsp.buf.format()
Neovim's built-in LSP client exposes vim.
:lua require('ufo').openAllFolds()
nvim-ufo is a Neovim plugin that replaces the built-in fold system with one powered by LSP (textDocument/foldingRange) or treesitter.
:Trouble diagnostics
trouble.
require('lspconfig').pyright.setup{}
Use nvim-lspconfig to configure language servers.
:CocInstall coc-json coc-tsserver
coc.
gd / gr / <leader>rn with nvim-lspconfig
The Language Server Protocol (LSP) brings IDE-level intelligence to Neovim — go-to-definition, find references, rename symbol, and more.