toggle diagnostics

This commit is contained in:
Rikuoh Tsujitani 2023-11-20 07:05:37 +09:00
parent 8b41e98e81
commit 8834e1e717
Signed by: riq0h
GPG key ID: 010F09DEA298C717

View file

@ -337,6 +337,12 @@ local on_attach = function(client, bufnr)
end
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, { virtual_text = false })
vim.keymap.set(
'',
'<Leader>4',
require('lsp_lines').toggle,
{ desc = 'Toggle lsp_lines' }
)
require('mason').setup()
require('mason-null-ls').setup({
ensure_installed = { 'prettierd', 'rubocop', 'black', 'goimports' },