Giter Site home page Giter Site logo

dotvim-lua's Introduction

Color Schemes

Use config.colorschemes to define default colorscheme name.

"base16" and "tokyonight" themes are pre-installed.

You can add another theme module in lua/plugins/base/colors.lua.

LoadVimrcBackground command will source ~/.vimrc_background file that is created by "base16" shell.

<leader>vc - to call LoadVimrcBackground.

File Tree

neotree

Config

  • my.config.neotree.position - left (default), or right

Maps

  • \\ - Quick File Popup
  • \[ - Toggle File Tree
  • \[ - Toggle File Tree / Reveal File

inside File TRee:

  • ? - show help
  • a - add file / dir
  • r - rename file / dir
  • m - move file / dir
  • d - delete file / dir
  • q - close File Tree

Basic Keymaps

  • <tab><tab> - Last Tab

  • <tab>n - New Tab

  • <SPACE>m - show messages

  • <SPACE>M - clear messages

  • <SPACE>x - quite window

  • <SPACE>qq - quite all

  • <SPACE>qQ - quite all!

  • <SPACE>Q - quite all!

  • <SPACE>n - Next

  • <SPACE>p - Prev

  • <SPACE>a - Show Apps Menu

  • <SPACE>b - Show Buffer Menu

  • <SPACE>f - Show File Menu

  • <SPACE>w - Show Window Menu

  • <SPACE>s - Show Status Menu

  • <SPACE>t - Show Tab Menu

  • <SPACE>v - Show Vim Menu

  • <SPACE>Y - Show Yank Menu

  • ,<SPACE> - Save

  • ,e - Show Eval Menu

  • \ - Show Toggle Menu

  • \l - Show Log Menu

  • \lt - Log TRACE

  • \ld - Log DEBUG

  • \li - Log INFO

  • \lw - Log WARN

  • \le - Log ERROR

  • \lo - Log OFF

in diff-mode

  • ,d - Show Diff Menu

Completion

<SPACE>Sg - GitHub Copilot Status

  • M-[ - Copilot Prev
  • M-] - Copilot Next
  • M-\ - Copilot Suggest

Symbols Outline

Symbols Outline

Config

  • my.config.tagbar.position - left / right (default)

Maps

  • \t - toggle Symbols Outline

Aerial

Aerial

NOTE: Aerial is used through a Telescope popup

  • go - show Fuzzy Outline

Xterm Color Table

  • <SPACE>SX or :XtermColorTable to show the table

Colorizer

nvim-colorizer.lua plugin parses color values in the text and displays the colors either as a virtual text, background, or foreground color of the value.

  • \Cc - toggle colorizer
  • \Cm - toggle colorizer mode
  • \Cr - reload colorizer

Interesting Words

vim-interestingwords plugin colors words by request.

  • SPACE-k - toggle color for the word under cursor
  • SPACE-K - remove all word colors
  • n - when cursor is over a colored word, goes to the next occurence, otherwise next search result
  • N - when cursor is over a colored word, goes to the prev occurence, otherwise prev search result

Comments

mini.comment

  • gc - Comments menu
  • \; - Toggle Comments

AutoFormat

maps

  • <localleader>af - Format
  • <localleader>ae - AutoFormat enable
  • <localleader>aE - AutoFormat enable all
  • <localleader>ad - AutoFormat disable
  • <localleader>at - AutoFormat toggle
  • \a - AutoFormat toggle

commands

  • :Format
  • :FormatEnable [filetype]
  • :FormatDisable [filetype]
  • :FormatToggle [filetype]

Surround

We are using mini.surround for surround. Default mappings are changed slightly to be more like those of tpope's vim-surround

  • ys - add
  • ds - remove
  • cs - change

Bookmarks

vim-bookmarks

  • mm - Toggle Bookmark
  • mc - Clear Bookmarks in Buffer
  • mx - Clear Bookmark in All Buffers
  • mn - Next Bookmark
  • mp - Prev Bookmark
  • ma - Show All Bookmarks
  • mi - Add Bookmark Annotation
  • mkk - Move Bookmark Up
  • mjj - Move Bookmark Down

Undo Tree

  • \u To Toggle undotree
  • g= - to go to later version

Switch

  • gs - switch.vim to switch things. e.g. true <=> false, or { :a => a } <=> { a: a }

Align

<!- TODO: expand help here -->

Global Search and Replace

  • :Gsearch - to search and open results in a buffer for edit
  • :Greplace - apply edits from the buffer into original files matched

Zoom

  • \z - toggle panel zoom

Zen mode

  • \F - Focus (twilight.nvim). Dimm everything except area around the cursor line
  • \<tab> - Zen Mode. Focus, but also zoom and center the window

Multiple Cursors

vim-visual-multi

  • ctrl-n - to select words

  • n - select next

  • q - skip

  • ctrl-down - add vertical cursor

  • tab - toggle cursor and extend mode

Illuminate

vim-illuminate is used to automatically highlight other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.

  • <m-i> - textobject for the reference illuminated under the cursor
  • <m-n> - go to next occurance
  • <m-p> - go to prev occurance

Yank Ring

yanky.nvim is used for 'yank ring' functionality

after pasting:

  • [y - previous paste

  • ]y - next paste

  • <SPACE-Y-CR - yank history picker

GIT

  • SPACE-gs - show git status
  • <SPACE-gp - git push
  • <SPACE-gd - git diff
  • <SPACE-gg - git grep
  • <SPACE-gw - git grep word under cursor
  • \gs - toggle gitsigns
  • \gs - toggle virtual git blame for current line

Git Status Mode

  • g? - help

changes:

  • - - toggle stage / unstage of file or hunk
  • 'X' - discard file changes or hunk
  • = - toggle inline diff

commit:

  • 'cc' - commit
  • 'ca' - amend commit
  • 'cf' rt- commit --fixup for file under cursor
  • 'cF' - commit --fixup for file under cursor and immediately rebase it

rebase:

  • ri - interactive rebase from ancestore of commit under the cursor
  • rr - continue rebase
  • rs - skip the current commit and continue rebase
  • ra - abort rebase
  • rw - interactive rebase with the commit under the cursor set to reword.
  • rm - interactive rebase with the commit under the cursor set to edit.
  • rd - interactive rebase with the commit under the cursor set to drop.

LSP

  • SPACE-Sl - LSP Info
  • SPACE-ali - LSP Info
  • SPACE-all - LSP Log
  • SPACE-als - LSP Start
  • SPACE-alS - LSP Stop
  • SPACE-alr - LSP Restart

Null LS

null-ls

NullLS is a generic LSP server that can use external tools to provide LSP 'formatting' and 'diagnostic' capabilities.

To show null-ls status: <leader>Sn

Sessions

  • SPACE-q - to access Sessions menu

Status Line

  • \S - toggle Status Line

dotvim-lua's People

Contributors

vitaly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.