2024-05-08 20:26:57 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.vars) neovimIde;
|
|
|
|
in
|
|
|
|
lib.mkIf neovimIde {
|
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
extraLuaConfig =
|
2024-06-09 22:49:30 -04:00
|
|
|
# lua
|
2024-05-08 20:26:57 -04:00
|
|
|
''
|
|
|
|
vim.filetype.add({
|
2024-05-09 17:14:55 -04:00
|
|
|
pattern = { ['.*/hypr/.*%.conf'] = 'hyprlang' },
|
2024-05-08 20:26:57 -04:00
|
|
|
});
|
|
|
|
|
2024-05-09 17:14:55 -04:00
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
2024-05-08 20:26:57 -04:00
|
|
|
pattern = 'hyprlang',
|
|
|
|
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
|
|
|
|
});
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|