My personal Neovim flake!
Neovim:
- Catppuccin Mocha + rainbow-delimeters
- Treesitter setup for plenty of languages
- LSP configuration for plenty of languages
- Completions and snippets (Provided by friendly-snippets)
- Telescope setup
- A Git intergrations with fugitive and git-signs
Bonus tools:
- ripgrep for faster live grepping
- fd for faster file finding
- nixfmt-rfc-style for formatting
- LSPs for Nix, Latex + text docs and Lua
To get started all you need is a system with Nix installed! If you don't have Nix installed, you shouldn't be looking at this anyway.
The actual language servers themselves aren't installed (Besides the Nix, Latex and Lua LSP's). This is intentional as ideally you should be installing the language servers within your projects devshell.
To run it once on a file just do:
nix run github:namescode/nvame -- file.txt
For use in a shell just do:
nix shell github:namescode/nvame --command $SHELL
Firstly add nvame.url = "github:namescode/nvame";
to your inputs; this will pull in the flake for use.
Then add inputs.nvame.nixosModules.nvame
to your nixosSystem modules, like this:
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
inputs.nvame.nixosModules.nvame
];
};
Finally, you can access the packages for installation from config.nvameConfigs
.
For example:
environment.systemPackages = with pkgs; [
git
hyfetch
# Installs the main nvame config
(config.nvameConfigs.mainConfig)
];
Firstly add nvame.url = "github:namescode/nvame";
to your inputs; this will pull in the flake for use.
Then add inputs.nvame.hmModules.nvame
to your nixosSystem modules, like this:
homeConfigurations.nixos = home-manager.lib.homeManagerConfigurations {
modules = [
./home.nix
inputs.nvame.hmModules.nvame
];
};
Finally, you can access the packages for installation from config.nvameConfigs
.
For example:
home.packages = with pkgs; [
git
hyfetch
# Installs the main nvame config
(config.nvameConfigs.mainConfig)
];
Firstly add nvame.url = "github:namescode/nvame";
to your inputs; this will pull in the flake for use.
Then add inputs.nvame.darwinModules.nvame
to your darwinSystem modules, like this:
darwinConfigurations.macbook = darwin.lib.darwinSystem {
modules = [
./configuration.nix
inputs.nvame.nixosModules.nvame
];
};
Finally, you can access the packages for installation from config.nvameConfigs
.
For example:
environment.systemPackages = with pkgs; [
git
hyfetch
# Installs the main nvame config
(config.nvameConfigs.mainConfig)
];
Firstly add nvame.url = "github:namescode/nvame";
to your inputs; this will pull in the flake for use.
Then, install the packages you need through inputs.nvame.packages.${system}
(Make sure to pass inputs
as an attribute)
For example:
environment.systemPackages = with pkgs; [
git
hyfetch
# Installs the main nvame config
(inputs.nvame.packages.${system}.mainConfig)
];