!!! I switch to nvChad with my nice touch: My NvChad config !!!
So i'll stop to update that repo.
P.S. Bufferline/Heirline are now removed to get the fully ThePrimeagen/harpoon
experience.
- dashboard ajusted to be and look really simple
neo-tree open to the right, so it don't move the code when open/close- Use Oli.nvim file explorer (Edit file like a buffer & it's clean!)
- nvChad Telescope theme ajusted to fit with the cappuccin colors
- noice.nvim, to have the styled search and Commands Bar
- The
Esc
in the terminal will get you in view mode! - I DISABLED nvim-notify, cause it was simply frustrating to have a useless notification hidding my code / wordspace
- project.nvim to manage projects
- move.nvim to be able to move block of code (Remove LSP K map to be able to shift + k to move block.) Works with arrows to.
- ThePrimeagen/harpoon cause it's blazingly fast
- I REMOVE completly the buffeline/Heirline to truly use ThePrimeagen/harpoon experience
- nvim-spectre for a nice search and replace
- Other plugins: rainbow-delimiter, git-blame, todo-comments
- I add and chage some keymap (There is a point explaining the keymaps from this config under). You can also check the
mapping
file
- Nerd Fonts (Optional with manual intervention: See Documentation on customizing icons) [1]
- Suggested: JetBrainsMono Nerd Font
- Neovim 0.8+ (Not including nightly)
- A clipboard tool is necessary for the integration with the system clipboard (see
:help clipboard-tool
for supported solutions) - Terminal with true color support (for the default theme, otherwise it is dependent on the theme you are using) [2]
- Suggested: Kitty
- ripgrep - live grep telescope search (
<leader>fw
) (Too much usefull to be optional) - OPTIONAL Requirements:
- lazygit - git ui toggle terminal (
<leader>tl
or<leader>gg
) - go DiskUsage() - disk usage toggle terminal (
<leader>tu
) - bottom - process viewer toggle terminal (
<leader>tt
) - Python - python repl toggle terminal (
<leader>tp
) - Node - node repl toggle terminal (
<leader>tn
)
- lazygit - git ui toggle terminal (
[1] All downloadable Nerd Fonts contain icons which are used by AstroNvim. Install the Nerd Font of your choice to your system and in your terminal emulator settings, set its font face to that Nerd Font. If you are using AstroNvim on a remote system via SSH, you do not need to install the font on the remote system.
[2] Note when using default theme: For MacOS, the default terminal does not have true color support. You will need to use iTerm2, Kitty, WezTerm, or another terminal emulator that has true color support.
- AstroVim key mappings: https://astronvim.com/Basic%20Usage/mappings (Not listed in the things below)
In the NeoTree press?
to see all mapping- In Oil, press
?
to see all mapping (Not that much cause it works like buffer)<leader>e
open current file directory (Do it again to go to parent directory)<leader>E
open root project (Be sure to have .git or something that project.nvim will be able to understand as project)- To move a file simply delete the file and paste it somewhere else. Then save in oil and it will tell you if you really want to move the file. (Really intuitive)
- To edit a file name, simply edit it as a buffer then save in oil. Oil will ask if you really want to rename your file.
- In Oil, press
b
to go to parent directory
- In the editor simply hit
space/leader
and wait 1s to see almost all maping - If you want to add Project, open the project window (Accessible through Dashboard too) and then do one of these shorcuts: https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/project/projectmgr-nvim
- The
Esc
in the terminal will get you in view mode! <Leader>t<Leader>
orctrl-t
will toogle terminal.
- If you want to Add, Change of delete surrounding, (https://github.com/kylechui/nvim-surround)
- In normal mode (WITHOUT
<leader>
), Add:yss"
will surround a word with"
,ds"
will remove"
andcs"'
will replace"
by'
.-
- To detail more,
y
thens
follow by the manip to go to the end of the for and the caracter to add for the sourround. Example:yss(
-> sourround the line with()
.ysw"
sourround the word with"
.ys4j{
=> sourround the four line with{
- To detail more,
-
harpoon
<leader><leader>a
to mark a file.- Use
<leader>
follow by a number (1
to5
) to quick move between the 5 first marks.
P.S. I REMOVE completly the buffeline/Heirline to fully use ThePrimeagen/harpoo
experience.
- Simply
enter
on the Open project in the Dashboard. (Will be empty, but you will be able to execute commands listed in the table below) :ProjectMgr
(or p) toggles a telescope picker with your projects. The telescope preview displays information about your project and its current git state.
The following actions and keybinds are available for :ProjectMgr
/ In the Open project
option in the Dashboard:
Key | Action |
---|---|
<CR> |
Open the project under your cursor |
<C-a> |
Add a project. You will be asked for a name, a path, and optionally startup and shutdown commands. |
<C-d> / <C-x> |
Delete project under your cursor |
<C-e> / <C-u> |
Edit the project under your cursor |
<C-q> / <ESC> |
Close the window without doing anything |
<leader>P |
Open the ProjectMgr panel |
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
git clone https://github.com/t1gu1/astrovim-config ~/.config/nvim/lua/user
ln -s ~/.config/nvim/lua/user/snippets ~/.config/nvim/snippets
nvim
- At the first start everything should install. Then close nvim and reopen it.
- Then if you want to check if everything is ok use
:checkhealth
cmd inside nvim. - P.S. Be sure to use a compatible terminal like kitty terminal and having a nerdFont installed.
Open Kitty terminal and open menu kitty/preferences
.
Simply replace all your config by this:
## blurb: Soothing pastel theme for the high-spirited!
# Kitty tabs are now define by a number
tab_title_template "{index}"
# Remove window header of your OS (You may not want this line)
hide_window_decorations titlebar-only
# Make the terminal TRANSPARENT with some blur (Works nicely on Mac OS and maybe Linux)
background_opacity 0.8
background_blur 20
font_size 19.0
# text
foreground #CAD3F5
# base
background #24273A
# subtext0
title_fg #A5ADCB
# mantle
title_bg #1E2030
margin_bg #1E2030
# subtext1
margin_fg #B8C0E0
# mantle
filler_bg #1E2030
# 30% red, 70% base
removed_bg #604456
# 50% red, 50% base
highlight_removed_bg #895768
# 40% red, 60% base
removed_margin_bg #744D5F
# 30% green, 70% base
added_bg #4B5D55
# 50% green, 50%