diff --git a/lua/cmp/config/mapping.lua b/lua/cmp/config/mapping.lua index ad8c2ddf7..c2028c890 100644 --- a/lua/cmp/config/mapping.lua +++ b/lua/cmp/config/mapping.lua @@ -1,7 +1,7 @@ local types = require('cmp.types') local misc = require('cmp.utils.misc') local feedkeys = require('cmp.utils.feedkeys') -local keymap = require('cmp.utils.keymap') +local keymap = require('cmp.utils.keymap') local mapping = setmetatable({}, { __call = function(_, invoke, modes) @@ -39,7 +39,7 @@ mapping.preset.insert = function(override) }, [''] = { i = mapping.abort(), - } + }, }) end @@ -54,7 +54,7 @@ mapping.preset.cmdline = function(override) else feedkeys.call(keymap.t(''), 'n') end - end + end, }, [''] = { c = function() @@ -64,7 +64,7 @@ mapping.preset.cmdline = function(override) else feedkeys.call(keymap.t(''), 'n') end - end + end, }, [''] = { c = function(fallback) @@ -74,7 +74,7 @@ mapping.preset.cmdline = function(override) else fallback() end - end + end, }, [''] = { c = function(fallback) @@ -84,7 +84,7 @@ mapping.preset.cmdline = function(override) else fallback() end - end + end, }, [''] = { c = mapping.close(), diff --git a/lua/cmp/utils/misc.lua b/lua/cmp/utils/misc.lua index 73eef628e..9535f2888 100644 --- a/lua/cmp/utils/misc.lua +++ b/lua/cmp/utils/misc.lua @@ -251,4 +251,3 @@ misc.redraw = setmetatable({ }) return misc - diff --git a/utils/install_stylua.sh b/utils/install_stylua.sh index 963416ea0..7e23bbead 100755 --- a/utils/install_stylua.sh +++ b/utils/install_stylua.sh @@ -4,8 +4,7 @@ set -eu pipefall declare -r INSTALL_DIR="$PWD/utils" declare -r RELEASE="0.10.0" -declare -r OS="linux" -# declare -r OS="$(uname -s)" +declare -r OS=$([ "$(uname -s)" == "Darwin" ] && echo "macos" || echo "linux") declare -r FILENAME="stylua-$RELEASE-$OS" declare -a __deps=("curl" "unzip")