Skip to content

cromz22/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Settings

Requirements

  • nvim >= 0.12
  • tree-sitter CLI
    • required for nvim-treesitter parser installation and updates

Installation

  • Clone this repository under ~/.config.

Personal settings

  • General settings are written in set.lua.
  • Keymap settings (that doesn't involve plugins) are written in keymap.lua

Packages

I use lazy.nvim to manage plugins. General package settings are written in lazy.lua. Detailed settings for each package are written in after/plugin/*.lua.

I use:

  • iceberg as colorscheme
  • neo-tree for tree view of files and directories
  • telescope as fuzzy finder
  • treesitter for syntax parsing (which is helpful for semantic highlighting, selection, etc.)
    • configured for bash, css, html, javascript, json, lua, markdown, markdown_inline, python, query, toml, tsx, typescript, vim, vimdoc, and yaml
  • Comment for commenting
  • nvim-autopairs for bracket completion
  • mason, mason-lspconfig, nvim-lspconfig for language server (See below for more info)
  • copilot to use Github Copilot
    • Subscription to copilot and node.js are needed

To add a package:

  1. add configurations to lua/cromz22/lazy.lua
  2. create after/plugin/package-name-or-whatever.lua and write detailed settings there if needed

Type :Lazy home to manage installed packages.

Language Server, Linter, Formatter

To use language servers, nvim-lspconfig is required. To manage language servers, linter, and formatter, I use mason. mason-lspconfig closes some gaps between the two. Make sure npm can be used so that pyright and bash-language-server can be used.

I use:

To add one:

  1. install one through mason (:Mason)
  2. add LSP server to servers variable in after/plugin/lsp.lua
  3. add formatter to FormatCode function after/plugin/lsp.lua

cf.

About

My Neovim settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages