From 4f0762be2d2fc8b85556b32bdf54366bc17a87ad Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 3 Aug 2023 15:40:31 -0400 Subject: [PATCH] feat: add `lua_ls` completion for AstroNvim core plugins --- lua/plugins/colorscheme.lua | 1 + lua/plugins/highlights.lua | 1 + lua/plugins/init.lua | 1 + lua/plugins/lsp.lua | 1 + lua/plugins/mappings.lua | 1 + 5 files changed, 5 insertions(+) diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua index e0bc9b8..a1a9895 100644 --- a/lua/plugins/colorscheme.lua +++ b/lua/plugins/colorscheme.lua @@ -2,6 +2,7 @@ if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE return { "AstroNvim/astroui", + ---@type AstroUIOpts opts = { colorscheme = "astrodark", -- change colorscheme }, diff --git a/lua/plugins/highlights.lua b/lua/plugins/highlights.lua index 2cb91d5..9d3f10f 100644 --- a/lua/plugins/highlights.lua +++ b/lua/plugins/highlights.lua @@ -3,6 +3,7 @@ if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE -- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes return { "AstroNvim/astroui", + ---@type AstroUIOpts opts = { highlights = { init = { -- this table overrides highlights in all themes diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index c011a1b..f284cce 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -3,6 +3,7 @@ if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE -- AstroCore allows you easy access to customize the default options provided in AstroNvim return { "AstroNvim/astrocore", + ---@type AstroCoreOpts opts = { -- modify core features of AstroNvim features = { diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 805764d..8f7ac56 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -3,6 +3,7 @@ if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE -- AstroLSP allows you to customize the features in AstroNvim's LSP configuration engine return { "AstroNvim/astrolsp", + ---@type AstroLSPOpts opts = { -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { diff --git a/lua/plugins/mappings.lua b/lua/plugins/mappings.lua index cb52291..808cc82 100644 --- a/lua/plugins/mappings.lua +++ b/lua/plugins/mappings.lua @@ -3,6 +3,7 @@ if true then return {} end -- REMOVE THIS LINE TO ACTIVATE THIS FILE -- AstroCore provides a central place to modify mappings set up as well as which-key menu titles return { "AstroNvim/astrocore", + ---@type AstroCoreOpts opts = { mappings = { -- first key is the mode