Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.
/ totsuka Public archive

My neovim configuration, centered around minimalism, no bullshit, and elegance

Notifications You must be signed in to change notification settings

deceptionfalls/totsuka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Opinionated, no-bullshit, personal Neovim config made for my needs, but should be usable for other people as well. Totsuka exists because I am tired of over-complex frameworks, and for my final and best attempt at configuring Neovim. Totsuka is focused on the base Vim experience, efficiency, simplicity and modularity, with as minimal plugins as possible, you are encouraged to remove and add as needed.

Totsuka has it's own custom colorscheme now! Say hello to the Yata colorscheme, inspired by a certain japanese regalia.

Plugins

Totsuka comes with only 16 plugins! Most of these are extremely important (LSP, Telescope, Packer) so at this state, you simply cannot bring the count down without suffering from some lack of features, consider this as a great starting point for your own config, modularity is off the charts!

Dependencies

File Structure

Totsuka follows the following structure:

├── after
│  └── plugin
│     ├── black.lua
│     ├── fugitive.lua
│     ├── telescope.lua
│     ├── treesitter.lua
│     └── undotree.lua
├── colors
├── lua
│  └── totsuka
│     ├── init.lua
│     ├── keybinds.lua
│     ├── lsp.lua
│     ├── options.lua
│     └── plugins.lua
├── init.lua
  • after/plugin, plugin specific configuration
  • colors, custom colorschemes (if any)
  • lua/totsuka, options, keybinds, lsp configs, plugin list
  • init.lua where everything gets referenced

You should mostly mess around after where your plugin config goes and lua where everything else goes.

Keybinds

Totsuka does not come with which-key by default, so here's a rundown of the keybinds.

Standard Vim

Keybind Description
<leader>e Toggle Netrw
<leader>w :w
<leader>q :q
<leader>h Beginning of line
<leader>l End of line
<leader>hh Clear highlight
<leader>x chmod +x current file
<leader>v Vertical split
<leader>c Horizontal split
<C-P> Improved Paste
J Improved Shift J
(Visual Mode) K Move visual block up
(Visual Mode) J Move visual block down
<C-d> Jump down but maintain cursor in the middle
<C-u> Jump up but maintain cursor in the middle
<C-h>, <C-l> Navigate horizontally between splits
<C-j> <C-k> Navigate vertically between splits

LSP

Keybind Description
<leader>fm Format file using Black
<C-k> Select previous item
<C-j> Select next item
<CR> Confirm item
gd View definition
K Hover definition
[d Next LSP buffer
]d Prev LSP buffer

Git

Keybind Description
<leader>gs Opens fugitive
<leader>P Pull with Rebase
<leader>p Push
<leader>t Push setting the branch

Telescope

Keybind Description
<leader>pf Fuzzy find files
<leader>ps Grep from files
<leader>pg Fuzzy find git files
<leader>pw View Buffers

Undotree

Keybind Description
<leader>u Toggle Undotree

Credits