chore(lint): lualint fixes

This commit is contained in:
2023-08-01 14:20:23 +03:00
parent 558b6500d3
commit 6eefbdc965
3 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
-- luacheck: globals vim
return { return {
-- Configure AstroNvim updates -- Configure AstroNvim updates
updater = { updater = {

View File

@@ -17,12 +17,15 @@ return {
end, end,
desc = "Pick to close", desc = "Pick to close",
}, },
-- tables with the `name` key will be registered with which-key if it's installed -- tables with the `name` key will be registered with which-key
-- this is useful for naming menus -- if it's installed this is useful for naming menus
["<leader>b"] = { name = "Buffers" }, ["<leader>b"] = { name = "Buffers" },
-- quick save -- quick save (change description)
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command ["<C-s>"] = { ":w!<cr>", desc = "Save File" },
["<leader>P"] = { ":Telescope projects<cr>", desc = "Update Projects listing" }, ["<leader>P"] = {
":Telescope projects<cr>",
desc = "Update Projects listing"
},
}, },
t = { t = {
-- setting a mapping to false will disable it -- setting a mapping to false will disable it

View File

@@ -1,3 +1,4 @@
-- luacheck: globals vim
return { return {
-- You can also add new plugins here as well: -- You can also add new plugins here as well:
-- Add plugins, the lazy syntax -- Add plugins, the lazy syntax
@@ -48,12 +49,13 @@ return {
end, end,
opts = { opts = {
bottom = { 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", ft = "toggleterm",
size = { height = 0.4 }, size = { height = 0.4 },
-- exclude floating windows -- exclude floating windows
filter = function(buf, win) filter = function(_, win)
return vim.api.nvim_win_get_config(win).relative == "" return vim.api.nvim_win_get_config(win).relative == ""
end, end,
}, },