mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-01 15:39:20 +00:00
Disable diagnostics
This commit is contained in:
parent
e72e92a9b9
commit
720b8dc543
4 changed files with 5 additions and 6 deletions
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
|
@ -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 = {},
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue