You can install Neovim using Homebrew:
$ brew install neovim
You can install Ripgrep using Homebrew:
$ brew install ripgrep
$ git clone https://github.com/cedarcode/cedar-neovim ~/.config/nvim
We are using Lazy.nvim to manage plugins.
These are some of the plugins that are currently installed, we recommend you to read their documentation to get the most out of them:
- catppuccin
- copilot.vim
- snacks.nvim
- vim-bundler
- vim-endwise
- vim-fugitive
- vim-gitgutter
- vim-rails
- vim-repeat
- vim-surround
- vim-unimpaired
These are the keymaps that are currently defined:
Ctrl + p
- Open a file browserCtrl + n
- Open a file explorerCtrl + /
- Open grep searchCtrl + b
- Open the current bufferCtrl + s
- Search the word under the cursor
gd
- Go to definitiongr
- Go to references
Ctrl + g
- Open a file picker for git statusgb
- Open the browser for the current file/commitgl
- Perform a git blame on the current file
Tip
For the complete list of keymaps, see the keymaps.lua file.
If you want to add custom keymaps or options, you can do so by creating a file at ~/.config/nvim/lua/config/user-customizations.lua
and adding your customizations there.
For example, see the following structure:
-- ~/.config/nvim/lua/config/user-customizations.lua
vim.keymap.set("n", "<leader>e", "Some custom command",)
If you want to add custom plugins (and not track them in this repository), you can do so by creating a file at ~/.config/nvim/lua/plugins/custom/
directory and adding your custom plugins there.
For example, see the following structure:
-- ~/.config/nvim/lua/plugins/custom/myplugin.lua
return {
"myusername/myplugin",
config = function()
-- Your custom configuration here
end,
}
Important
Note that we are using Lazy.nvim to manage plugins, so you can use the same syntax as in the Lazy.nvim
documentation.