mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Added newton config
This commit is contained in:
parent
f3cdf9d3e2
commit
736c627795
13 changed files with 1030 additions and 8 deletions
72
home-manager-modules/neovim/default.nix
Normal file
72
home-manager-modules/neovim/default.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.luj.programs.neovim;
|
||||
dusk-vim = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "dusk-vim";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "notusknot";
|
||||
repo = "dusk-vim";
|
||||
rev = "8eb71f092ebfa173a6568befbe522a56e8382756";
|
||||
sha256 = "09l4hda5jnyigc2hhlirv1rc8hsnsc4zgcv4sa4br8fryi73nf4g";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.luj.programs.neovim = {
|
||||
enable = mkEnableOption "activate neovim program";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable{
|
||||
programs.neovim = {
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue