|
@@ -5,7 +5,6 @@ local function setIndentation(properties, view) |
|
|
local tab_width_str = properties["tab_width"] |
|
|
local tab_width_str = properties["tab_width"] |
|
|
local indent_style = properties["indent_style"] |
|
|
local indent_style = properties["indent_style"] |
|
|
|
|
|
|
|
|
-- TODO: Fix logic to decide indent_size |
|
|
|
|
|
local indent_size = tonumber(indent_size_str, 10) |
|
|
local indent_size = tonumber(indent_size_str, 10) |
|
|
local tab_width = tonumber(tab_width_str, 10) |
|
|
local tab_width = tonumber(tab_width_str, 10) |
|
|
if indent_size_str == "tab" then |
|
|
if indent_size_str == "tab" then |
|
@@ -58,7 +57,6 @@ local function applyProperties(properties, view) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
function onEditorConfigExit(output) |
|
|
function onEditorConfigExit(output) |
|
|
-- messenger:Message(output) |
|
|
|
|
|
-- FIXME: messege when editorconfig exit with error |
|
|
-- FIXME: messege when editorconfig exit with error |
|
|
local properties = {} |
|
|
local properties = {} |
|
|
-- TODO: Which is better? output:gmatch(), string.gmatch(output, ...) |
|
|
-- TODO: Which is better? output:gmatch(), string.gmatch(output, ...) |
|
@@ -84,7 +82,6 @@ end |
|
|
|
|
|
|
|
|
function onViewOpen(view) |
|
|
function onViewOpen(view) |
|
|
getApplyProperties(view) |
|
|
getApplyProperties(view) |
|
|
-- messenger:Message(view.Buf.AbsPath) |
|
|
|
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
function onSave(view) |
|
|
function onSave(view) |
|
|