Leslie Kerman
6809c9bc91
|
5 months ago | |
---|---|---|
lua | 5 months ago | |
snippets | 5 months ago | |
.gitignore | 2 years ago | |
LICENSE | 3 years ago | |
README.md | 6 months ago | |
init.vim | 2 years ago | |
lazy-lock.json | 6 months ago |
README.md
My personal modern NeoVim config
Note for users
You're supposed to fork this repo and work from there (as oppose to cloning it and keep fetching updates by git pulling). This is just a place I share my configs in, not a neovim distribution (like LazyVim or NvChad). I make breaking changes unannounced and if I screw you up welp I told you so.
Setup
- Use the latest version of NVIM
- Clone this repo into
~/.config/nvim
:
git clone https://github.com/leslie255/nvim-config.git ~/.config/nvim
- Set up LSP
This setup uses nvim-lspconfig which contains config for most languages servers out there. See lua/configs/autocomplete.lua
, edit the list of LSP's in this file to languages you need, and make sure those LSP's are installed globally.
- Set up treesitter
Config for treesitter is in lua/configs/treesitter.lua
, edit the list of languages in this file and run :TSUpdate
.
- Set up snippets
Snippet files are in snippets/
(outside the lua/
folder!), this setup uses LuaSnip for snippets.
This setup configrued LuaSnip to use snipmate-like snippet syntax, but LuaSnip also supports VSCode-like JSON snippet syntax, to change it, change "luasnip.loaders.from_snipmate"
to "luasnip.loaders.from_vscode"
in lua/configs/autocomplete.lua
, for more information see related LuaSnip docs.
FAQ
Why does the theme not match the screenshots?
I switch between a few themes sometimes during my usage just to fresh things up a bit, the screenshots are quite old and might not reflect the latest theme, you can change the theme at lua/core/theme.lua
. You can also switch between light and dark mode using the keymap <leader>vd
(dark) and <leader>vl
(light).
Why are there a bunch of question marks?
They are supposed to be the fancy file and arrow icons, to use these icons you need Nerd Fonts, a special kind of font that supports these icons.
Why does it have a bunch of error messages?
First check if you have followed the setup instructions.
If you have and error messages still exist, that's because I've been lazy and couldn't keep up with the latest breaking changes in plugins or neovim.
Contributing
Having troubles
Report an issue If you have issues (don't DM me on social media, report an issue here).
Adding more things
You don't, this isn't a neovim distribution, so fork it and make changes from there.