add(clang-format): better parameter alignment

This commit is contained in:
Léana 江 2023-05-07 13:34:47 +02:00 committed by Léana 江
parent fb38cd2748
commit 474158052c
2 changed files with 9 additions and 0 deletions

View file

@ -3,6 +3,11 @@ local luasnip = require "luasnip"
require "luasnip.loaders.from_vscode".lazy_load({ paths = { "./snippets" } })
luasnip.config.set_config({
region_check_events = 'InsertEnter',
delete_check_events = 'InsertLeave'
})
local has_words_before = function()
unpack = unpack or table.unpack
local line, col = unpack(vim.api.nvim_win_get_cursor(0))