From 8df552d87e718d88ead4b69d9f871d6f55a8d82d Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Wed, 26 Feb 2025 00:31:36 -0800 Subject: [PATCH 1/4] add jupyter plugins --- README.md | 8 ++++++-- dot_config/nvim/lua/plugins/jupytext.lua | 12 ++++++++++++ dot_config/nvim/lua/plugins/plugins.lua | 3 +++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 dot_config/nvim/lua/plugins/jupytext.lua diff --git a/README.md b/README.md index d20f39b..f2c48f6 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,13 @@ This repository contains my set of personal dotfiles managed by [chezmoi](https: - On Linux, `glibc` >= 2.17 and kernel >= 3.2 (required by Rust and some other `conda` packages) - On macOS, any version officially supported by Apple (for Homebrew) -To install use: +To install on Linux use: ``` -sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply danielnachun +sh -c "$(curl -fsLS get.chezmoi.io | sed -e 's/${GOOS_EXTRA}_${arch}/-musl_${arch}/')" -- init --apply danielnachun +``` +To install on macOS use: +``` +sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply danielnachun ``` which will automatically download a pre-built `chezmoi` binary for your platform and clone the dotfiles in this repo into the correct locations. diff --git a/dot_config/nvim/lua/plugins/jupytext.lua b/dot_config/nvim/lua/plugins/jupytext.lua new file mode 100644 index 0000000..1dcdd06 --- /dev/null +++ b/dot_config/nvim/lua/plugins/jupytext.lua @@ -0,0 +1,12 @@ +return { + "GCBallesteros/jupytext.nvim", + config = function() + require("jupytext").setup({ + style = "markdown", + output_extension = "md", + force_ft = "markdown", + }) + end, + -- Depending on your nvim distro or config you may need to make the loading not lazy + lazy=false, +} diff --git a/dot_config/nvim/lua/plugins/plugins.lua b/dot_config/nvim/lua/plugins/plugins.lua index 7d2c600..328c7d5 100644 --- a/dot_config/nvim/lua/plugins/plugins.lua +++ b/dot_config/nvim/lua/plugins/plugins.lua @@ -39,4 +39,7 @@ return { { "christoomey/vim-system-copy" }, { "ojroques/vim-oscyank" }, { "smoka7/multicursors.nvim" }, + { "GCBallesteros/NotebookNavigator.nvim" }, + { "GCBallesteros/jupytext.nvim" }, + { "benlubas/molten-nvim" } } From 23b9e865ded6514d692a6ffb19e353df07f197fb Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Wed, 26 Feb 2025 18:43:45 -0800 Subject: [PATCH 2/4] add jupyter plugins --- dot_config/nvim/lua/plugins/image.lua | 10 ++++++++++ dot_config/nvim/lua/plugins/plugins.lua | 7 ++----- dot_config/ranger/rc.conf | 4 ++-- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 dot_config/nvim/lua/plugins/image.lua diff --git a/dot_config/nvim/lua/plugins/image.lua b/dot_config/nvim/lua/plugins/image.lua new file mode 100644 index 0000000..ba24225 --- /dev/null +++ b/dot_config/nvim/lua/plugins/image.lua @@ -0,0 +1,10 @@ +return { + "3rd/image.nvim", + build = false, + opts = function(_, opts) + setup = { + backend = "ueberzugpp", + processor = "magick_cli" + } + end +} diff --git a/dot_config/nvim/lua/plugins/plugins.lua b/dot_config/nvim/lua/plugins/plugins.lua index 328c7d5..198813e 100644 --- a/dot_config/nvim/lua/plugins/plugins.lua +++ b/dot_config/nvim/lua/plugins/plugins.lua @@ -11,7 +11,6 @@ return { { "kylechui/nvim-surround" }, { "onsails/lspkind.nvim" }, -- 'andersevenrud/cmp-tmux', - -- 'numToStr/Comment.nvim', -- 'nvim-tree/nvim-tree.lua', { "kevinhwang91/rnvimr" }, -- 'stevearc/resession.nvim', @@ -26,13 +25,10 @@ return { { "chrisbra/NrrwRgn" }, { "kevinhwang91/promise-async" }, --'max397574/better-escape.nvim', - -- { "phaazon/hop.nvim" }, --'SmiteshP/nvim-navbuddy' { "Vigemus/iron.nvim" }, { "akinsho/toggleterm.nvim" }, { "folke/flash.nvim" }, - -- "hrsh7th/cmp-vsnip", - -- "hrsh7th/vim-vsnip", --'s1n7ax/nvim-window-picker', --'mrjones2014/smart-splits.nvim' { "WhoIsSethDaniel/toggle-lsp-diagnostics.nvim" }, @@ -41,5 +37,6 @@ return { { "smoka7/multicursors.nvim" }, { "GCBallesteros/NotebookNavigator.nvim" }, { "GCBallesteros/jupytext.nvim" }, - { "benlubas/molten-nvim" } + { "benlubas/molten-nvim" }, + { "3rd/image.nvim"} } diff --git a/dot_config/ranger/rc.conf b/dot_config/ranger/rc.conf index e3b4035..bf2e369 100644 --- a/dot_config/ranger/rc.conf +++ b/dot_config/ranger/rc.conf @@ -66,7 +66,7 @@ set vcs_backend_hg disabled set vcs_backend_bzr disabled # Use one of the supported image preview protocols -set preview_images false +set preview_images true # Set the preview image method. Supported methods: # @@ -87,7 +87,7 @@ set preview_images false # * urxvt-full: # The same as urxvt but utilizing not only the preview pane but the # whole terminal window. -set preview_images_method w3m +set preview_images_method iterm2 # Use a unicode "..." character to mark cut-off filenames? set unicode_ellipsis false From 055ed525f123207eb04d3eb9eb8886c74e26373d Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Wed, 26 Feb 2025 18:54:00 -0800 Subject: [PATCH 3/4] undo fix --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f2c48f6..d20f39b 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,9 @@ This repository contains my set of personal dotfiles managed by [chezmoi](https: - On Linux, `glibc` >= 2.17 and kernel >= 3.2 (required by Rust and some other `conda` packages) - On macOS, any version officially supported by Apple (for Homebrew) -To install on Linux use: +To install use: ``` -sh -c "$(curl -fsLS get.chezmoi.io | sed -e 's/${GOOS_EXTRA}_${arch}/-musl_${arch}/')" -- init --apply danielnachun -``` -To install on macOS use: -``` -sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply danielnachun +sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply danielnachun ``` which will automatically download a pre-built `chezmoi` binary for your platform and clone the dotfiles in this repo into the correct locations. From 7221de63e9e210dd5f248fe1cb1e3fddfd3b357f Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Fri, 28 Feb 2025 00:35:22 -0800 Subject: [PATCH 4/4] add packages --- dot_config/chezmoi/nvim_packages | 1 + dot_config/chezmoi/package_list | 1 + 2 files changed, 2 insertions(+) create mode 100644 dot_config/chezmoi/nvim_packages diff --git a/dot_config/chezmoi/nvim_packages b/dot_config/chezmoi/nvim_packages new file mode 100644 index 0000000..cc11d7d --- /dev/null +++ b/dot_config/chezmoi/nvim_packages @@ -0,0 +1 @@ +lua-magick diff --git a/dot_config/chezmoi/package_list b/dot_config/chezmoi/package_list index 28f1952..49e0ee6 100644 --- a/dot_config/chezmoi/package_list +++ b/dot_config/chezmoi/package_list @@ -311,6 +311,7 @@ pkgconf plzip pnpm pomsky +poppler prettier prql-compiler procs