Update: 2024-10-31

This commit is contained in:
2024-10-31 21:01:09 +02:00
parent 814425e4b7
commit 1f6468b827
9 changed files with 82 additions and 53 deletions

View File

@@ -37,7 +37,12 @@ vim.api.nvim_create_autocmd({ "TextYankPost" }, {
-- Format File on Save
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
callback = function()
vim.lsp.buf.format()
local file_path = vim.fs.normalize(vim.fn.expand("%:p")):lower()
local exclude_pattern = "dio"
if not string.match(file_path:lower(), exclude_pattern:lower()) then
vim.lsp.buf.format()
end
end,
})