neovim_config/README.md
2025-05-15 18:16:36 +02:00

48 lines
1.9 KiB
Markdown

## Neovim install
### Requirements for this configuration to work:
ansible ansible-lint npm neovim ripgrep
### Important:
neovim has to be version 0.10.0 or later.
Denpenting on your OS neovim and the requirements can be installed on Rhel or Fedora like this
```
sudo dnf install neovim npm ansible ansible-lint ripgrep ShellCheck
```
If you are using Ubuntu it can be done like this
```
sudo apt install neovim npm ansible ansible-lint ripgrep shellcheck
```
If you are using MacOS it can be done like this (Yes ansible is not in there yet, still working on that)
```
brew install neovim npm python@3.12 shellcheck ansible ansible-lint
```
Remember that you need to have the homeberw path exported
```
export PATH=$PATH:/opt/homebrew/bin
```
How to use the plugins and configuration
```
git clone https://git.nopants.dk/shell/neovim_config.git ~/.config/nvim
```
This is a simple starter config for neovim, there is a few plugins for changing the default colors, a lsp that still needs figuring out, telescope for fuzzy finding, and treesitter for better syntax highliting.
### Note:
To use the ansiblels LSP, you need either vs code installed or npm installed. May well be that vs code installs and uses npm to install the ansiblels LSP
There is also some remaps that I could not image going back to not using, since they make life a lot eaiser and better when it comes to working in files.
### Tabs:
There has been added remaps for tabs, <leader>ct creates a new tab, <leader>qt closes a tab. If you are in netrw you can press t on a file to open it in a tab.
You can jump between tabs with gt, if you want to jump to a spesific tab you can use fx 2gt, to go to tab 2
### Just a friendly reminder
It might be required to go above neovin version 0.10.0, as I have seen some funny errors with the LSP config, so to be safe if you have to option, go with version 0.11.0 or later as that just seams to work