vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) -- this code is run every time we attach an LSP end, }) vim.api.nvim_create_autocmd("LspDetach", { callback = function(args) -- this code runs every time a buffer detaches from an LSP end, }) -- vim.lsp.set_log_level(“DEBUG”)