All Projects → neoclide → Coc Lists

neoclide / Coc Lists

Common lists for coc.nvim

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Coc Lists

Awesome Computer History
An Awesome List of computer history videos, documentaries and related folklore
Stars: ✭ 2,149 (+1121.02%)
Mutual labels:  list
Interview
Everything you need to prepare for your technical interview
Stars: ✭ 14,788 (+8302.27%)
Mutual labels:  list
Animate.vim
A Vim Window Animation Library
Stars: ✭ 173 (-1.7%)
Mutual labels:  neovim
Vim Subversive
Vim plugin providing operator motions to quickly replace text
Stars: ✭ 168 (-4.55%)
Mutual labels:  neovim
Vim Netranger
A ranger-like system/cloud storage explorer for Vim, bringing together the best of Vim, ranger, and rclone.
Stars: ✭ 170 (-3.41%)
Mutual labels:  neovim
Telegrambotslist
A list of all Telegram bots source hosted on github.
Stars: ✭ 172 (-2.27%)
Mutual labels:  list
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (-7.39%)
Mutual labels:  neovim
Vim Noctu
A Vim color scheme for 16-color terminals
Stars: ✭ 174 (-1.14%)
Mutual labels:  neovim
Neotex
latex live preview - plugin for neovim and vim 8
Stars: ✭ 170 (-3.41%)
Mutual labels:  neovim
Kommentary
Neovim commenting plugin, written in lua.
Stars: ✭ 172 (-2.27%)
Mutual labels:  neovim
Russian Words
List of Russian words
Stars: ✭ 168 (-4.55%)
Mutual labels:  list
Dotfiles
vim, zsh, git, homebrew, nvm, neovim - my whole world
Stars: ✭ 2,217 (+1159.66%)
Mutual labels:  neovim
Vim Test
Run your tests at the speed of thought
Stars: ✭ 2,287 (+1199.43%)
Mutual labels:  neovim
Awesome Anime Sources
A curated list of everything anime.
Stars: ✭ 164 (-6.82%)
Mutual labels:  list
Hackingtools
Exhaustive list of hacking tools
Stars: ✭ 174 (-1.14%)
Mutual labels:  list
Neovim Component
<neovim-editor> WebComponent to embed Neovim to your app with great ease
Stars: ✭ 164 (-6.82%)
Mutual labels:  neovim
Awesome Graphql
Awesome list of GraphQL
Stars: ✭ 13,020 (+7297.73%)
Mutual labels:  list
Awesome Deep Learning Music
List of articles related to deep learning applied to music
Stars: ✭ 2,195 (+1147.16%)
Mutual labels:  list
Awesome Umbraco
A curated list of awesome Umbraco packages, resources and tools
Stars: ✭ 173 (-1.7%)
Mutual labels:  list
Vim Janah
Vim colorscheme.
Stars: ✭ 172 (-2.27%)
Mutual labels:  neovim

coc-lists

Some basic list sources for coc.nvim

Including:

  • [x] buffers current buffer list.
  • [x] cmdhistory history of commands.
  • [x] colors colors schemes.
  • [x] files search files from current cwd.
  • [x] filetypes file types.
  • [x] grep grep text from current cwd.
  • [x] helptags helptags of vim.
  • [x] lines search lines by regex patterns.
  • [x] locationlist items from vim's location list.
  • [x] maps key mappings.
  • [x] marks marks of vim.
  • [x] mru most recent used files.
  • [x] quickfix items from vim's quickfix list.
  • [x] registers registers of vim.
  • [x] searchhistory history of search.
  • [x] sessions session list.
  • [x] tags search tag files.
  • [x] vimcommands available vim commands.
  • [x] windows windows of vim.
  • [x] words search word in current buffer.

For snippets list, use coc-snippets.

For git related list, use coc-git.

For yank history, use coc-yank.

Install

In your vim/neovim, run command:

:CocInstall coc-lists

Checkout :h coc-list for usage.

Options

Tip: type ? on normal mode to get detail help of current list.

Available options for coc-lists:

  • session.saveOnVimLeave Save session on VimLeavePre., default to true
  • session.directory directory for session files, default to ~/.vim/sessions
  • session.restartOnSessionLoad Restart vim with cwd changed on session load, support neovim on iTerm2 only.
  • lists.disabledLists: List names to disable form load., default: []
  • list.source.files.command: Command used for search for files, default: ""
  • list.source.files.args: Arguments for search command, default: []
  • list.source.files.excludePatterns: Minimatch patterns that should be excluded., default: []
  • list.source.mru.maxLength: Max length of mru list., default: 1000
  • list.source.mru.ignoreGitIgnore: Ignore git ignored files., default: false
  • list.source.mru.excludePatterns: Minimatch patterns that should be excluded., default: ["**/.git/*","/tmp/*"]
  • list.source.grep.useLiteral: Use literal match unless specified regex options, default: true., default: true
  • list.source.grep.command: Command used for grep, default to 'rg'., default: "rg" could be rg or ag.
  • list.source.grep.maxColumns: Don't print lines longer than this limit in bytes, ripgrep only..
  • list.source.tags.command: Command used for generate tags., default: "ctags -R ."
  • list.source.grep.args: Arguments for grep command, always used for grep, default: []
  • list.source.grep.excludePatterns: Minimatch patterns of files that should be excluded, use .ignore file is recommended., default: []

Commands

  • mru.validate remove none exists files from mru list.
  • tags.generate generate tags of current project (in current cwd).
  • session.save save current vim state to session file.
  • session.load load exists session file.

F.A.Q

Q: Hidden files not exists using files source.

A: You have to pass --hidden to ripgrep by using configuration:

`list.source.files.args`: ['--hidden', '--files']

Q: How to ignore files using files/grep source.

A: You can add .ignore file in your project root, which would be respected by ripgrep or use list.sourcefiles.excludePatterns configuration.

Q: How to make grep easier?

A: Create custom command like:

" grep word under cursor
command! -nargs=+ -complete=custom,s:GrepArgs Rg exe 'CocList grep '.<q-args>

function! s:GrepArgs(...)
  let list = ['-S', '-smartcase', '-i', '-ignorecase', '-w', '-word',
        \ '-e', '-regex', '-u', '-skip-vcs-ignores', '-t', '-extension']
  return join(list, "\n")
endfunction

" Keymapping for grep word under cursor with interactive mode
nnoremap <silent> <Leader>cf :exe 'CocList -I --input='.expand('<cword>').' grep'<CR>

Q: How to grep by motion?

A: Create custom keymappings like:

vnoremap <leader>g :<C-u>call <SID>GrepFromSelected(visualmode())<CR>
nnoremap <leader>g :<C-u>set operatorfunc=<SID>GrepFromSelected<CR>g@

function! s:GrepFromSelected(type)
  let saved_unnamed_register = @@
  if a:type ==# 'v'
    normal! `<v`>y
  elseif a:type ==# 'char'
    normal! `[v`]y
  else
    return
  endif
  let word = substitute(@@, '\n$', '', 'g')
  let word = escape(word, '| ')
  let @@ = saved_unnamed_register
  execute 'CocList grep '.word
endfunction

Q: How to grep current word in current buffer?

A: Create kep-mapping like:

nnoremap <silent> <space>w  :exe 'CocList -I --normal --input='.expand('<cword>').' words'<CR>

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].