From 28630f258b4171f0ac917342abdfcce53f742c2a Mon Sep 17 00:00:00 2001 From: aleidk Date: Sat, 8 Apr 2023 12:24:50 -0400 Subject: [PATCH] add plugins --- config/astronvim/lua/user/plugins/alpha.lua | 1 + .../lua/user/plugins/lsp_signature.lua | 15 ++++++++ config/astronvim/lua/user/plugins/qmk.lua | 37 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 config/astronvim/lua/user/plugins/lsp_signature.lua create mode 100644 config/astronvim/lua/user/plugins/qmk.lua diff --git a/config/astronvim/lua/user/plugins/alpha.lua b/config/astronvim/lua/user/plugins/alpha.lua index 5cff61f..0dc3875 100644 --- a/config/astronvim/lua/user/plugins/alpha.lua +++ b/config/astronvim/lua/user/plugins/alpha.lua @@ -1,5 +1,6 @@ return { "goolord/alpha-nvim", + lazy = false, opts = function() local dashboard = require("alpha.themes.dashboard") dashboard.section.header.val = { diff --git a/config/astronvim/lua/user/plugins/lsp_signature.lua b/config/astronvim/lua/user/plugins/lsp_signature.lua new file mode 100644 index 0000000..778f8e8 --- /dev/null +++ b/config/astronvim/lua/user/plugins/lsp_signature.lua @@ -0,0 +1,15 @@ +return { + "ray-x/lsp_signature.nvim", + event = "VeryLazy", + config = function() + local signature_config = { + hint_enable = false, + } + + require("lsp_signature").setup(signature_config) + + vim.keymap.set({ "n" }, "k", function() + vim.lsp.buf.signature_help() + end, { silent = true, noremap = true, desc = "toggle signature" }) + end, +} diff --git a/config/astronvim/lua/user/plugins/qmk.lua b/config/astronvim/lua/user/plugins/qmk.lua new file mode 100644 index 0000000..e7a0009 --- /dev/null +++ b/config/astronvim/lua/user/plugins/qmk.lua @@ -0,0 +1,37 @@ +return { + "codethread/qmk.nvim", + ft = "c", + config = { + name = "LAYOUT", + layout = { + "_ x x x x x x _ _ _ x x x x x x", + "_ x x x x x x _ _ _ x x x x x x", + "_ x x x x x x _ _ _ x x x x x x", + "_ x x x x x x x _ x x x x x x x", + "_ _ _ x x x x x _ x x x x x _ _", + }, + comment_preview = { + -- mostly overrides for Spanish Latin American + keymap_overrides = { + KC_SYMBOLS = "Symbols", + KC_SYSTEM = "System", + KC_NUMPAD = "Numpad", + KC_GAME = "Game", + KC_COLEMAK = "Colemak", + KC_QWERTY = "Qwerty", + KC_GRV = "|", + KC_GRAVE = "|", + KC_SCLN = "ñ", + ES_COMM = ",", + ES_DOT = ".", + ES_MINS = "-", + ES_QUOT = "'", + ES_GRV = "´", + ES_IEXL = "?", + ES_LABK = ">", + ES_PLUS = "+", + KC_ALGR = "algr", + }, + }, + }, +}