use vim.env for detecting environment variables

This commit is contained in:
Sonny Bakker 2025-03-21 08:58:43 +01:00
parent 53ef5f0d54
commit 8b7ad62cff

View file

@ -1,4 +1,6 @@
local enable_formatting = os.getenv("enable_formatting") == 'true';
-- {{ ansible_managed }}
local enable_formatting = vim.env.enable_formatting == 'true';
if (enable_formatting) then
vim.api.nvim_create_autocmd('LspAttach', {