NOTE: This guide is intended for AstroNvim version 4 and above. Ensure that Neovim is already installed on your system.
The /lua/community.lua file contains comprehensive configurations curated by the AstroNvim community for various programming languages:
---@type LazySpec
return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.pack.cpp" },
{ import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.php" },
{ import = "astrocommunity.pack.markdown" },
-- Customize with your own plugin imports
}
Each language setup includes a debugger, code completion, code formatter, and linter. You can tailor the lua/community.lua file to meet your specific development needs.
I utilize supermaven, an impressive AI code completion tool.
To disable it, simply remove the following lines from lua/plugins/user.lua:
-- supermaven
{
"supermaven-inc/supermaven-nvim",
config = function()
require("supermaven-nvim").setup {
-- Your configuration here
-- See https://github.com/supermaven-inc/supermaven-nvim/blob/main/doc/supermaven-nvim.txt
keymaps = {
accept_suggestion = "<C-a>",
clear_suggestion = "<C-]>",
accept_word = "<C-j>",
},
ignore_filetypes = { txt = true },
}
end,
},
I adhere to the default AstroNvim keybindings, with specific adjustments for:
-
supermaven:
- C-a : Accept suggestion
- C-] : Clear suggestion
- C-j : Accept word
-
zen mode:
- Space + z + z : Toggle zen mode (Default leader is Space)
- For Linux/MacOS:
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
- For Windows:
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak
Ensure to remove the initial .git folder:
rm -rf ~/.config/nvim/.git
Then clone the repository to your configuration folder.
- For Linux/MacOS:
git clone https://github.com/alaminedione/my-nvim-astronvim-config ~/.config/nvim
- For Windows:
git clone --depth 1 https://github.com/alaminedione/my-nvim-astronvim-config $env:LOCALAPPDATA\nvim
nvim