neobean
Saw this video on YouTube and decided to clone the dotfiles from 'linkarzu/dotfiles-latest'.
Clone the dotfiles from Github
New Trick: How to Clone Only a Subdirectory of a Git Repository?
Approach 1: Using Sparse Checkout
Sparse checkout allows you to check out only part of the working directory. This is particularly useful for large repositories where you only need a specific subdirectory.
Step 1: Initialize the Repository
First, clone the repository with the –no-checkout
option to avoid checking out the files immediately.
git clone --no-checkout <repository-url>
cd <repository-directory>
Step 2: Enable Sparse Checkout
Configure Git to enable sparse checkout.
git sparse-checkout init
Step 3: Define the Subdirectory
Specify the subdirectory you want to clone. For example, if you want to clone the docs
subdirectory:
git sparse-checkout set docs
Step 4: Checkout the Subdirectory
Now, checkout the repository. Only the specified subdirectory will be checked out.
git checkout main
Replace main with the appropriate branch name if it differs.
The current folder is C:Users/Alowr/dotfiles-latest/
Run git pull
to update from the remote repository regularly so that you could use the most recent updates from the original author.
Copy and paste dotfiles/neovim/neobean folder to your Neovim configuration
Modify PowerShell Profile to configure Neovim selection menu
Run nvims index.md
and select neobean in the pop-up menu. Neobeon will install this configuration automatically, but likely with some errors dependent on your internet connections.
Not sure why errors happen. This is still a problem now. Theme not loaded correctly.
Configurations
:Lazy
This command pops up the Lazy.vim configuration. You can Install or Update the plugins.
:e $MYVIMRC
This command turns out not very useful, as the config is modularized. Most of settings are not in this init.lua file at all.
:Neotree
This command opens the sidebar on the left side. But how to turn the sidebar off?
This is a test a auto wrap to see if a super long tine would wrap itself automatically and this is not happening at all.
Features
- Auto save
- Spell checks
- Auto format is NOT working
- Markdown styles in headers
Problems
In Command-Line mode, the cursor is flashy. But this appears to be fixed after disabling/enabling the notice.nvim plugin. Scroll with mouse is not very smooth and appears jumpy. Moving with keyboard works well though. Appears to have been fixed as well.