mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
62 lines
1.5 KiB
Nix
Executable file
62 lines
1.5 KiB
Nix
Executable file
# This is my configuration file for neovim.
|
|
# I've written it in nix for ease of use with home-manager,
|
|
# but there are several vimscript and lua files imported as well.
|
|
# If you want more help understanding or modifying these configurations,
|
|
# please submit an issue on Github or contact me on Discord 'notusknot#5622'
|
|
{ pkgs, config, ... }:
|
|
let
|
|
dusk-vim = pkgs.vimUtils.buildVimPlugin {
|
|
name = "dusk-vim";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "notusknot";
|
|
repo = "dusk-vim";
|
|
rev = "8eb71f092ebfa173a6568befbe522a56e8382756";
|
|
sha256 = "09l4hda5jnyigc2hhlirv1rc8hsnsc4zgcv4sa4br8fryi73nf4g";
|
|
};
|
|
};
|
|
|
|
|
|
in
|
|
{
|
|
enable = true;
|
|
package = pkgs.neovim-unwrapped;
|
|
plugins = with pkgs.vimPlugins; [
|
|
# File tree
|
|
nvim-web-devicons
|
|
nvim-tree-lua
|
|
# LSP
|
|
nvim-lspconfig
|
|
# Languages
|
|
vim-nix
|
|
|
|
# Eyecandy
|
|
nvim-treesitter
|
|
bufferline-nvim
|
|
galaxyline-nvim
|
|
nvim-colorizer-lua
|
|
pears-nvim
|
|
dusk-vim
|
|
|
|
# Lsp and completion
|
|
nvim-lspconfig
|
|
nvim-compe
|
|
|
|
# Telescope
|
|
telescope-nvim
|
|
|
|
# Indent lines
|
|
indent-blankline-nvim
|
|
];
|
|
extraPackages = with pkgs; [
|
|
gcc
|
|
rnix-lsp
|
|
tree-sitter
|
|
sumneko-lua-language-server
|
|
];
|
|
extraConfig = ''
|
|
luafile ${./lua}/lsp.lua
|
|
luafile ${./lua}/nvim-tree.lua
|
|
luafile ${./lua}/galaxyline.lua
|
|
luafile ${./lua}/settings.lua
|
|
'';
|
|
}
|