oni icon indicating copy to clipboard operation
oni copied to clipboard

Vue / ES6 closing brackets

Open iwasingh opened this issue 8 years ago • 3 comments

Oni Version: 0.3.6 Neovim Version (Linux only): 0.3.1 Operating System: Debian 9

Issue: Auto-closing functions brackets does not work. I'm using vue languange server, in particular i'm using Vue 2. Whenever i create a new method/function and type {, oni does not create the closing function bracket }. Everything else is working perfectly.

Expected behavior: A closing bracket } Actual behavior: A closing bracket is missing } Steps to reproduce: type

export default {
 methods: {
     myFunc () {
----> } is missing
--> } is missing
}

This is my config.js

module.exports = {
  "language.vue.languageServer.command": "vls",
  "language.vue.autoClosingPairs.enabled": true,
  "oni.useDefaultConfig": false,
  "oni.loadInitVim": true
}

This is my init.vim

set number
set ignorecase
set smartcase
set expandtab
set shiftwidth=2
set softtabstop=2

Thanks in advance

iwasingh avatar Aug 07 '18 10:08 iwasingh

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Aug 07 '18 10:08 oni-bot

Sorry for the late reply!

I'm not able to reproduce this, could you give some additional information about what keyboard layout you are using, in case that is causing any issues with the auto complete functionality.

As a temporary measure, you can also use any of the existing auto parentheses plugins, until we hopefully fix these awkward cases.

CrossR avatar Aug 12 '18 10:08 CrossR

Sorry for the late reply!

No problem!

I'm using Italian layout if it helps. I didn't see others having the same issue so, maybe is my configuration problem.
As you suggest, a plugin will definitely work.

Thanks for your time

iwasingh avatar Aug 13 '18 01:08 iwasingh