neoformat

This commit is contained in:
Zacharias-Brohn
2025-12-10 18:42:52 +01:00
parent 8c9d5aba7f
commit ead16ef172
9 changed files with 236 additions and 131 deletions
+11 -9
View File
@@ -2,26 +2,28 @@ local autocmd = vim.api.nvim_create_autocmd
autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id( args.data.client_id )
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client then
vim.lsp.document_color.enable(false, args.buf, { "background" })
-- require("workspace-diagnostics").populate_workspace_diagnostics(client, 0)
end
end,
})
autocmd("VimLeave", {
command = "set guicursor=a:ver25-Cursor"
command = "set guicursor=a:ver25-Cursor",
})
-- autocmd({ "CursorHold" }, {
-- callback = function()
-- vim.diagnostic.open_float(nil, { focus = false })
-- end
-- })
autocmd("BufWritePre", {
callback = function()
local ok = pcall(function()
vim.cmd "undojoin"
end)
vim.cmd "Neoformat"
end,
})
autocmd({ "InsertLeave" }, {
callback = function()
require("lint").try_lint()
end
end,
})