From 48eefdaa207e63d3c2653389e7b6ec6441e4c036 Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Thu, 16 Oct 2025 18:20:56 +0200 Subject: [PATCH] nvim: add MarkdownPreview - add `.cargo/bin` to PATH --- modules/common/nushell/config.nu | 60 ------------------- modules/common/nushell/default.nix | 1 + .../nvim/lua/thegeneralist/lazy/autopairs.lua | 7 +++ .../nvim/lua/thegeneralist/lazy/markdown.lua | 14 ++--- 4 files changed, 15 insertions(+), 67 deletions(-) create mode 100644 modules/dotfiles/nvim/lua/thegeneralist/lazy/autopairs.lua diff --git a/modules/common/nushell/config.nu b/modules/common/nushell/config.nu index 6d096f0..164cd5f 100644 --- a/modules/common/nushell/config.nu +++ b/modules/common/nushell/config.nu @@ -71,66 +71,6 @@ alias rb = nh os switch . -v -- --show-trace --verbose def greeting [] { let quotes = [ "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "What is impossible for you is not impossible for me." - "Ah, Stil, I live in an apocalyptic dream." - "Greatness is a transitory experience." - "Limits exist only to be exceeded." - "I don’t follow paths. I make them." - "What crushes others fuels me." - "Ordinary is the disease. I am the cure." - "You see walls. I see doors." - "Fear is a suggestion. I ignore it." - "If it can be imagined, it can be done—faster." - "Mediocrity is the only true danger." - "I bend reality so you don’t have to." - "The impossible is just untested patience." - "Rules are advice I choose to ignore." - "Every boundary is a dare." - "I don’t wait for opportunity. I invent it." - "Pain is a fuel. Weakness is optional." - "Victory doesn’t ask permission." - "The future bends to those who act." - "Obstacles are just poorly designed stepping stones." - "Chaos is a playground." - "Legends are written in disregard for limits." - "Difficulty is the seasoning of achievement." - "Success belongs to those who steal it." - "Failure is the draft. Mastery is the publication." - "Time fears those who don’t respect it." - "I thrive where others break." - "Destiny is negotiable." - "Limits are suggestions, not laws." - "The world bends for persistence." - "I make the rules after winning." - "Every ‘no’ is a challenge waiting to be conquered." - "I don’t follow trends. I create them." - "Adversity is just another form of applause." - "Impossible is an opinion, not a fact." - "I carve paths through resistance." - "Mastery is forged, not granted." - "Chaos reveals the capable." - "The meek inherit nothing." - "I turn hesitation into fuel." - "Pain is temporary. Glory is eternal." - "I thrive in the impossible." - "The weak talk. The strong act." - "Fortune favors my audacity." - "Nothing worth having comes unchallenged." - "Limits are the invention of the timid." - "Every barrier is an invitation." - "I am the variable the universe didn’t calculate." - "Victory whispers to those who refuse to listen to fear." - "Failure teaches. I only graduate with honors." - "The extraordinary is a habit, not a gift." - "Resistance exists to prove my strength." - "Legends are crafted in defiance." - "The impossible is just another rehearsal." ] echo ($quotes | get (random int 0..(($quotes | length) - 1))) } diff --git a/modules/common/nushell/default.nix b/modules/common/nushell/default.nix index 3765a7c..0f76b41 100644 --- a/modules/common/nushell/default.nix +++ b/modules/common/nushell/default.nix @@ -83,6 +83,7 @@ in { enable = true; sessionVariables = config.environment.variables // homeArgs.config.home.sessionVariables; }; + home.sessionPath = [ "/Users/thegeneralist/.cargo/bin" ]; }) ]; } diff --git a/modules/dotfiles/nvim/lua/thegeneralist/lazy/autopairs.lua b/modules/dotfiles/nvim/lua/thegeneralist/lazy/autopairs.lua new file mode 100644 index 0000000..674b6a2 --- /dev/null +++ b/modules/dotfiles/nvim/lua/thegeneralist/lazy/autopairs.lua @@ -0,0 +1,7 @@ +return { + "windwp/nvim-autopairs", + event = "InsertEnter", + config = true, + -- use opts = {} for passing setup options + -- this is equivalent to setup({}) function +} diff --git a/modules/dotfiles/nvim/lua/thegeneralist/lazy/markdown.lua b/modules/dotfiles/nvim/lua/thegeneralist/lazy/markdown.lua index e9d7525..bb96fbc 100644 --- a/modules/dotfiles/nvim/lua/thegeneralist/lazy/markdown.lua +++ b/modules/dotfiles/nvim/lua/thegeneralist/lazy/markdown.lua @@ -1,9 +1,9 @@ return { - -- "iamcco/markdown-preview.nvim", - -- cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, - -- build = "cd app && yarn install", - -- init = function() - -- vim.g.mkdp_filetypes = { "markdown" } - -- end, - -- ft = { "markdown" }, + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + build = "cd app && yarn install", + init = function() + vim.g.mkdp_filetypes = { "markdown" } + end, + ft = { "markdown" }, }