summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 4f6947d..729e2f2 100644
--- a/init.lua
+++ b/init.lua
@@ -1,3 +1,18 @@
+-- Copyright (c) 2023-2024 Florian Fischer. All rights reserved.
+--
+-- vis-snippets is free software: you can redistribute it and/or modify it under
+-- the terms of the GNU General Public License as published by the Free Software
+-- Foundation, either version 3 of the License, or (at your option) any later
+-- version.
+--
+-- vis-snippets is distributed in the hope that it will be useful, but WITHOUT
+-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License along with
+-- vis-snippets found in the LICENSE file.
+-- If not, see <https://www.gnu.org/licenses/>.
+--
local M = {snippets = {}}
M.menu_cmd = 'vis-menu'
@@ -28,6 +43,7 @@ local function available_snippets()
return _snippets
end
+-- select implementation copied from vis-lspc.
-- concatenate all numeric values in choices and pass it on stdin to M.menu_cmd
local function lspc_select(choices)
local menu_input = ''