Skip to content

OiAnthony/AstroNvimConfig

 
 

Repository files navigation

AstroNvim Template

NOTE: This is for AstroNvim v4+

hello guys! in my workflow,I use wezterm as my terminal, and I also use tmux to provide me with multiple terminal windows, yazi as terminal file manager. btw this config support neovide and don't need other configs.

Support neovim version

neovim >= 0.9, recommend 0.9

Features

now,this config supports development in TypeScript,Rust,Python,Go,vue and markdown.

  • Typescript: typescript-tools.nvim
  • Rust: mrcjkb/rustaceanvim
  • Python: pylance
  • Go: go.nvim -- support go zero framework
  • Vue: volar -- base on typescript-tools.nvim and typescript-vue-plugin
  • Markdown: iamcco/markdown-preview.nvim,

workflow screenshot

wezterm + tmux + astronvim

homepage

wezterm

homepage

tmux

homepage

yazi

homepage

other components config

wezterm: https://github.com/chaozwn/wezterm

tmux: https://github.com/chaozwn/tmux

yazi: https://github.com/chaozwn/yazi

🛠️ Installation

The system should supports commands.

npm,rustc,go,tmux -- if you want to use tmux-awesome-manager

Recommend install

brew install fzf
brew install luarocks
brew install lazygit
brew install ripgrep
npm install -g tree-sitter-cli
brew install gdu
brew install bottom
brew install protobuf

Make a backup of your current nvim and shared folder

mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
mv ~/.local/state/nvim ~/.local/state/nvim.bak
mv ~/.cache/nvim ~/.cache/nvim.bak

Create a new user repository from this template

Press the "Use this template" button above to create a new repository to store your user configuration.

You can also just clone this repository directly if you do not want to track your user configuration in GitHub.

Clone the repository

git clone https://github.com/OiAnthony/AstroNvimConfig ~/.config/nvim

Start Neovim

nvim

Tips

Use Lazygit

<leader>tl

Install unimatrix

<Leader>tm

pip install git+https://github.com/will8211/unimatrix.git

unimatrix

Neovim requirements

npm install -g neovim
pip install pynvim

Input Auto Switch

brew tap daipeihust/tap
brew install im-select
im-select

copy result to im-select.lua

return {
  "chaozwn/im-select.nvim",
  lazy = false,
  opts = {
    -- modify 'im.rime.inputmethod.Squirrel.Hans' to your own input method
    default_main_select = "im.rime.inputmethod.Squirrel.Hans",
    set_previous_events = { "InsertEnter", "FocusLost" },
  },
}

Support styled-components

npm i -g @styled/typescript-styled-plugin typescript-styled-plugin

Support for vue development

npm i -g typescript-vue-plugin
npm i -g vue-component-meta

Support for neovide

brew install neovide
neovide .

Support Lazydocker

tigger command: <leader>td

brew install lazydocker

General Mappings

Action Mappings
Leader key Space
Resize up Ctrl + Up
Resize Down Ctrl + Down
Resize Left Ctrl + Left
Resize Right Ctrl + Right
Up Window Ctrl + k
Down Window Ctrl + j
Left Window Ctrl + h
Right Window Ctrl + l
Force Write Ctrl + s
Force Quit Ctrl + q
New File Leader + n
Close Buffer Leader + c
Next Tab (real vim tab) ]t
Previous Tab (real vim tab) [t
Comment Leader + /
Horizontal Split \
Vertical Split |

NOTE

vim.lsp.buf.hover() KK jump into signature help float window.

Displays hover information about the symbol under the cursor in a floating
window. Calling the function twice will jump into the floating window.

About

AstroNvim Config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 95.9%
  • Scheme 3.4%
  • Shell 0.7%