Browse Source

fix luacheck issues (#1184)

Abouzar Parvan 4 years ago
parent
commit
2db171eee4
2 changed files with 2 additions and 3 deletions
  1. 0 2
      lua/core/galaxyline.lua
  2. 2 1
      lua/lsp/init.lua

+ 0 - 2
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

+ 2 - 1
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)
     )