Skip to content

Latest commit

 

History

History
149 lines (101 loc) · 5.11 KB

README.md

File metadata and controls

149 lines (101 loc) · 5.11 KB

NvChad-Config

My custom configuration for NeoVim uses NvChad as the base and includes some additional plugins to enhance its core functionality.

The purpose of this configuration is to retain the default NvChad settings while adding extra features and language support specific to my personal stack.

The configuration can be used as is and does not require any additional setup or setup or settings. Some Mason packages aren't avaliable on certain ARM processors and Android (Termux). Check mason.lua file for more info on how to get those.

Installation

  1. Install NeoVim
  2. Install and initialize NvChad v2.0 by running the following command:
    git clone -b v2.0 --single-branch https://github.com/NvChad/NvChad.git ~/.config/nvim && nvim
  3. Run the following commands to delete pregenerated config files and install this config:
     rm -rf ~/.config/nvim/lua/custom
     git clone https://github.com/v3ceban/nvchad-config.git ~/.config/nvim/lua/custom
  4. ??????
  5. PROFIT

Currently Supported Languages

HTML

CSS

JavaScript/TypeScript

PHP

  • Uses intelephense as LSP and linter
  • Uses php-cs-fixer for formatting
  • Requires .git to run linting server
  • To create .git run git init in the root of the project

Lua

  • Uses lua-language-server for LSP and linting
  • Uses stylua for formatting
  • Uncomment Mason overrides to install the packages that don't work on ARM

Bash

C/C++

  • Uses clangd for LSP and linting
  • Uses clang-format for formatting
  • Requires clang: sudo dnf install clang
  • Uncomment Mason overrides to install the packages that don't work on ARM

Python

Go

Ruby

Markdown

Extra Plugins/Features

ChatGPT

Enables ChatGPT integration and quick commands

  • Uses ChatGPT.nvim plugin
  • Requires api key set as an environment variable called $OPENAI_API_KEY
  • Press <leader>-C for the list of quick commands or run :ChatGPT to see all avaliable functions

Copilot

Enables Copilot autocompletion

  • Uses Copilot plugin
  • Run :Copilot auth to authenticate

Nvim-ts-autotag

Automatically closes and renames HTML tags

Nvim-surround

Great plugin for surrounding text with brackets, quotes, tags, etc

  • Uses Nvim-surround plugin
  • Default keybinds in visual mode changed from S to s
  • See :h nvim-surround or :h nvim-surround.usage for usage info

Vim-be-good

Plugin to get better at vim commands and improve coding speed

Useful Links

Null-ls builtins

LSPconfig builtins

NvChad example config