init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
--
|
||||
-- Add any additional autocmds here
|
||||
-- with `vim.api.nvim_create_autocmd`
|
||||
--
|
||||
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
||||
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
||||
-- ~/.config/nvim/lua/config/autocmds.lua
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
-- A minta: minden, ami .env-vel kezdődik (pl. .env, .env.local, .env.test)
|
||||
pattern = ".env*",
|
||||
callback = function()
|
||||
-- 1. Kikapcsoljuk a diagnosztikát az aktuális fájlban
|
||||
vim.diagnostic.enable(false, { bufnr = 0 })
|
||||
|
||||
-- Opcionális: Ha nagyon zavar a linter, a fájltípust átállíthatod 'conf'-ra.
|
||||
-- Ekkor nem lesz shell színezés, de garantáltan nem lesz hibaüzenet se.
|
||||
-- Ha szereted a színezést, ezt a sort TÖRÖLD ki:
|
||||
-- vim.bo.filetype = "conf"
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user