Skip to content
프로젝트

소개

미니멀하면서도 기능적인 neovim

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+3
in 15 days
+4
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Bread's guide to Neovim configuration

Build off of mine, or start your own!


Before starting, ensure you have:

  • neovim (duh)
  • a patched font and a terminal that supports glyphs

Quickstart with my config:

cd ~/.config/ && git clone https://github.com/BreadOnPenguins/nvim
  • On first boot, run :PlugInstall to ensure all plugins are installed and updated with vim-plug
  • Key maps are in lua/config/mappings.lua
    • Leader is bound to space, you can press space by itself for which-key to pop up with bindings info
  • Neovim options are set in lua/config/options.lua with some comments for info
  • All plugin configuration is located in the lua/plugins/ folder
    • To add or remove plugins, modify the Plug() section in init.lua appropriately, and ensure to modify require() as needed for configuration.
    • Then run :PlugInstall to install or :PlugClean to uninstall

Starting your own config:

Yes, there are a lot of choices! But don't worry, you can easily change your mind later.

1. Do you want:

  • Minimal?
  • Power User?
  • Full IDE?

An example directory structure and plugin configuration for each of those is included below.

2. Choose directory structure

  • If you prefer vimscript, use an init.vim
  • Otherwise, use an init.lua
  • If you intend to have a lot of plugins or want a neater structure, split into separate files
    • You can always expand to more files later

3. Pick plugin manager

4. Pick plugins

5. Set mappings, options, and plugin config

  • Use :help options or browse here
  • You don't always need to configure plugins: most have sensible defaults, and you can set as few or as many opts as you wish.

the Minimalist (better text editor)

~/.config/nvim/
└── init.vim

Plugins might include:

  • File tree
  • Fuzzy finder
  • Comment quick toggle
  • Surround editing
  • Better syntax highlighting
  • Probably a color scheme and status line

the Power User

~/.config/nvim/
├── init.lua
└── lua
    ├── core
    │   ├── keymaps.lua
    │   └── options.lua
    └── plugins
        └── plugin.lua
        └── configs.lua

Plugins might include:

  • Everything above, AND
  • LSP & autocompletion
  • Snippets
  • Git integration
  • Faster motions, window management
  • Terminal integration
  • Project and session management
  • Tabline and cursorline

full IDE (do you even need this guide?)

~/.config/nvim/
├── init.lua
├── lazy-lock.json
└── lua
    ├── core
    │   ├── keymaps.lua
    │   ├── options.lua
    │   └── plugins.lua
    ├── plugins
    │   └── lots.lua
    │   └── of.lua
    │   └── plugin.lua
    │   └── configs.lua
    └── UltiSnips
        └── tex.snippets

Plugins might include:

  • Everything above, AND
  • Debugging
  • Code runners
  • Remote development
  • Refactoring

관련 프로젝트 살펴보기

불러오는 중…