diff --git a/config/astronvim/lua/user/init.lua b/config/astronvim/lua/user/init.lua index 3d6817b..0925249 100644 --- a/config/astronvim/lua/user/init.lua +++ b/config/astronvim/lua/user/init.lua @@ -1,3 +1,4 @@ +-- luacheck: globals vim return { -- Configure AstroNvim updates updater = { diff --git a/config/astronvim/lua/user/mappings.lua b/config/astronvim/lua/user/mappings.lua index bc71d11..e95a58f 100644 --- a/config/astronvim/lua/user/mappings.lua +++ b/config/astronvim/lua/user/mappings.lua @@ -17,12 +17,15 @@ return { end, desc = "Pick to close", }, - -- tables with the `name` key will be registered with which-key if it's installed - -- this is useful for naming menus + -- tables with the `name` key will be registered with which-key + -- if it's installed this is useful for naming menus ["b"] = { name = "Buffers" }, - -- quick save - -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command - ["P"] = { ":Telescope projects", desc = "Update Projects listing" }, + -- quick save (change description) + [""] = { ":w!", desc = "Save File" }, + ["P"] = { + ":Telescope projects", + desc = "Update Projects listing" + }, }, t = { -- setting a mapping to false will disable it diff --git a/config/astronvim/lua/user/plugins/user.lua b/config/astronvim/lua/user/plugins/user.lua index 001c030..179fcea 100644 --- a/config/astronvim/lua/user/plugins/user.lua +++ b/config/astronvim/lua/user/plugins/user.lua @@ -1,3 +1,4 @@ +-- luacheck: globals vim return { -- You can also add new plugins here as well: -- Add plugins, the lazy syntax @@ -48,12 +49,13 @@ return { end, opts = { bottom = { - -- toggleterm / lazyterm at the bottom with a height of 40% of the screen + -- toggleterm / lazyterm at the bottom with + -- a height of 40% of the screen { ft = "toggleterm", size = { height = 0.4 }, -- exclude floating windows - filter = function(buf, win) + filter = function(_, win) return vim.api.nvim_win_get_config(win).relative == "" end, },