1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2025-01-01 15:39:20 +00:00

Disable diagnostics

This commit is contained in:
Mo8it 2022-04-06 21:17:03 +02:00
parent e72e92a9b9
commit 720b8dc543
4 changed files with 5 additions and 6 deletions

View file

@ -43,3 +43,6 @@ opt.linebreak = true
-- Highlight on yank
vim.cmd([[au TextYankPost * silent! lua vim.highlight.on_yank {timeout=1200}]])
-- Disable diagnostics
vim.diagnostic.disable()

View file

@ -11,7 +11,7 @@ local function format_on_save(client)
vim.cmd([[
augroup LspFormatting
autocmd! * <buffer>
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 10000)
autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync(nil, 60000)
augroup END
]])
end
@ -50,9 +50,6 @@ null_ls.setup({
null_ls.builtins.formatting.shellharden,
null_ls.builtins.formatting.shfmt,
null_ls.builtins.formatting.taplo,
--
null_ls.builtins.diagnostics.gitlint,
null_ls.builtins.diagnostics.shellcheck,
},
on_attach = format_on_save,
})

View file

@ -3,7 +3,7 @@ local gps = require("nvim-gps")
require("lualine").setup({
sections = {
lualine_a = { "filename" },
lualine_b = { "branch", "diff", "diagnostics" },
lualine_b = { "branch", "diff" },
lualine_c = { { gps.get_location, cond = gps.is_available } },
lualine_x = { "filetype" },
lualine_y = {},

View file

@ -1,5 +1,4 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
OhMyREPL = "5fb14364-9ced-5910-84b2-373655c76a03"
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"