Wu Zhenyu 69823d6549 🔥 Remove coc completion source code
https://github.com/Freed-Wu/requirements-language-server
realize a language server for requirements.txt which has more functions
and better performance and support all editors which supports LSP.

The coc completion source code of this repository can be removed to
avoid the conflict of coc.nvim user.
2023-06-18 16:34:23 +08:00
2022-10-18 18:28:42 +09:00
2022-10-18 18:28:42 +09:00
2022-10-18 18:28:42 +09:00
2021-03-18 14:49:09 -05:00
2018-03-26 20:00:06 +09:00
2022-10-18 18:28:42 +09:00
2022-03-30 20:20:56 +09:00
2022-03-30 20:20:56 +09:00
2015-11-25 01:02:36 +09:00
2018-02-02 19:42:37 +09:00

requirements.txt.vim

VimScript GitHub Release MIT License GitHub contributors Known Vulnerabilities

the Requirements File Format syntax support for Vim.

requirements txt-sc

Table of Contents

Installation

e.g.) vim-plug, dein.vim, NeoBundle, Vundle and more

" vim-plug
Plug 'raimon49/requirements.txt.vim'

" vim-plug with on-demand
Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}

" dein.vim
call dein#add('raimon49/requirements.txt.vim')

" dein.vim with lazy
call dein#add('raimon49/requirements.txt.vim', {'lazy': 1, 'on_ft': 'requirements'})

" NeoBundle
NeoBundle 'raimon49/requirements.txt.vim'

" Vundle
Plugin 'raimon49/requirements.txt.vim'

Pathogen (https://github.com/tpope/vim-pathogen)

$ git clone https://github.com/raimon49/requirements.txt.vim.git ~/.vim/bundle/requirements.txt.vim

Manually

Deploy all files under $VIMRUNTIME.

File detection

requirements.txt.vim detects filename automatically.

  • requirements.txt
  • constraints.txt
  • dev-requirements.txt
  • requirements/dev.txt
  • requires/tests.txt
  • requirements.in
    • Use for pip-tools (a.k.a. Better dependency management tool).
  • *.pip

Customize

If you want to customize it.

" Add 'freeze' to your .vimrc as a detection pattern
let g:requirements#detect_filename_pattern = 'freeze'
$ pip freeze > my-freeze.txt
# You can edit it as a 'Requirements File Format'
$ vim my-freeze.txt

Support for make

When the pip-compile command is detected, make will behave more intelligently while editing the requirements.in file.

You can get support with the following commands:

  • :make
  • :make -U

License

MIT License

Similar Projects

Description
the Requirements File Format syntax support for Vim
Readme 184 KiB
Languages
Vim Script 95.9%
Ruby 4.1%