shougo / deoppet.nvim Goto Github PK
View Code? Open in Web Editor NEWThe dark powered snippet plugin for neovim
License: Other
The dark powered snippet plugin for neovim
License: Other
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
For example, doc_interface_function
is expanded as
/**
* *
* *
* * @revoidturn
* * @author
* **/
function ();
Here, only deoppet_jump_forward
is repeated.
${4:#:undocumented function}
in the second line, instead of ${1}
in the bottom./**
*
*
* @return void
* @author
**/
function ();
:checkhealth
or :CheckHealth
result(neovim only):health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
- INFO: $VTE_VERSION='5402'
- INFO: $COLORTERM='truecolor'
health#provider#check
========================================================================
## Clipboard (optional)
- WARNING: No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.
- ADVICE:
- :help |clipboard|
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
/usr/bin/python2 does not have the "neovim" module. :help |provider-python|
/usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
python2.6 not found in search path or not executable.
/usr/bin/python does not have the "neovim" module. :help |provider-python|
- INFO: Executable: Not found
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.
- INFO: Executable: /usr/bin/python3
- INFO: Python version: 3.7.3
- INFO: pynvim version: 0.4.2
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- WARNING: `ruby` and `gem` must be in $PATH.
- ADVICE:
- Install Ruby and verify that `ruby` and `gem` commands work.
## Node.js provider (optional)
- WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
- ADVICE:
- Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.
## Perl provider (optional)
- ERROR: perl provider error:
- ADVICE:
- "Neovim::Ext" cpan module is not installed
set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath+=/path/to/deoppet.nvim
call deoppet#initialize()
call deoppet#custom#option('snippets',
\ map(globpath(&runtimepath, 'neosnippets', 1, 1),
\ "{ 'path': v:val }"))
imap <C-k> <Plug>(deoppet_expand)
imap <C-f> <Plug>(deoppet_jump_forward)
imap <C-b> <Plug>(deoppet_jump_backward)
smap <C-f> <Plug>(deoppet_jump_forward)
smap <C-b> <Plug>(deoppet_jump_backward)
doc_interface_function
and jump forward (<C-f>
) several timesWarning: I will close the issue without the minimal init.vim and the reproduction instructions.
I'm just curious if deoppet will support the following features of neosnippet:
I'm trying to use snippets for neosnippet but parser error is raised.
Like neosnippet
So, do you recommend to use it now or should I stick with neosnippet for a while?
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
deoppet_jump_forward
cannot jump to the second or subsequent placeholders.
Bisect reveals that 16f30ee is the first bad commit; deoppet works as expected if the commit is reverted.
deoppet_jump_forward
jumps to the second or subsequent placeholders.
plugin version(SHA1): e62c1c7
OS: Debian 10.9
neovim/Vim version: NVIM v0.5.0-dev+nightly-635-gb518b9076
:checkhealth
or :CheckHealth
result(neovim only):
health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
- INFO: $VTE_VERSION='5402'
- INFO: $COLORTERM='truecolor'
health#provider#check
========================================================================
## Clipboard (optional)
- WARNING: No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.
- ADVICE:
- :help |clipboard|
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
/usr/bin/python2 does not have the "neovim" module. :help |provider-python|
/usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
python2.6 not found in search path or not executable.
/usr/bin/python does not have the "neovim" module. :help |provider-python|
- INFO: Executable: Not found
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.
- INFO: Executable: /usr/bin/python3
- INFO: Python version: 3.7.3
- INFO: pynvim version: 0.4.3
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- WARNING: `ruby` and `gem` must be in $PATH.
- ADVICE:
- Install Ruby and verify that `ruby` and `gem` commands work.
## Node.js provider (optional)
- WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
- ADVICE:
- Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.
## Perl provider (optional)
- ERROR: perl provider error:
- ADVICE:
- "Neovim::Ext" cpan module is not installed
set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath+=/path/to/deoppet.nvim
set runtimepath+=/path/to/neosnippet-snippets
call deoppet#initialize()
call deoppet#custom#option('snippets',
\ map(globpath(&runtimepath, 'neosnippets', 1, 1),
\ "{ 'path': v:val }"))
imap <C-k> <Plug>(deoppet_expand)
imap <C-f> <Plug>(deoppet_jump_forward)
imap <C-b> <Plug>(deoppet_jump_backward)
smap <C-f> <Plug>(deoppet_jump_forward)
smap <C-b> <Plug>(deoppet_jump_backward)
Letβs try to expand a C snippet, ifelse
:
ifelse
and then C-k: the snippet is expanded and the cursor jumps to the first placeholdermy issue is that you have not started development yet.
looks around nonchalantly π and whistles
It does say "Issues" ... π
I wanted to ask if deoppet will have the functionality to handle nested snippets? I know this was a issue difficult to solve in neosnippets:
Thank you for all the work you do on this project.
I never I write code for a plugin... well I know the basic VimL, I mean
Can you guide me where to start to help you with this plugin?
Ultisnips syntax parser is needed.
It is extended feature.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Try to expand a snippet, e.g. snippet
, at the cursor position:
snippet\s$
), deoppet does not expand it\ssnippet\s.\+$
), deoppet expands it before the leading spaceplugin version(SHA1): d53915b
OS: Debian 10.6
neovim/Vim version: NVIM v0.5.0-nightly-126-g090551a80
:checkhealth
or :CheckHealth
result(neovim only):
health#nvim#check
========================================================================
## Configuration
- ERROR: Locale does not support UTF-8. Unicode characters may not display correctly.
$LANG=C $LC_ALL= $LC_CTYPE=
- ADVICE:
- If using tmux, try the -u option.
- Ensure that your terminal/shell/tmux/etc inherits the environment, or set $LANG explicitly.
- Configure your system locale.
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
- INFO: $VTE_VERSION='5402'
- INFO: $COLORTERM='truecolor'
health#provider#check
========================================================================
## Clipboard (optional)
- WARNING: No clipboard tool found. Clipboard registers (`"+` and `"*`) will not work.
- ADVICE:
- :help |clipboard|
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
/usr/bin/python2 does not have the "neovim" module. :help |provider-python|
/usr/bin/python2.7 does not have the "neovim" module. :help |provider-python|
python2.6 not found in search path or not executable.
/usr/bin/python does not have the "neovim" module. :help |provider-python|
- INFO: Executable: Not found
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.
- INFO: Executable: /usr/bin/python3
- INFO: Python version: 3.7.3
- INFO: pynvim version: 0.4.2
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- WARNING: `ruby` and `gem` must be in $PATH.
- ADVICE:
- Install Ruby and verify that `ruby` and `gem` commands work.
## Node.js provider (optional)
- WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
- ADVICE:
- Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.
## Perl provider (optional)
- ERROR: perl provider error:
- ADVICE:
- "Neovim::Ext" cpan module is not installed
set runtimepath+=/path/to/deoppet.nvim
set list " visualize hard tabs
call deoppet#initialize()
call deoppet#custom#option('snippets_dirs', ['/path/to/neosnippet-snippets/neosnippets'])
imap <C-k> <Plug>(deoppet_expand)
imap <C-f> <Plug>(deoppet_jump_forward)
imap <C-b> <Plug>(deoppet_jump_backward)
smap <C-f> <Plug>(deoppet_jump_forward)
smap <C-b> <Plug>(deoppet_jump_backward)
Open the following C file:
printf
printf
printf //
// the 2nd line has a trailing space
Try to expand each printf
by Ctrlk.
printf
is not expanded printf
is expanded as printf("\|n");
(|
is the cursor position)A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.