diff --git a/lua/argonaut/config.lua b/lua/argonaut/config.lua index f1f2098..9b68169 100644 --- a/lua/argonaut/config.lua +++ b/lua/argonaut/config.lua @@ -14,7 +14,7 @@ local configs = { } } -local function set_filetype_opts(opts, filetypes) +local function set(opts, filetypes) if opts then if type(filetypes) == 'string' then filetypes = {filetypes} @@ -36,7 +36,7 @@ local function set_filetype_opts(opts, filetypes) end end -local function get_filetype_opts() +local function get() local file_config = configs[vim.bo.filetype] local config = {} @@ -54,6 +54,6 @@ local function get_filetype_opts() end return { - set_filetype_opts = set_filetype_opts, - get_filetype_opts = get_filetype_opts, + set = set, + get = get, } diff --git a/lua/argonaut/init.lua b/lua/argonaut/init.lua index 35c0413..17f9486 100644 --- a/lua/argonaut/init.lua +++ b/lua/argonaut/init.lua @@ -1,7 +1,7 @@ local config = require('argonaut.config') local function setup(opts, filetypes) - config.set_filetype_opts(opts, filetypes) + config.set(opts, filetypes) end local function get_cursor_pos() @@ -226,7 +226,7 @@ local function parse_brace_range_params(brace_range) end local function wrap_brace_range(brace_range) - local opts = config.get_filetype_opts() + local opts = config.get() vim.fn.setline(brace_range.row1, brace_range.indent .. brace_range.prefix)