Added neovim lazyvim Plugin. Reconfigured Nerdfonts to work again.
This commit is contained in:
@ -126,8 +126,7 @@
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
font-awesome
|
||||
#TODO reconfigure nerd fonts!!!
|
||||
#nerd-fonts
|
||||
nerd-fonts.jetbrains-mono
|
||||
meslo-lgs-nf
|
||||
];
|
||||
|
||||
@ -167,12 +166,8 @@
|
||||
environment.etc."gitconfig".text = ''
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[credentials]
|
||||
helper = store --file /etc/git-credentials
|
||||
'';
|
||||
|
||||
environment.etc."git-credentials".text = '''';
|
||||
|
||||
#So no user in the group Wheel has to input the password in order to use sudo
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
|
||||
3
home.nix
3
home.nix
@ -10,7 +10,7 @@
|
||||
inputs.zen-browser.homeModules.beta
|
||||
# or inputs.zen-browser.homeModules.twilight
|
||||
# or inputs.zen-browser.homeModules.twilight-official
|
||||
#./hyprland/hyprland-home.nix
|
||||
./neovim-home.nix
|
||||
]
|
||||
++ lib.optional hyprlandEnabled ./hyprland/hyprland-home.nix;
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
credentials.helper = "store";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
98
neovim-home.nix
Normal file
98
neovim-home.nix
Normal file
@ -0,0 +1,98 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
# ...
|
||||
extraPackages = with pkgs.vimPlugins; [
|
||||
lazy-nvim
|
||||
LazyVim
|
||||
|
||||
bufferline-nvim
|
||||
# stylua
|
||||
# ripgrep
|
||||
];
|
||||
|
||||
extraLuaConfig =
|
||||
let
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
LazyVim
|
||||
bufferline-nvim
|
||||
cmp-buffer
|
||||
cmp-nvim-lsp
|
||||
cmp-path
|
||||
cmp_luasnip
|
||||
conform-nvim
|
||||
dashboard-nvim
|
||||
dressing-nvim
|
||||
flash-nvim
|
||||
friendly-snippets
|
||||
gitsigns-nvim
|
||||
indent-blankline-nvim
|
||||
lualine-nvim
|
||||
neo-tree-nvim
|
||||
neoconf-nvim
|
||||
neodev-nvim
|
||||
noice-nvim
|
||||
nui-nvim
|
||||
nvim-cmp
|
||||
nvim-lint
|
||||
nvim-lspconfig
|
||||
nvim-notify
|
||||
nvim-spectre
|
||||
nvim-treesitter
|
||||
nvim-treesitter-context
|
||||
nvim-treesitter-textobjects
|
||||
nvim-ts-autotag
|
||||
nvim-ts-context-commentstring
|
||||
nvim-web-devicons
|
||||
persistence-nvim
|
||||
plenary-nvim
|
||||
telescope-fzf-native-nvim
|
||||
telescope-nvim
|
||||
todo-comments-nvim
|
||||
tokyonight-nvim
|
||||
trouble-nvim
|
||||
vim-illuminate
|
||||
vim-startuptime
|
||||
which-key-nvim
|
||||
{ name = "LuaSnip"; path = luasnip; }
|
||||
{ name = "catppuccin"; path = catppuccin-nvim; }
|
||||
];
|
||||
|
||||
mkEntryFromDrv = drv:
|
||||
if lib.isDerivation drv then { name = "${lib.getName drv}"; path = drv; }
|
||||
else drv;
|
||||
|
||||
lazyPath = pkgs.linkFarm "lazy-plugins" (builtins.map mkEntryFromDrv plugins);
|
||||
in
|
||||
''
|
||||
vim.opt.clipboard = "unnamedplus"
|
||||
|
||||
vim.opt.rtp:prepend("${pkgs.vimPlugins.lazy-nvim}")
|
||||
|
||||
require("lazy").setup({
|
||||
defaults = { lazy = true },
|
||||
dev = {
|
||||
path = "${lazyPath}",
|
||||
patterns = { "" },
|
||||
fallback = true,
|
||||
},
|
||||
spec = {
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", enabled = true },
|
||||
{ "williamboman/mason-lspconfig.nvim", enabled = false },
|
||||
{ "williamboman/mason.nvim", enabled = false },
|
||||
{ import = "plugins" },
|
||||
{ "nvim-treesitter/nvim-treesitter", opts = { ensure_installed = {} } },
|
||||
},
|
||||
})
|
||||
|
||||
'';
|
||||
# extraLuaConfig =
|
||||
# # lua
|
||||
# ''
|
||||
# vim.opt.clipboard = "unnamedplus"
|
||||
# vim.opt.shiftwidth = 2
|
||||
# '';
|
||||
};
|
||||
}
|
||||
32
neovim.nix
32
neovim.nix
@ -3,31 +3,13 @@
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
neovim
|
||||
#vimPlugins.LazyVim
|
||||
vimPlugins.LazyVim
|
||||
vimPlugins.lazygit-nvim
|
||||
wl-clipboard
|
||||
xclip
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
# ...
|
||||
#extraPackages = with pkgs.vimPlugins; [
|
||||
#
|
||||
# LazyVim
|
||||
#];
|
||||
|
||||
#extraLuaConfig =
|
||||
## lua
|
||||
#''
|
||||
# require("lazy").setup({
|
||||
# -- disable all update / install features
|
||||
# -- this is handled by nix
|
||||
# rocks = { enabled = false },
|
||||
# pkg = { enabled = false },
|
||||
# install = { missing = false },
|
||||
# change_detection = { enabled = false },
|
||||
# spec = {
|
||||
# -- TODO
|
||||
# },
|
||||
# })
|
||||
#'';
|
||||
};
|
||||
# programs.neovim = {
|
||||
# enable = true;
|
||||
#};
|
||||
}
|
||||
|
||||
@ -69,6 +69,7 @@
|
||||
cloudflare-warp
|
||||
ddrescue
|
||||
texliveFull #LaTeX PDF maker
|
||||
lazygit
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
|
||||
Reference in New Issue
Block a user