This commit is contained in:
parent
a7c57a6501
commit
6753c39ccd
16 changed files with 316 additions and 207 deletions
common/home/neovim/langs
|
@ -32,7 +32,6 @@ in
|
|||
'';
|
||||
|
||||
coc.settings = {
|
||||
# Bash
|
||||
bashIde.shellcheckPath = "${pkgs.shellcheck}/bin/shellcheck";
|
||||
};
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./bash.nix
|
||||
./clang.nix
|
||||
./hyprlang.nix
|
||||
./java.nix
|
||||
./lua.nix
|
||||
./markdown.nix
|
||||
|
|
27
common/home/neovim/langs/hyprlang.nix
Normal file
27
common/home/neovim/langs/hyprlang.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
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',
|
||||
});
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue