Comments (1)
Sorry. I don't want to add this and I don't recommend this feature.
Because this feature is ad-hoc. Ideally, it should be supported on the language server side.
If you still want to add this feature, you can send (
in the event of nvim-cmp for your expected situation.
local cmp = require('cmp')
cmp.event:on('confirm_done', function(evt)
local entry = evt.entry
if entry:get_kind() == cmp.lsp.CompletionItemKind.Function then
vim.api.nvim_feedkeys('(', 'i', true)
end
end)
from nvim-insx.
Related Issues (17)
- Assets HOT 2
- FR: Support auto-pairing in vim's cmdline HOT 1
- Consider endwise recipe HOT 3
- Add the ability to compose multiple recipes as single recipe
- Change request: remove ["<"] pair rule in standard preset HOT 1
- FR: Add indicator API ?
- The order of closing brackets is reversed
- Rule priority? HOT 4
- README.md .mov is broken HOT 2
- Behavior when entering three consecutive backquotes in Markdown
- [Feature Request] Allow disable some of the default preset in certain circumstance HOT 2
- unexpected dot-repeat: `[]()` -> `[()]`, `[](foo.html)` -> `[(foo.html)]` HOT 1
- auto_pair does not work with \( \)
- Breaking changes HOT 3
- built-in presets
- FR: do not auto-add `'` when in comment region HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-insx.