feat(programs/neovim): we getchoo. neovim. wrapper.
This commit is contained in:
parent
0c69af81cc
commit
611371b56f
5 changed files with 66 additions and 34 deletions
|
@ -1,34 +1,45 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
hm.programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraLuaConfig = builtins.readFile ./init.lua;
|
||||
pkgs,
|
||||
getchvim,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
inherit (getchvim.packages.${system}.getchvim) makeNeovimWrapper;
|
||||
in
|
||||
{
|
||||
environment = {
|
||||
variables.EDITOR = "nvim";
|
||||
systemPackages = [
|
||||
(makeNeovimWrapper {
|
||||
pname = "ukuvim";
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
lua5_1
|
||||
nixfmt-rfc-style
|
||||
tree-sitter
|
||||
];
|
||||
luaRc = ./init.lua;
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
barbar-nvim
|
||||
catppuccin-nvim
|
||||
cmp-async-path
|
||||
cmp-buffer
|
||||
cmp-nvim-lsp
|
||||
direnv-vim
|
||||
fidget-nvim
|
||||
gitsigns-nvim
|
||||
lsp-format-nvim
|
||||
lualine-nvim
|
||||
neo-tree-nvim
|
||||
nvim-autopairs
|
||||
nvim-cmp
|
||||
nvim-lspconfig
|
||||
nvim-treesitter.withAllGrammars
|
||||
nvim-web-devicons # for lualine
|
||||
vim-wakatime
|
||||
runtimePrograms = with pkgs; [
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
|
||||
vimPluginPackages = with pkgs.vimPlugins; [
|
||||
barbar-nvim
|
||||
catppuccin-nvim
|
||||
cmp-async-path
|
||||
cmp-buffer
|
||||
cmp-nvim-lsp
|
||||
direnv-vim
|
||||
fidget-nvim
|
||||
gitsigns-nvim
|
||||
lsp-format-nvim
|
||||
lualine-nvim
|
||||
neo-tree-nvim
|
||||
nvim-autopairs
|
||||
nvim-cmp
|
||||
nvim-lspconfig
|
||||
nvim-treesitter.withAllGrammars
|
||||
nvim-web-devicons # for lualine
|
||||
vim-wakatime
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue