The infamous windows/linux NVIM config

This commit is contained in:
inorishio
2026-02-09 16:05:53 +01:00
parent 353b462aaf
commit 1d13bc8a07
9 changed files with 350 additions and 66 deletions
+9 -9
View File
@@ -2,22 +2,22 @@ local autocmd = vim.api.nvim_create_autocmd
autocmd("LspAttach", {
callback = function(args)
local client = vim.lsp.get_client_by_id( args.data.client_id )
if client then
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client and vim.lsp.document_color and vim.lsp.document_color.enable then
vim.lsp.document_color.enable(false, args.buf, { "background" })
end
end,
})
autocmd("VimLeave", {
command = "set guicursor=a:ver25-Cursor"
command = "set guicursor=a:ver25-Cursor",
})
autocmd("BufWritePre", {
callback = function()
local ok = pcall(function()
vim.cmd "undojoin"
end)
vim.cmd "Neoformat"
end,
callback = function()
local ok = pcall(function()
vim.cmd "undojoin"
end)
vim.cmd "Neoformat"
end,
})