add(nvim): barbar

This commit is contained in:
Léana 江 2023-02-23 13:11:46 +01:00
parent c29bde722f
commit e74e96a4d2
4 changed files with 36 additions and 3 deletions

View file

@ -26,9 +26,6 @@ local on_attach = function(_, bufnr)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
vim.keymap.set('n', '<space>f', function() vim.lsp.buf.format { async = true } end, bufopts)
-- vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
-- vim.lsp.buf.format()
-- end, { desc = 'Format current buffer with LSP' })
end
local capabilities = vim.lsp.protocol.make_client_capabilities()