This repo hosts my Neovim configuration macOS. init.lua
is the config entry point for terminal Neovim.
Most of my configuration process comes from Neovim-from-scratch. If you also want to learn you can click the link to view.
-
Plugin management via Packer.nvim.
-
Code, snippet, word auto-completion via nvim-cmp.
-
Language server protocol (LSP) support via Mason.nvim.
-
Beautiful statusline via lualine.nvim.
-
File tree explorer via nvim-tree.lua.
-
Code highlighting via nvim-treesitter.
-
Color theme via nord.nvim and other beautiful themes.
-
File searching via telescope.nvim.
-
Toggle Terminals via toggleterm.nvim.
-
Code format, inject LSP diagnostics, and code actions via null-ls.nvim.
-
Winbar via barbecue.nvim.
I don't recommend you to just clone the whole repository and use it, you should have your own configuration. You can copy the parts you want and add them to your own configuration.
Some plugins require additional dependencies to be installed, if you encounter dependency errors please check the plugin's github page.
The Alt key in vim corresponds to the macOS command key, which is bound to system and application-level keymaps, that cannot be mapped to vim shortcuts. If you want to edit the keymaps list using Alt and are using iterm2 terminal software, you can set preferences -> profiles -> keys -> Left Option Key to ESC+. Then your Option key will be mapped to the A/M (Alt/Meta) key in vim.
If you use other terminal software, please google for the setting method.
Most of the custom shortcuts are in the file /lua/summer/keymaps.lua, other plugins' shortcuts can be found in their respective configuration files.
Some plugins don't have configured shortcuts but use default shortcuts, you can visit their github page to see the default shortcuts.