nixos-configs/common/home/neovim/langs/hyprlang.nix
matt1432 9b749922ea
All checks were successful
Discord / discord commits (push) Has been skipped
feat(nvim): setup ts-error-translator.nvim
2024-05-09 17:14:55 -04:00

27 lines
522 B
Nix

{
config,
lib,
...
}: let
inherit (config.vars) neovimIde;
in
lib.mkIf neovimIde {
programs = {
neovim = {
extraLuaConfig =
/*
lua
*/
''
vim.filetype.add({
pattern = { ['.*/hypr/.*%.conf'] = 'hyprlang' },
});
vim.api.nvim_create_autocmd('FileType', {
pattern = 'hyprlang',
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
});
'';
};
};
}