[add] nvim markdown preview and update

This commit is contained in:
Evan Reichard 2024-01-17 10:17:22 -05:00
parent 98eb00007c
commit 750b790aae
3 changed files with 11 additions and 27 deletions

View File

@ -4,11 +4,11 @@
```bash ```bash
# Update System Channels # Update System Channels
sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.05-darwin nixpkgs sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.11-darwin nixpkgs
sudo nix-channel --update sudo nix-channel --update
# Update Home Manager # Update Home Manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
nix-channel --update nix-channel --update
# Build Home Manager # Build Home Manager

View File

@ -20,7 +20,7 @@ in
# Home Manager Config # Home Manager Config
home.username = "evanreichard"; home.username = "evanreichard";
home.homeDirectory = "/Users/evanreichard"; home.homeDirectory = "/Users/evanreichard";
home.stateVersion = "23.05"; home.stateVersion = "23.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
# Global Packages # Global Packages
@ -46,6 +46,12 @@ in
programs.jq.enable = true; programs.jq.enable = true;
programs.pandoc.enable = true; programs.pandoc.enable = true;
# Enable Flakes & Commands
nix = {
package = pkgs.nix;
extraOptions = ''experimental-features = nix-command flakes'';
};
# SQLite Configuration # SQLite Configuration
home.file.".sqliterc".text = '' home.file.".sqliterc".text = ''
.headers on .headers on

View File

@ -11,7 +11,6 @@ in
withPython3 = true; withPython3 = true;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
# ------------------ # ------------------
# --- Completion --- # --- Completion ---
# ------------------ # ------------------
@ -33,6 +32,7 @@ in
comment-nvim # Code Comments comment-nvim # Code Comments
diffview-nvim # Diff View diffview-nvim # Diff View
leap-nvim # Quick Movement leap-nvim # Quick Movement
markdown-preview-nvim # Markdown Preview
neo-tree-nvim # File Explorer neo-tree-nvim # File Explorer
null-ls-nvim # Formatters null-ls-nvim # Formatters
numb-nvim # Peek / Jump to Lines numb-nvim # Peek / Jump to Lines
@ -61,7 +61,7 @@ in
# ----- Silicon ---- # ----- Silicon ----
# ------------------ # ------------------
( (
pkgs.vimUtils.buildVimPluginFrom2Nix { pkgs.vimUtils.buildVimPlugin {
pname = "silicon.lua"; pname = "silicon.lua";
version = "2022-12-03"; version = "2022-12-03";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
@ -73,28 +73,9 @@ in
meta.homepage = "https://github.com/mhanberg/silicon.lua/"; meta.homepage = "https://github.com/mhanberg/silicon.lua/";
} }
) )
# ------------------
# ------ Duck ------
# ------------------
# (
# pkgs.vimUtils.buildVimPluginFrom2Nix {
# pname = "duck.nvim";
# version = "2022-12-06";
# src = pkgs.fetchFromGitHub {
# owner = "tamton-aquib";
# repo = "duck.nvim";
# rev = "b1a3b4e52eec886bf4ce5ed692a2162d504d9632";
# sha256 = "0clc9s175mjzrkcjmwhl60fycdxgn24wkhcggaw1gsfspnlizr8z";
# };
# meta.homepage = "https://github.com/tamton-aquib/duck.nvim/";
# }
# )
]; ];
extraPackages = with pkgs; [ extraPackages = with pkgs; [
# Telescope Dependencies # Telescope Dependencies
ripgrep ripgrep
fd fd
@ -116,7 +97,6 @@ in
# Silicon # Silicon
silicon silicon
]; ];
extraConfig = ":luafile ~/.config/nvim/lua/init.lua"; extraConfig = ":luafile ~/.config/nvim/lua/init.lua";
@ -124,7 +104,6 @@ in
xdg.configFile = { xdg.configFile = {
# Copy Configuration # Copy Configuration
nvim = { nvim = {
source = ./config; source = ./config;
@ -141,6 +120,5 @@ in
} }
return nix_vars return nix_vars
''; '';
}; };
} }