Skip to content

Commit

Permalink
feat(treefmt): add
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-ie committed Dec 29, 2024
1 parent 0c69860 commit ba523e8
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 35 deletions.
1 change: 0 additions & 1 deletion LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ 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.

28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# xnixvim

My nixvim (nixified neovim) config!

Nixvim is an amazing project that brings nix to neovim. You can find out more on the [nixvim repository](https://github.com/nix-community/nixvim). It makes running neovim with your complete config on alien systems easy, consistent, and fast! Try this command to run _my_ neovim configuration:

```sh
nix run github:xav-ie/xnixvim
```

Basically, if you have `nix` installed, you can run this configuation!

I am still actively re-organizing this repository, so feel free to just poke around.

You might also enjoy [my dotfiles](https://github.com/xav-ie/dots)!

## TODO

- [ ] CI to automatically run and take screenshot
- [x] CI
- [x] Fast CI
- [ ] Screenshot with CI
- [ ] separate theme out and share
- [ ] local completions
- [ ] snippets
- [ ] better large file support
- [ ] proper spelling and dictionary support to add new words
- [ ] org concealment
26 changes: 0 additions & 26 deletions README.org

This file was deleted.

46 changes: 39 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 23 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
nixvim.url = "github:nix-community/nixvim";
treefmt-nix.url = "github:numtide/treefmt-nix";
# neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";

# vendored
Expand Down Expand Up @@ -59,6 +60,10 @@
"x86_64-linux"
];

imports = [
inputs.treefmt-nix.flakeModule
];

perSystem =
{ pkgs, system, ... }:
let
Expand All @@ -84,7 +89,24 @@
# TODO: add `nix run github:fzakaria/nix-auto-follow -- -c`
};

formatter = pkgs.nixfmt-rfc-style;
# https://flake.parts/options/treefmt-nix.html#options
treefmt = {
projectRootFile = "./flake.nix";
programs = {
deadnix.enable = true;
nixfmt.enable = true;
stylua.enable = true;
prettier.enable = true;
};
settings.global.excludes = [
# I could not find formatters for these:
"Makefile"
".git-blame-ignore-revs"
];

};

# formatter = pkgs.nixfmt-rfc-style;

packages = {
# Lets you run `nix run .` to start nixvim
Expand Down

0 comments on commit ba523e8

Please sign in to comment.