commit 1c12503ebf8fc60e620a2d7990aa6fefa7a6f21c Author: Nicolas Goudry Date: Mon May 27 00:58:58 2024 +0200 chore: initial commit Moved from https://github.com/nicolas-goudry/nix-config/tree/a94642d3e8eb2a82b5efff253823239ce28fc876 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..26aefe3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2024 Nicolas Goudry + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..29c6a3a --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# NixVim config + +**PERSONAL** configuration for [Neovim](https://neovim.io/) using [Nixvim](https://nix-community.github.io/nixvim/). Heavily inspired by [AstroNvim](https://astronvim.com/). + +๐Ÿšง **This is a work in progress** ๐Ÿšง diff --git a/config/colorscheme.nix b/config/colorscheme.nix new file mode 100644 index 0000000..c675a62 --- /dev/null +++ b/config/colorscheme.nix @@ -0,0 +1,13 @@ +# Use catppuccin mocha variant +{ + catppuccin = { + enable = true; + + settings = { + flavour = "mocha"; + + # Needed to keep terminal transparency, if any + transparent_background = true; + }; + }; +} diff --git a/config/keymaps.nix b/config/keymaps.nix new file mode 100644 index 0000000..e29e040 --- /dev/null +++ b/config/keymaps.nix @@ -0,0 +1,33 @@ +let + forceWrite = { + action = "silent! update! | redraw"; + options.desc = "Force write"; + }; +in +[ + { + key = "n"; + action = "enew"; + options.desc = "New file"; + } + { + inherit (forceWrite) action options; + key = ""; + } + { + inherit (forceWrite) options; + mode = [ "i" "x" ]; + key = ""; + action = "${forceWrite.action}"; + } + { + key = "|"; + action = "vsplit"; + options.desc = "Split vertically"; + } + { + key = "\\"; + action = "split"; + options.desc = "Split horizontally"; + } +] diff --git a/config/options.nix b/config/options.nix new file mode 100644 index 0000000..8e3e4bc --- /dev/null +++ b/config/options.nix @@ -0,0 +1,103 @@ +# Neovim options +# Use :options to get the list of all options +# Use :h