Built-in LSP Client
Native Language Server Protocol support baked right into the core. No plugin required. Configure any language server with a few lines of Lua and get completion, hover docs, go-to-definition, diagnostics, code actions, rename, and formatting — for any language that has an LSP server.
require("lspconfig").tsserver.setup({
on_attach = function(client, bufnr)
vim.keymap.set("n", "gd", vim.lsp.buf.definition, { buffer = bufnr })
end,
})