chore: Improve formatting

This commit is contained in:
Donovan Glover 2024-04-06 14:25:10 -04:00
parent 8671cba57a
commit 8535a06e52
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,9 +1,10 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
inherit (pkgs) fetchFromGitHub; inherit (pkgs) fetchFromGitHub vimPlugins;
inherit (pkgs.vimUtils) buildVimPlugin; inherit (pkgs.vimUtils) buildVimPlugin;
inherit (config.lib.stylix.scheme) slug; inherit (config.lib.stylix.scheme) slug;
inherit (config.xdg.userDirs) documents;
vim-nix-rummik = buildVimPlugin { vim-nix-rummik = buildVimPlugin {
pname = "vim-nix-rummik"; pname = "vim-nix-rummik";
@ -187,7 +188,7 @@ in
autocmd BufNewFile,BufRead *.mdx set filetype=markdown autocmd BufNewFile,BufRead *.mdx set filetype=markdown
''; '';
plugins = with pkgs.vimPlugins; [ plugins = with vimPlugins; [
{ {
plugin = nvim-tree-lua; plugin = nvim-tree-lua;
type = "lua"; type = "lua";
@ -235,7 +236,9 @@ in
{ {
plugin = nvim-scrollbar; plugin = nvim-scrollbar;
type = "lua"; type = "lua";
config = /* lua */ ''require("scrollbar").setup()''; config = /* lua */ ''
require("scrollbar").setup()
'';
} }
{ {
plugin = nvim-lspconfig; plugin = nvim-lspconfig;
@ -472,12 +475,16 @@ in
{ {
plugin = nvim-autopairs; plugin = nvim-autopairs;
type = "lua"; type = "lua";
config = ''require("nvim-autopairs").setup {}''; config = /* lua */ ''
require("nvim-autopairs").setup()
'';
} }
{ {
plugin = auto-save-nvim; plugin = auto-save-nvim;
type = "lua"; type = "lua";
config = ''require("auto-save").setup()''; config = /* lua */ ''
require("auto-save").setup()
'';
} }
{ {
plugin = toggleterm-nvim; plugin = toggleterm-nvim;
@ -607,7 +614,7 @@ in
workspaces = { workspaces = {
{ {
name = "", name = "",
path = "~/", path = "${documents}",
}, },
}, },
disable_frontmatter = true, disable_frontmatter = true,