2024-05-08 20:26:57 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2024-08-31 19:16:06 -04:00
|
|
|
inherit (lib) mkIf;
|
2024-11-22 02:48:41 -05:00
|
|
|
|
|
|
|
cfg = config.programs.neovim;
|
2024-05-08 20:26:57 -04:00
|
|
|
in
|
2024-11-22 02:48:41 -05:00
|
|
|
mkIf cfg.enableIde {
|
2024-05-08 20:26:57 -04:00
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
extraLuaConfig =
|
2024-06-09 22:49:30 -04:00
|
|
|
# lua
|
2024-05-08 20:26:57 -04:00
|
|
|
''
|
|
|
|
vim.filetype.add({
|
2024-12-16 17:44:17 -05: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',
|
|
|
|
});
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|