A user configuration template for AstroNvim
now i use mason more, so this branch mason
only have lsp.
if you want to use coc
, switch branch to main
, and set vim.g.lsp_type = "coc"
vim.g.lsp_type = "coc" -- use coc as lsp server
vim.g.lsp_type = "lsp" -- use mason as lsp server
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" },
},
}
brew install fzf
brew install luarocks
brew install lazygit
brew install ripgrep
npm install tree-sitter-cli or cargo install tree-sitter-cli
brew install gdu
brew install bottom
Displays hover information about the symbol under the cursor in a floating
window. Calling the function twice will jump into the floating window.
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
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.
git clone https://github.com/chaozwn/astronvim_with_coc_or_mason ~/.config/nvim/lua/user
nvim
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 | | |