diff options
author | Abouzar Parvan <[email protected]> | 2021-07-31 12:15:01 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-31 07:45:01 +0000 |
commit | 2db171eee417de8916237c053244d7a44deac5c1 (patch) | |
tree | 9d8325cfa4a8e243ae27221bf5453e5dd6641ffb | |
parent | bb989e3593c441f607996e3b8b50e37e5032622e (diff) |
fix luacheck issues (#1184)
-rw-r--r-- | lua/core/galaxyline.lua | 2 | ||||
-rw-r--r-- | lua/lsp/init.lua | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lua/core/galaxyline.lua b/lua/core/galaxyline.lua index 2aae0242..63cffcf9 100644 --- a/lua/core/galaxyline.lua +++ b/lua/core/galaxyline.lua @@ -6,8 +6,6 @@ if not status_ok then return end -local utils = require "utils" - -- NOTE: if someone defines colors but doesn't have them then this will break local palette_status_ok, colors = pcall(require, lvim.colorscheme .. ".palette") if not palette_status_ok then diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index b24d62f2..d7109ac3 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -32,7 +32,8 @@ local function formatter_handler(client) local formatter_exe = lvim.lang[vim.bo.filetype].formatters[1].exe if formatter_exe and formatter_exe ~= "" then client.resolved_capabilities.document_formatting = false - __FORMATTER_OVERRIDE = true + -- NOTE: do we still need __FORMATTER_OVERRIDE? + -- __FORMATTER_OVERRIDE = true u.lvim_log( string.format("Overriding [%s] formatting if exists, Using provider [%s] instead", client.name, formatter_exe) ) |