chore: apply nixvim updates

This commit is contained in:
oddlama 2024-03-11 20:41:28 +01:00
parent 1b0934b565
commit e9fbbb9c7d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 316 additions and 232 deletions

View file

@ -51,26 +51,34 @@
{
event = ["BufEnter" "BufWinEnter"];
pattern = ["term://*"];
callback.__raw = ''
function()
vim.bo.number = false
end
'';
callback.__raw =
/*
lua
*/
''
function()
vim.bo.number = false
end
'';
}
{
event = ["WinEnter"];
pattern = ["*"];
callback.__raw = ''
function()
pcall(function()
if vim.bo.buftype == "nofile" or vim.bo.buftype == "help" then
vim.cmd "DisableWhitespace"
else
vim.cmd "EnableWhitespace"
end
end)
end
'';
callback.__raw =
/*
lua
*/
''
function()
pcall(function()
if vim.bo.buftype == "nofile" or vim.bo.buftype == "help" then
vim.cmd "DisableWhitespace"
else
vim.cmd "EnableWhitespace"
end
end)
end
'';
}
];