toggle diagnostics
This commit is contained in:
parent
8b41e98e81
commit
8834e1e717
1 changed files with 6 additions and 0 deletions
6
init.lua
6
init.lua
|
@ -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' },
|
||||
|
|
Loading…
Reference in a new issue