refactor(nvim): move stuff to lua, fix windows depending on size of win, etc

This commit is contained in:
matt1432 2024-05-08 20:26:57 -04:00
parent a7c57a6501
commit 6753c39ccd
16 changed files with 316 additions and 207 deletions
common/home/neovim/langs

View file

@ -32,7 +32,6 @@ in
'';
coc.settings = {
# Bash
bashIde.shellcheckPath = "${pkgs.shellcheck}/bin/shellcheck";
};

View file

@ -2,6 +2,7 @@
imports = [
./bash.nix
./clang.nix
./hyprlang.nix
./java.nix
./lua.nix
./markdown.nix

View 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',
});
'';
};
};
}