• Stars
    star
    18
  • Rank 1,170,154 (Top 24 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VCS support for Neovim ๐ŸŒฑ

neovcs.vim ๐ŸŒฑ

VCS support for Neovim

Basic support for:

Installation ๐Ÿง™

Lazy

Add the following lines on the NeoVim config file (Lua):

require('lazy').setup({
  {
    'https://github.com/adelarsq/neovcs.vim',
    keys = {
        '<leader>v',
    },
    config = function ()
        require('neovcs').setup()
    end
  },
}, {})

Plug

Add the following lines on the Vim/NeoVim config file:

Plug 'https://github.com/adelarsq/neovcs.vim'

lua require('neovcs').setup()

Then open the editor and install with PlugInstall.

Dein

Add the following lines on the Vim/NeoVim config file:

call dein#add('adelarsq/neovcs.vim')

lua require('neovcs').setup()

Then open the editor and install with call dein#install().

Packer

use 'adelarsq/neovcs.vim'

require('neovcs').setup()

Configurations ๐Ÿงฉ

Emojis on commit messages are disabled by default. Enabled with vim.g.neovcs_enable_emojis == true.

Mappings ๐Ÿ—บ

  • <leader>v - help
  • <leader>va - add file. Parameters:
    • 1 Changelist name (just for SVN at moment)
  • <leader>vA - add all files
  • <leader>vb - blame line
  • <leader>vB - blame file
  • <leader>vc - commit. Parameters:
    • 1 Message
    • 2 Changelist name (just for SVN at moment)
  • <leader>vC - commit with amend. Parameters:
    • 1 Message
  • <leader>vd - hunk diff
  • <leader>vD - file diff. Parameters:
    • 1 Revision (just for SVN at moment)
  • <leader>vo - open URL for current line
  • <leader>vO - open URL for repository
  • <leader>vm - mark conflict as resolved for current file
  • <leader>vn - go to next hunk
  • <leader>vN - go to previous hunk
  • <leader>vl - log for current file
  • <leader>vL - log for the project
  • <leader>vr - reload changes (get/send changes from/to remote)
  • <leader>vp - get changes from remote
  • <leader>vP - send changes to remote
  • <leader>vs - status
  • <leader>vt - show branchs
  • <leader>vu - hunk undo
  • <leader>vU - undo last commit
  • <leader>vx - remove file
  • <leader>vX - revert last commit

Commands ๐Ÿ•น

  • VcsName() - get the VCS name. Can be used on status line plugins to show the VCS name for the current repository
  • VcsStatusLine() - get the repository status to use on status lines
  • VcsBranchName() - get the name for the current branch

Supported Plugins ๐Ÿงฉ

  • rcarriga/nvim-notify
  • nvim-tree.lua. Mappings:
    • <leader>va - add file or directory under cursor
    • <leader>vx - remove file or directory under cursor
  • stevearc/oil.nvim. Mappings:
    • <leader>va - add file or directory under cursor
    • <leader>vx - remove file or directory under cursor

Features

Emoji Support for Commits

Just add a prefix based on the table:

Commit Type Title Description Emoji Release Include in changelog
feat Features A new feature โœจ minor wip
fix Bug Fixes A bug Fix ๐Ÿ› patch wip
docs Documentation Documentation only changes ๐Ÿ“š patch if scope is readme wip
style Styles Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) ๐Ÿ’Ž - wip
refactor Code Refactoring A code change that neither fixes a bug nor adds a feature ๐Ÿ“ฆ - wip
perf Performance Improvements A code change that improves performance ๐Ÿš€ patch wip
test Tests Adding missing tests or correcting existing tests ๐Ÿšจ - wip
build Builds Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) ๐Ÿ›  patch wip
ci Continuous Integrations Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) โš™๏ธ - wip
chore Chores Other changes that don't modify src or test files โ™ป๏ธ - wip
revert Reverts Reverts a previous commit ๐Ÿ—‘ - wip

Todo ๐Ÿšง

  • Remove Gitsigns dependency [wip]
  • Root folder based on the current file [wip]
  • Convert all source code to Fennel/Lua
  • Telescope integration
  • Show commit for current line. Based on 1.
  • Hightlight itens on quickfix with diferent colors
  • Support all commands on:
  • On repository for modified files show the lines status, like +3-2~1M

Acknowledgments ๐Ÿ’ก

Thanks goes to these people/projects for inspiration:

Self-plug ๐Ÿ”Œ

If you liked this plugin, also check out:

  • vim-emoji-icon-theme - Emoji/Unicode Icons Theme for Vim and Neovim with support for 40+ plugins and 300+ filetypes
  • neoline.vim - Status Line for Neovim focused on beauty and performance

More Repositories

1

neoline.vim

Status Line for Neovim focused on beauty and performance โœ…๐Ÿ–ค๐Ÿ’™๐Ÿ’›
Lua
189
star
2

fsharp-cheatsheet

An updated cheat sheet for F# ๐Ÿ”ท๐Ÿ–ค๐Ÿ’™๐Ÿ’›
183
star
3

vim-emoji-icon-theme

Emoji/Unicode Icons Theme for Vim and Neovim with support for 40+ plugins and 380+ filetypes ๐ŸŽจ๐Ÿ–ค๐Ÿ’™๐Ÿ’›
Vim Script
77
star
4

vim-matchit

vim-matchit ๐Ÿ–‡๐Ÿ–ค๐Ÿ’™๐Ÿ’›
Vim Script
54
star
5

awesome-make

A list about Make resources ๐Ÿ› 
46
star
6

image_preview.nvim

Image Preview for Neovim ๐Ÿ–ผ
Lua
44
star
7

fsharp_vids

Video collection about F# ๐Ÿ”ท๐ŸŽž๏ธ
38
star
8

neofsharp.vim

Basic F# support for (Neo)Vim ๐Ÿ”ท
Vim Script
34
star
9

awesome-fsharp-project-templates

Awesome F# Project Templates ๐Ÿ”ท๐Ÿ–ค๐Ÿ’™๐Ÿ’›
19
star
10

hotchocolate_fsharp_sample

GraphQL server using .NET 6, F# and Hot Chocolate ๐Ÿซ
18
star
11

vim-hackernews

Hacker News plugin for Vim ๐Ÿ“ฐ๐Ÿ–ค๐Ÿ’™๐Ÿ’›
Python
17
star
12

vim-pomodoro

๐Ÿ… Vim plugin for the Pomodoro time management technique
Vim Script
14
star
13

falco_graphql_sample

Falco GraphQL Sample ๐Ÿฃ๐Ÿ–ค๐Ÿ’™๐Ÿ’›
F#
14
star
14

awesome-fable-react-native

An awesome list about to use Fable with ReactNative ๐Ÿงšโ€โ™€๏ธ
11
star
15

eclipse-gotofile-plugin-kai

๐ŸŒ• Modified version from Muermann's Goto File plugin
Java
11
star
16

vim-grimmjow

๐ŸŒด Vim theme
Vim Script
9
star
17

suave_graphql_sample

Suave GraphQL Sample
F#
8
star
18

awesome-bugs

Awesome Bugs ๐Ÿ›
6
star
19

Vim-Autoclose

โœ’๏ธ Inserts matching bracket, paren, brace or quote
Vim Script
6
star
20

lightlang

General purpose programming language made for peace ๐Ÿ–ค๐Ÿ’™๐Ÿ’›
5
star
21

awesome-fsharp-pt

Uma lista com conteรบdos sobre F# em Lรญngua Portuguesa
4
star
22

vim-tetris

Tetris para Vim
Vim Script
3
star
23

nerdtree-terminal

nerdtree plugin terminal support
Vim Script
2
star
24

Sublime-Theme-Black-Sidebar-Icons

๐Ÿซ A black theme for sidebar from Sublime with icons.
2
star
25

dbunit

๐Ÿ DBUnit
Java
2
star
26

lsp_installer

Lua
1
star
27

adelarsq.github.io

Adelar's Home Page
1
star
28

jms-demo-play-2.1

๐Ÿ“ง jms-demo with play 2.1
Java
1
star
29

fsharp_hints

F# hints
F#
1
star
30

nerdtree-fzf

NERDTree Plugin to use with FZF
Vim Script
1
star
31

nerdtree-far

Nerdtree Plugin to use with Far
Vim Script
1
star
32

showmarks.nvim

Show marks on current buffer
Fennel
1
star
33

Vim-Tetr1s

๐Ÿ“Š Tetris Game for Vim
1
star
34

ignored_files.vim

Plugin to ignore filetypes and buffers for a number of plugins
Vim Script
1
star
35

fsharp_samples

F# Samples
F#
1
star
36

learn_fsharp_tweets

Learn F# Tweets ๐Ÿ”ท
1
star
37

BufJump

๐Ÿš€ Mapping to manage jump between buffer
Vim Script
1
star
38

Snake.vim

๐Ÿ Snake Game for Vim
Vim Script
1
star