mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: fix luasnip Tab behavior
This commit is contained in:
parent
11279a0212
commit
03f16db7b3
1 changed files with 5 additions and 1 deletions
|
|
@ -499,7 +499,11 @@ require('lspconfig').tsserver.setup({
|
||||||
local cmp = require 'cmp'
|
local cmp = require 'cmp'
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
luasnip.config.setup({})
|
luasnip.config.setup({
|
||||||
|
-- https://stackoverflow.com/questions/70366949/
|
||||||
|
region_check_events = "CursorHold,InsertLeave",
|
||||||
|
delete_check_events = "TextChanged,InsertEnter",
|
||||||
|
})
|
||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
snippet = {
|
snippet = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue