Skip to content

Commit

Permalink
style: format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
cvigilv committed Sep 11, 2024
1 parent 741d7b8 commit 53da211
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions lua/esqueleto/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ M.default_config = {
advanced = {
ignored = {},
ignore_os_files = true,
}
},
}

--- Update default configuration table by merging with user's configuration table
Expand All @@ -47,13 +47,13 @@ M.updateconfig = function(config)

-- Validate setup
vim.validate({
autouse = { config.autouse, 'boolean' },
directories = { config.directories, { 'table' } },
patterns = { config.patterns, { 'table', 'function' } },
autouse = { config.autouse, "boolean" },
directories = { config.directories, { "table" } },
patterns = { config.patterns, { "table", "function" } },
wildcards = { config.wildcards, "table" },
advanced = { config.advanced, 'table' },
["advanced.ignored"] = { config.advanced.ignored, { 'table', 'function' } },
["advanced.ignore_os_files"] = { config.advanced.ignore_os_files, 'boolean' },
advanced = { config.advanced, "table" },
["advanced.ignored"] = { config.advanced.ignored, { "table", "function" } },
["advanced.ignore_os_files"] = { config.advanced.ignore_os_files, "boolean" },
})

return config
Expand Down
8 changes: 4 additions & 4 deletions lua/esqueleto/init.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
_G.esqueleto_inserted = {}

local autocmd = require('esqueleto.autocmd')
local excmd = require('esqueleto.excmd')
local config = require('esqueleto.config')

local M = {}

--- Setup `esqueleto.nvim`
---@param opts table User configuration table
M.setup = function(opts)
local autocmd = require("esqueleto.autocmd")
local config = require("esqueleto.config")
local excmd = require("esqueleto.excmd")

-- update defaults
opts = config.updateconfig(opts)

Expand Down

0 comments on commit 53da211

Please sign in to comment.