Code Monkey home page Code Monkey logo

lvim's Introduction

Readme

Table of Contents (๐Ÿ”Ž Click to expand/collapse)

ChangeLog

20210915

ไฝฟ็”จbufferlineๆ›ฟๆขbarbarไฝœไธบๆ ‡็ญพ็ฎก็†

Env

neovim

github

Language-Server Protocol (LSP)

To leverage LSP auto-completions and other functionalities, after you open a file in Neovim, run :MasonInstall <server> to use mason installation feature. Use Tab to list available servers.

Included Plugins

20211005

ๆ”ฏๆŒ็ฒ˜่ดดๅŽ†ๅฒๆต่งˆ

nvim-neoclip

sudo apt-get install sqlite3 libsqlite3-dev

blackๅฎ‰่ฃ…

pip3 install black -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

vale

curl -sfL https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh -s latest

markdownlink

Plugins

Total: 58

่กฅๅ…จ

github/copilot.vim - ๅ‡บ่‡ณๅพฎ่ฝฏ็š„ไธ€ๆฌพAI็”Ÿๆˆไปฃ็ ็š„ๆ’ไปถ abecodes/tabout.nvim

karb94/neoscroll.nvim - ๆปšๅฑๆ’ไปถ AckslD/nvim-neoclip.lua - ็ฒ˜่ดดๅŽ†ๅฒๆต่งˆ

ไธป้ข˜

Theme Time of the day
rose-pine [1am, 9am)
tokyonight [9am, 5pm)
catppuccin [5pm, 9pm)
kanagawa [9pm, 11:59pm), [0am, 1am]

ไฝฟ็”จ

  1. ๅ—ๆณจ้‡Š -visual_modeไธ‹ๆŒ‰/

ๆ”ฏๆŒ่ฟœ็จ‹ssh็™ปๅฝ•ๅŽ็š„ๅคๅˆถ็ฒ˜่ดด

tools/clipboard-provider

Custom Key-mappings

Note that,

  • Leader key set as Space
Key-mappings (๐Ÿ”Ž Click to expand/collapse) Modes: ๐=normal ๐•=visual ๐’=select ๐ˆ=insert ๐‚=command

UI

Key Mode Action Plugin or Mapping
Space+e ๐ Open file tree NvimTree
Space+o ๐ Open symbols Symbols-outline
Space+f ๐ Open file finder Telescope
Space+h ๐ Remove highlight nohlsearch<
Space+/ ๐ Toggle comment Comment.nvim
Space+? ๐ Open cheats cheat.sh
Space+' ๐ Open marks which-key marks
Space+z ๐ Zen mode zen-mode.nvim
Space+P ๐ Projects project.nvim
Ctrl+s ๐ˆ show signature help vim.lsp.buf.signature_help()
Alt+s ๐ˆ snippet selection telescope luasnip extension

Motion

Key Mode Action Plugin or Mapping
f ๐ find next chacharacter HopChar1CurrentLineAC or Lightspeed_f
F ๐ find prprevious character HopChar1CurrentLineBC or Lightspeed_F
s ๐ find chacharacter HopChar2 or Lightspeed_s
S ๐ find word HopWord or Lightspeed_S
Alt+a ๐ˆ select all ggVG
Alt+a ๐ increment number C-A
Alt+x ๐ decrement number C-X

LSP

Key Mode Action
Tab / Shift-Tab ๐ˆ Navigate completion-menu
Enter ๐ˆ Select completion or expand snippet
Upor Down ๐ˆ Movement in completion pop-up
]+d ๐ Next diagnostic
[+d ๐ Previous diagnostic
Space+l+j or Space+l+k ๐ Next/previous LSP diagnostic
Ctrl+e ๐ˆ Close pop-up
Tab / Shift-Tab ๐ˆ ๐’ Navigate snippet placeholders
Space+l ๐ keybindings for lsp
g+a ๐ code actions
g+d ๐ goto definition
g+D ๐ goto declaration
g+I ๐ goto implementation
g+p ๐ peek implementation
g+r ๐ goto references
g+s ๐ show signature help

Plugin: AsyncTasks

Key Mode Action
Space+m+f ๐ Build File
Space+m+p ๐ Build Project
Space+m+e ๐ Edit Tasks
Space+m+l ๐ List Tasks
Space+r+f ๐ Run File
Space+r+p ๐ Run Project

Plugin: Gitsigns

Key Mode Action
Space+g+j or Space+g+k ๐ Next/previous Git hunk
Space+g+p ๐ Preview hunk
Space+g+l ๐ Blame line
Space+g+s ๐ ๐• Stage hunk
Space+g+u ๐ Undo stage hunk
Space+g+R ๐ ๐• Reset hunk

Plugin: LazyGit

Key Mode Action
Space+g+g ๐ Open lazy git UI

Plugin: Telescope

Key Mode Action
Space+f ๐ File search
Space+P ๐ Project search
Space+s+s ๐ Grep search
Space+F+l ๐ Reopen last search
Space+b+f ๐ Buffers
Space+s+c ๐ Colorschemes
Space+s+C ๐ Command history
Space+s+h ๐ Find help
Space+s+k ๐ Keymap search
Space+s+M ๐ Man Pages search
Space+s+r ๐ Register search
Space+s+t ๐• Grep string under cursor
Space+s+t ๐ Grep raw
Space+F+b ๐ Builtin search
Space+F+f ๐ Current buffer search
Space+F+g ๐ Git files search
Space+F+i ๐ Installed plugins
Space+F+p ๐ Project search
Space+F+i ๐ Installed plugins
Within Telescope window
CR ๐ˆ ๐ Multi/Single Open
Ctrl+c ๐ˆ ๐ Exit telescope
Ctrl+v ๐ˆ ๐ Open in a vertical split
Ctrl+s ๐ˆ ๐ Open in a split
Ctrl+t ๐ˆ ๐ Open in a tab
Tab ๐ˆ ๐ Toggle Selection + Next
Shift+Tab ๐ˆ ๐ Toggle Selection + Prev

Plugin: Harpoon

Key Mode Action
Space+Space ๐ show harpoon shortlist
Space+a ๐ add file to shortlist
Space+1 ๐ jump to first file on shortlist
Space+2 ๐ jump to second file on shortlist
Space+3 ๐ jump to third file on shortlist
Space+4 ๐ jump to forforthle on shortlist

Plugin: Neogen

Key Mode Action
Space+n+c ๐ class docdocumentation
Space+n+f ๐ function docdocumentation

Plugin: Persistence

Key Mode Action
Space+q+d ๐ quit without saving session
Space+q+l ๐ restore last session
Space+q+s ๐ restore last session from current dir

Plugin: Bufferline

Key Mode Action
Space+b+f ๐ find buffer
Space+b+b ๐ toggle buffer groups
Space+b+p ๐ pick buffer
Space+b+1 ๐ goto buffer 1
Space+b+h ๐ Close all to left
Space+b+l ๐ Close all to right
Space+b+D ๐ Sort by directory
Space+b+L ๐ Sort by language

Plugin: Trouble

Key Mode Action
Space+t+d ๐ diagnostics
Space+t+f ๐ definitions
Space+t+r ๐ references
Space+t+t ๐ todo
Space+t+w ๐ workspace diagnostics

Plugin: Copilot

Key Mode Action
Ctrl+h ๐ˆ copilot#Accept("<CR>")
Ctrl+e ๐ˆ close cmp menu
Alt+] ๐ˆ <Plug>(copilot-next)
Alt+[ ๐ˆ <Plug>(copilot-previous)
Alt+</kbd> ๐ˆ "<Cmd>vertical Copilot panel<CR>"

clangd_extensions.nvim

Recommended Linters

You can use mason to install these:

cargo install selene  # if you want to use selene instead of luacheck
brew install hadolint  # if you want to lint dockerfiles
pip install vim-vint  # for vim linting
# install llvm and clang_format for clang stuff
npm install -g @fsouza/prettierd # if you want to use prettierd
pip install yapf flake8 black  # for python stuff
# if you want to use the markdown thingy
brew install vale markdownlint-cli
cp -r ~/.config/lvim/.vale ~/.config/vale
# fix the address inside .vale.ini
cp ~/.config/lvim/vale_config.ini ~/.vale.ini
# if you want the latex stuff
# brew install --cask mactex-no-gui # for mac
# or install zathura and chktex on linux

Extern

comment

visual_mode gc line comment gb block comment

Task

  • [โœ“] ๅธฆๅ›พๆ ‡ๅญ—ไฝ“
  • [] chatgpt็š„ๆ’ไปถ็ป“ๆž„

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.