use vim.env for detecting environment variables
This commit is contained in:
parent
53ef5f0d54
commit
8b7ad62cff
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
if (enable_formatting) then
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue