NvStar
NvStar copied to clipboard
IDE Layer for Neovim, for simplicity lovers.
NvSTAR
Personalized Development Environment โค๏ธ๐จโ๐ป
Brief description of how this configuration actually works. Hit the โญ button if you found this useful.โ What is this
This is a v2 of my previous Neovim config - Nvdots

For Wallpaper, Go to this
Terminal is ST, for config go here
For other stuff checkout my Profile
Before we proceed, File Structure is like
If the reader is well versed or, has a general experience with shell scripting, Lua language or, know what they are doing then they may skip this section. But it advised to take a good understanding of the file structure before making any changes.
nvim
|
โโโ bin
โย ย โโโ friendly-snippets
โย ย โโโ luasnip_snippets
โย ย โโโ snippets
โโโ colors
โโโ init.lua
โโโ lua
โย ย โโโ core
โย ย โย ย โโโ abbreviations.lua
โย ย โย ย โโโ autocmds.lua
โย ย โย ย โโโ colorscheme.lua
โย ย โย ย โโโ colors.lua
โย ย โย ย โโโ constants.lua
โย ย โย ย โโโ maps.lua
โย ย โย ย โโโ options.lua
โย ย โย ย โโโ plugins.lua
โย ย โย ย โโโ user.lua
โย ย โย ย โโโ utils
โย ย โย ย โโโ assistance.lua
โย ย โย ย โโโ docker.lua
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ notify.lua
โย ย โย ย โโโ toggle.lua
โย ย โโโ plug
โย ย โโโ chatgpt.lua
โย ย โโโ cheatsheet.lua
โย ย โโโ cmp
โย ย โย ย โโโ dynamic.lua
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ luasnip.lua
โย ย โย ย โโโ tabnine.lua
โย ย โโโ colorizer.lua
โย ย โโโ fzf.lua
โย ย โโโ hydra
โย ย โย ย โโโ dap.lua
โย ย โย ย โโโ git.lua
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ options.lua
โย ย โย ย โโโ spelling.lua
โย ย โย ย โโโ telescope.lua
โย ย โย ย โโโ windows.lua
โย ย โโโ init.lua
โย ย โโโ lsp
โย ย โย ย โโโ diagnostics-highlight-override.lua
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ lsp-installer.lua
โย ย โย ย โโโ null-ls.lua
โย ย โย ย โโโ servers
โย ย โย ย โโโ bashls.lua
โย ย โย ย โโโ clangd.lua
โย ย โย ย โโโ emmet-ls.lua
โย ย โย ย โโโ gopls.lua
โย ย โย ย โโโ itex.lua
โย ย โย ย โโโ jsonls.lua
โย ย โย ย โโโ marksman.lua
โย ย โย ย โโโ pyright.lua
โย ย โย ย โโโ sqls.lua
โย ย โย ย โโโ sumneko-lua.lua
โย ย โย ย โโโ taplo.lua
โย ย โย ย โโโ texlab.lua
โย ย โย ย โโโ vimls.lua
โย ย โย ย โโโ yamlls.lua
โย ย โโโ lspkind.lua
โย ย โโโ mason.lua
โย ย โโโ nvim-tree.lua
โย ย โโโ other.lua
โย ย โโโ regexp.lua
โย ย โโโ tabout.lua
โย ย โโโ telescope
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ options.lua
โย ย โโโ terminal.lua
โย ย โโโ todo-comments.lua
โย ย โโโ toggle.lua
โย ย โโโ trouble.lua
โย ย โโโ ts-context.lua
โย ย โโโ ui
โย ย โย ย โโโ bufferline.lua
โย ย โย ย โโโ dashboard.lua
โย ย โย ย โโโ git-sign.lua
โย ย โย ย โโโ init.lua
โย ย โย ย โโโ minimap.lua
โย ย โย ย โโโ noice.lua
โย ย โย ย โโโ notify.lua
โย ย โย ย โโโ statusline.lua
โย ย โโโ whichkey.lua
โโโ plugin
๐ Install language servers
Mostly available via npm
npm install -g typescript typescript-language-server vscode-langservers-extracted vls @tailwindcss/language-server yaml-language-server @prisma/language-server emmet-ls neovim graphql-language-service-cli graphql-language-service-server @astrojs/language-server bash-language-server
Lua, Pyright, Deno, Gopls and rust-analyzer available in Arch/Manjaro repos
sudo pacman -S lua-language-server pyright deno rust-analyzer gopls shellcheck
Check your package manager for availability if not on an Arch based distro - brew, apt etc.
๐ Install formatters
prettier with npm
npm i -g prettier
shfmt is in the AUR
sudo pacman -S shfmt # From the AUR
go install mvdan.cc/sh/v3/cmd/shfmt@latest # With the help of GO
stylua is in the AUR
sudo pacman -S stylua
Check your package manager for availability if not on an Arch based distro - brew, apt etc.
autopep8 for python is in Manjaro/Arch repos
sudo pacman -S autopep8
Check your package manager for availability if not on an Arch based distro - brew, apt etc.
yamlfmt for yaml available with pip
sudo pip install yamlfmt
๐งจ Installation
# move to home dir
cd ~
# back up current config
cp -r ~/.config/nvim ~/.config/nvim.backup
# clone repository
git clone https://github.com/adityastomar67/nvstar.git ~/.config
# Launch nvim for the first time with this command to install plugins
nvim +PackerInstall
# exit nvim and Then compile the loader file
nvim +PackerCompile
Additionals
โญ Coding Assistance
With the help <Leader>a you can get a list of all the available assistance actions for the current buffer.
Github Copilot
Provdes code samples and completions and easily be setted up using the command Copilot auth
OpenAI Codex
It's a premium service, you need access from OpenAI. Then you need to copy your api key from dashboard and paste it into $HOME/.config/openai-codex/env"
And Others like StackOverflow, Cht.sh, Navi, Tokei, howdoi, howto, Neural, Shell-GPT
โญ Adding custom Snippets
The conifg uses luasnip paired with friendly-snippets, my own fork for VS Code style snippets. You can add your own snippets to the config snippets directory . You'll also need to edit the snippets/package.json to be able to load your snippets in the correct filetype. One test snippet is included as an example.
Plugins
For a list of plugins, see the plugins file.
More Info
Looking for my zsh and other cli configs? See Dotfiles
Resources and inspiration
Plugin Finder Noting really, if you have (Neo)vim installed then you can just backup your previous config if any, then just clone this repo and create a symlink of this configuration to your ~/.config/nvim
SUGGESTION
- Font: Cascursive - Courtesy of @sainnhe (You can find fonts inside my dotfiles repo)
- dot_files
- Wallpaper
For Complete Automated install
Run this code snippet in your terminal (Coming soon...)
curl -sL https://bit.ly/Fresh-Install | sh -s -- --vim