From b346296b930ed0c4a53a342191fa604c5d798ea7 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Mon, 26 Feb 2024 15:35:07 -0500 Subject: [PATCH] stylua --- flake.lock | 16 ++++++++-------- flake.nix | 1 + .../modules/packages/neovim/core.lua | 9 ++++++--- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index df11167..2827d4c 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ "pre-commit-hooks": "pre-commit-hooks" }, "locked": { - "lastModified": 1706018268, - "narHash": "sha256-d24+re0t8b6HYGzAPZCIJed85n23RUFXQa2yuHoW0uQ=", + "lastModified": 1708701802, + "narHash": "sha256-OvpkuB5Lx8eomwUgUT4s10fzbrDnPCtCsxOlZ63hYFI=", "owner": "cachix", "repo": "devenv", - "rev": "ad0ae333b210e31237e1fc4a7ddab71a01785add", + "rev": "fa9a708e240c6174f9fc4c6eefbc6a89ce01c350", "type": "github" }, "original": { @@ -167,12 +167,12 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1706191920, - "narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=", - "rev": "ae5c332cbb5827f6b1f02572496b141021de335f", - "revCount": 576254, + "lastModified": 1708807242, + "narHash": "sha256-sRTRkhMD4delO/hPxxi+XwLqPn8BuUq6nnj4JqLwOu0=", + "rev": "73de017ef2d18a04ac4bfd0c02650007ccb31c2a", + "revCount": 588267, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.576254%2Brev-ae5c332cbb5827f6b1f02572496b141021de335f/018d4821-953a-717b-b0f9-5a5ba6f94933/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.588267%2Brev-73de017ef2d18a04ac4bfd0c02650007ccb31c2a/018de0dc-c3da-7dcc-a5e5-9c24df9f185d/source.tar.gz" }, "original": { "type": "tarball", diff --git a/flake.nix b/flake.nix index 2890cbc..fc1077e 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,7 @@ pre-commit.hooks = { alejandra.enable = true; black.enable = true; + stylua.enable = true; shellcheck.enable = true; shfmt.enable = true; taplo.enable = true; diff --git a/nix/home-manager/modules/packages/neovim/core.lua b/nix/home-manager/modules/packages/neovim/core.lua index 602a03a..99f23e4 100644 --- a/nix/home-manager/modules/packages/neovim/core.lua +++ b/nix/home-manager/modules/packages/neovim/core.lua @@ -1,5 +1,6 @@ vim.o.expandtab = true vim.o.foldlevel = 2 +vim.o.guifont = "Iosevka Custom,Apple Color Emoji,Noto Color Emoji:h14" vim.o.hidden = true vim.o.ignorecase = true vim.o.inccommand = "split" @@ -25,8 +26,10 @@ vim.o.updatetime = 500 vim.o.wildmenu = true vim.o.wildmode = "list:longest,full" -vim.api.nvim_create_autocmd('TextYankPost', { - callback = function() vim.highlight.on_yank() end +vim.api.nvim_create_autocmd("TextYankPost", { + callback = function() + vim.highlight.on_yank() + end, }) -require('gitlinker').setup() +require("gitlinker").setup()