nixos-configs/homeManagerModules/neovim/langs/hyprlang.nix
matt1432 6c5ef370c5
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(nvim): clean up nix code
2024-12-16 17:44:17 -05:00

27 lines
520 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf;
cfg = config.programs.neovim;
in
mkIf cfg.enableIde {
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',
});
'';
};
};
}