···11+## Nvim conf
22+33+My personal neovim config
44+55+Run via nix:
66+77+```sh
88+nix run github:isabelroses/nvim
99+```
1010+1111+### Thanks to
1212+- [nekowinston](https://github.com/nekowinston/neovim.drv), for letting me get setup
1313+- [notashelf](https://github.com/NotAShelf/neovim-flake), for giving me some good ideas
1414+- [getchoo](https://github.com/getchoo), for showing me minimalism
1515+- [vdbe](https://github.com/vdbe), for the awesome ideas
1616+- [willruggiano](https://github.com/willruggiano), for allowing this repo to work
1717+- [comfysage](https://github.com/comfysage), for actually carrying me on her back
···11+MIT License
22+33+Copyright (c) 2023 isabelroses
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
2222+
···11+if not vim.g.neovide then
22+ return
33+end
44+55+if vim.loop.os_uname().sysname == "Darwin" then
66+ vim.g.neovide_transparency = 0.6
77+ -- options only currently available on macOS
88+ vim.g.neovide_window_blurred = true
99+else
1010+ vim.g.neovide_transparency = 0.8
1111+end
···11+local M = {}
22+33+M.loaded = false
44+55+M.check = function()
66+ vim.health.start("izvim report")
77+88+ if M.loaded then
99+ vim.health.ok("izvim loaded correctly")
1010+ else
1111+ vim.health.error("izvim did not loaded correctly")
1212+ end
1313+1414+ local deps = {
1515+ "direnv", -- direnv.nvim doesn't provide a checkhealth command
1616+ "lazygit", -- there is no plugin that requires lazygit but I have a keybind to open it
1717+ }
1818+1919+ for _, dep in ipairs(deps) do
2020+ if vim.fn.executable(dep) == 1 then
2121+ vim.health.ok(dep .. " is installed")
2222+ else
2323+ vim.health.error(dep .. " is not installed")
2424+ end
2525+ end
2626+end
2727+return M
···11+-- hide my secrets
22+return {
33+ {
44+ "cloak.nvim",
55+ after = function()
66+ require("cloak").setup({
77+ enabled = true,
88+ cloak_character = "*",
99+ -- The applied highlight group (colors) on the cloaking, see `:h highlight`.
1010+ highlight_group = "Comment",
1111+ patterns = {
1212+ {
1313+ -- Match any file starting with ".env".
1414+ -- This can be a table to match multiple file patterns.
1515+ file_pattern = {
1616+ ".env",
1717+ ".env.local",
1818+ ".env.dev",
1919+ ".env.development",
2020+ "wrangler.toml",
2121+ ".dev.vars",
2222+ "secrets.yaml",
2323+ "secrets.yml",
2424+ "*.age",
2525+ },
2626+ -- Match an equals sign and any character after it.
2727+ -- This can also be a table of patterns to cloak,
2828+ -- example: cloak_pattern = { ":.+", "-.+" } for yaml files.
2929+ cloak_pattern = { ":.+", "=.+" },
3030+ },
3131+ },
3232+ })
3333+ end,
3434+ },
3535+}