# THIS REPOSITORY MOVED TO https://gitea.stefka.eu/jiriks74/astronvim_config # My [AstroNvim](https://github.com/AstroNvim/AstroNvim) config ## README for the merlin server at FIT VUT can be found [here](https://github.com/jiriks74/astronvim_config/tree/merlin) ## How to install my config - First you have to install AstroNvim - Backup your previous nvim config ```bash mv ~/.config/nvim ~/.config/nvimbackup ``` - Clone AstroNvim repository into ~/.config/nvim ```bash git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim ``` - Clone my config into `~/.config/nvim/lua/user` ```bash git clone https://github.com/jiriks74/astronvim_config ~/.config/nvim/lua/user ``` ## Useful info - Folding with treesitter - To get folding for your language, you need to run `:TSInstall ` (eg. `TSInstall cpp` to get C++ folding) - Install language servers - Use `Space+p+m` keybind to open install menu. - To install package under the cursor, press `i` - To uninstall package under the cursor press `X` - LaTeX - To use `vimtex` plugin, you need to have LaTeX installed - [`texlive-most`](https://wiki.archlinux.org/title/TeX_Live#Installation) package on ArchLinux - PlatformIO - If you want to use PlatformIO, you need to have `pio` installed - To create a project, run `:PIONewProject` - To include a library, run `:PIOAddLibrary` - For more commands, go to [`vim-pio`'s repository](https://github.com/jiriks74/vim-pio) ## Extra plugins included - You have to create a file with `Launch` config - see the [plugin repository](https://github.com/puremourning/vimspector) - [vim-pio](https://github.com/jiriks74/vim-pio) - PlatformIO vim plugin - This is a fork that I modified to work with clangd as this is what is the easiest to setup in AstroNvim - [vimtex](https://github.com/lervag/vimtex) - A plugin for, you guessed it, LaTex - I have not yet learned LaTex, so I haven't tried this plugin out. - This plugin needs you to have LaTeX installed on your system. To see more go to the [vimtex repository](https://github.com/lervag/vimtex) Hopefully I'll learn it and try out this plugin soon - [markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim) - Plugin for live markdown preview in a web browser - [copilot.vim](https://github.com/github/copilot.vim) - Github's copilot plugin for Vim - To use the plugin you have to login with this command - `:Copilot setup` - [Pocco81/auto-save.nvim](https://github.com/Pocco81/auto-save.nvim) - Plugin for autosave ## Extra mappings | Shortcut | Vim keybind | Description | |----------|------------------|-------------------| | Space+a | ["\uD"] | Alpha Dashboard | | CTRL+e | ["\"] | Copilot accept | | CTRL+s | ["\"] | Toggle autosave | ### Mappings for markdown preview | Shortcut | Vim keybind | Description | |-----------|------------------|-------------------------| | Space+m+p | ["\mp"] | Markdown preview | | Space+m+s | ["\ms"] | Markdown preview stop | | Space+m+t | ["\mt"] | Markdown preview toggle | ### Mappings for `vimtex` ## TODO - [ ] Nvim-DAP - Modified the default AstroNvim config - [ ] [Mappings for `vimtex`](#mappings-for-vimtex) - [ ] Better section for `vim-pio` - [ ] Add section for setting up debugging - [ ] Add mappings for `treesitter` install? - [ ] Add requirements section - So you don't have to go through [Extra plugins included](#extra-plugins-included) to know what to install - [ ] Better [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md) for [`neovim7.2`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2) branch - [ ] Add section redirecting to [`neovim72`](https://github.com/jiriks74/astronvim_config/tree/neovim7.2) branch's [`README.md`](https://github.com/jiriks74/astronvim_config/blob/neovim7.2/README.md) if user has Neovim < 8.0 - [ ] Setting up simple wiki? - [ ] Add section for ["weirongxu/plantuml-previewer.vim"](https://github.com/weirongxu/plantuml-previewer.vim)