From d6a838ed46de405558f12ffd62e312b62eb896b4 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Wed, 5 Apr 2023 15:06:38 -0400 Subject: [PATCH] minor formatting errors --- config/init.lua | 4 ++-- config/lua/keymap.lua | 2 +- config/lua/transparent.lua | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/init.lua b/config/init.lua index 44dd5d4..417bb9b 100644 --- a/config/init.lua +++ b/config/init.lua @@ -28,7 +28,7 @@ vim.cmd([[ ]]) -- defaults to transparent -transparent = true +Transparent = true -- timeouts vim.opt.ttimeout = true @@ -69,7 +69,7 @@ lspconfig.clangd.setup{} lspconfig.lua_ls.setup{ settings = { Lua = { - diagnostics = {globals = {'vim'}}, + diagnostics = {globals = {'vim', 'opts'}}, }, telemetry = { enable = false, diff --git a/config/lua/keymap.lua b/config/lua/keymap.lua index 10b48fd..b90458b 100644 --- a/config/lua/keymap.lua +++ b/config/lua/keymap.lua @@ -2,7 +2,7 @@ require("transparent") vim.g.mapleader = " " -vim.keymap.set("n", "b", ":lua toggleTransparent()") +vim.keymap.set("n", "b", ":lua ToggleTransparent()") -- nvim-tree bindings diff --git a/config/lua/transparent.lua b/config/lua/transparent.lua index d4ef570..0c8991a 100644 --- a/config/lua/transparent.lua +++ b/config/lua/transparent.lua @@ -1,6 +1,6 @@ -function toggleTransparent() - transparent = not transparent - if transparent then +function ToggleTransparent() + Transparent = not Transparent + if Transparent then vim.cmd("hi Normal ctermbg=NONE") else vim.cmd("set background=dark")