Git Product home page Git Product logo

deoppet.nvim's People

Contributors

e-kwsm avatar gitter-badger avatar shougo avatar zwodahs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deoppet.nvim's Issues

Wrongly expands snippets that contain comment

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

For example, doc_interface_function is expanded as

/**
 *  * 
 *   *
 *    * @revoidturn 
 *     * @author 
 *      **/
function ();

Here, only deoppet_jump_forward is repeated.

  • The cursor jumps to placeholders in the order of occurrence: at first, the cursor jumps to ${4:#:undocumented function} in the second line, instead of ${1} in the bottom.
  • Automatic formatting affects adversely, resulting in deviation of placeholder positions

Expected

/**
 * 
 *
 * @return void
 * @author 
 **/
function ();

Environment Information

  • plugin version(SHA1): c73d3e8
  • OS: Debian 10.7
  • neovim/Vim version: NVIM v0.5.0-dev+nightly-419-g2ea312769
  • :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

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

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)

The reproduce ways from neovim/Vim starting (Required!)

  1. Open a PHP file
  2. Expand doc_interface_function and jump forward (<C-f>) several times

Screen shot (if possible)

doc_interface_function

Compatibility with neosnippet

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

I'm just curious if deoppet will support the following features of neosnippet:

  • delete
  • extends
  • include
  • source

I'm trying to use snippets for neosnippet but parser error is raised.

Is it usable now?

So, do you recommend to use it now or should I stick with neosnippet for a while?

Cannot jump forward to the second or subsequent placeholders

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

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.

Expected

deoppet_jump_forward jumps to the second or subsequent placeholders.

Environment Information

  • 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

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

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)

The reproduce ways from neovim/Vim starting (Required!)

Let’s try to expand a C snippet, ifelse:

  1. Open a C file
  2. Insert ifelse and then C-k: the snippet is expanded and the cursor jumps to the first placeholder
  3. Press C-f: the cursor should jump to the second placeholder but neovim exits insert mode

start

my issue is that you have not started development yet.

looks around nonchalantly πŸ‘€ and whistles

It does say "Issues" ... 😏

Nested Snippets

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:

Shougo/neosnippet.vim#423

Thank you for all the work you do on this project.

Write code

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?

deoppet does not expand a snippet with leading or trailing spaces as expected

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

Try to expand a snippet, e.g. snippet, at the cursor position:

  1. If a line ends with a snippet trigger and a space (snippet\s$), deoppet does not expand it
  2. If a line ends with a space, a snippet trigger, a space and any character (\ssnippet\s.\+$), deoppet expands it before the leading space

Expected

  1. Snippet is expanded before the trailing space
  2. Snippet is expanded between the leading and the trailing spaces

Environment Information

  • plugin 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

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

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)

The reproduce ways from neovim/Vim starting (Required!)

Open the following C file:

	printf
	printf	
	printf	//
// the 2nd line has a trailing space

Try to expand each printf by Ctrlk.

  1. Works as expected
  2. printf is not expanded
  3. printf is expanded as printf("\|n"); (| is the cursor position)

Screen shot (if possible)

printf

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.