🪐
My Neovim Configuration
🚀
A must-have configuration for Spacemacs users after defecting to Vim
If you want the power of VSCode, the interactivity of Spacemacs, and the text-objects of Vim, I highly recommend you try this configuration.
-
-
Spacemacs operating experience: spacemacs style keyboard shortcuts with which-key, Telescope like ivy and helm-swoop, etc.
-
Looking forward to your continued exploration, there are some screenshots
Get A Taste Of
Key Features
Spacemacs operating experience: spacemacs style keyboard shortcuts with which-key, Telescope like ivy and helm-swoop, etc.
Looking forward to your continued exploration, there are some screenshots
If you're worried about breaking your current vim configuration but want to try it out for yourself, you can use docker to give it a quick try in an isolated environment:
docker run -it -w /root/.config/nvim yetone/cosmos-nvim nvim
1. Requirements
Neovim 6+
Install
Only Neovim 6.0 and above are supported, please refer to the official installation documentation of Neovim: Install Neovim
Nerd Fonts
Go to Nerd Fonts homepage to download the patched fonts you are currently using.
2. Install my configuration
mv ~/.config/nvim{,.yetone-backup} || true
git clone --depth 1 https://github.com/yetone/cosmos-nvim.git ~/.config/nvim
3. Install your language lsp server in your nvim
For example, if you are writing Python
, you will need to open nvim and run the following command:
:LspInstall python
Custom Configuration
If you want to define your own configuration, you can create a file called .cosmos-nvim.lua
in the $HOME
root directory, for example:
~/.cosmos-nvim.lua
return {
config = {
-- Put your config here to overwrite the default cosmos configurations
enable_rainbow = false, -- disable rainbow
},
setup_settings = function()
-- Put your settings here
end,
setup_mappings = function(wk)
-- Put your key mappings here and where you can group and name shortcuts with `which-key`
end,
setup_plugins = function(use)
-- Put the plugins you want to add here, where you can use the `use` function of `packer.nvim`
use 'wakatime/vim-wakatime'
end,
}