- Notifications
You must be signed in to change notification settings - Fork28
elythh/nixvim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
My Neovim config using nixvim.
Note
The colorscheme in these screenshots areparadise and radium
To start configuring, just add or modify the nix files in./modules/nixvim
.Every folder in theplug
directory will be imported automatically.
Warning
Some of them might be disabled, this is every plugins defined and configured in the repo.
List of plugins
- colorscheme/: Theme configuration. Current one isparadise
- completion
- avante: Cursor AI at home
- copilot-cmp: Completion support for GitHub copilot
- lspkind: vscode-like pictograms for neovim lsp completion items
- nvim-cmp: Completion plugin for nvim + emoji support
- schemastore.nvim: Schemastore integration
- git
- lsp
- snacks
- set of utilities
- snippet
- luasnip: Snippet engine in lua
- statusline
- lualine: Status line for neovim
- treesitter
- treesitter-context: Show code context
- treesitter-textobjects: Allow cool text manipulation thanks to TS
- treesitter: Parser generator tool to build a syntax tree of the current buffer
- ui
- bufferline: VSCode like line for buffers -> replaced by mini.tabline
- dressing: Better vim ui interfaces
- fzf-lua: fzf-lua is my new best friend
- noice: Better nvim UI
- nvim-notify: Notification manager
- smart-splits: Better split management
- telescope: Best plugin ever ? Nevermind
- utils
- comment: Quickly toggle comments
- comment-box: Comments utilities
- markview: Yet another markdown previewer for neovim
- mini: Cool neovim utilities, currently using ai, notify, surround, diff, tabline, trailspace, icons, indentscope and pairs
- obsidian: Obsidian integration for nvim
- spectre: Search and replace
- typr: Typing practice
- ufo: Folding plugin
- undotree: Undo history visualizer
To test your configuration simply run the following command
nix run .
If you have nix installed, you can directly run my config from anywhere
You can try running mine with:
nix run'github:elythh/nixvim'
Thisnixvim
flake will output a derivation that you can easily includein eitherhome.packages
forhome-manager
, orenvironment.systemPackages
forNixOS
. Or whatever happens with darwin?
You can add mynixvim
configuration as an input to yourNixOS
configuration like:
{inputs={nixvim.url="github:elythh/nixvim";};}
With the input added you can reference it directly.
{inputs,system, ...}:{# NixOSenvironment.systemPackages=[inputs.nixvim.packages.${pkgs.system}.default];# home-managerhome.packages=[inputs.nixvim.packages.${pkgs.system}.default];}
The binary built bynixvim
is already named asnvim
so you can call it justlike you normally would.
Another method is to overlay your custom build overneovim
fromnixpkgs
.
This method is less straight-forward but allows you to installneovim
likeyou normally would. With this method you would just installneovim
in yourconfiguration (home.packages = with pkgs; [ neovim ]
), but you replaceneovim
inpkgs
with your derivation fromnixvim
.
{pkgs=importinputs.nixpkgs{overlays=[(final:prev:{neovim=inputs.nixvim.packages.${pkgs.system}.default;})];}}
You can just straight up alias something likenix run 'github:elythh/nixvim'
tonvim
.
If you want to extend this configuration is your own NixOS config, you can do so usingextend
. Seehere for more info.
Example for overwriting the theme
{inputs,config,lib, ...}:letset-custom-theme-module={theme=lib.mkForce"${config.theme}";colorschemes.base16={colorscheme=lib.mkForce{inherit(config.lib.stylix.colors.withHashtag)base00base01base02base03base04base05base06base07base08base09base0Abase0Bbase0Cbase0Dbase0Ebase0F;};};};inherit(inputs.nixvim.nixvimConfigurations."x86_64-linux")nixvim;nixvimExtended=nixvim.extendModules{modules=[set-custom-theme-module];};elythvim=nixvimExtended.config.build.package;in{home.packages=[elythvim];}
- khaneliman for repo structure and some plugins configurations
- yavko for the logo
- nixvim and all their maintainers/contributors
About
❄️ my neovim config using nixvim
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.