mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-10-10 10:11:16 +02:00
refactor: Actually clean up cfg conditionals
• in the last commit, I modified how the configuration is made so that I could get rid of having to check if configuration options were present before acting. I forgot to remove one, so I did it here • I also removed a reference to an experimental option that I was considering • updated readme
This commit is contained in:
@@ -11,10 +11,6 @@ local function list_to_set(list)
|
||||
end
|
||||
|
||||
local function is_excluded_ft(opts)
|
||||
if not opts.filetype_exclude then
|
||||
return false
|
||||
end
|
||||
|
||||
local ft = vim.api.nvim_buf_get_option(0, "filetype")
|
||||
local ft_set = list_to_set(opts.filetype_exclude)
|
||||
|
||||
@@ -44,7 +40,6 @@ function M.setup(opts)
|
||||
|
||||
local defaults = {
|
||||
filetype_exclude = {},
|
||||
newline_at_eof = false
|
||||
}
|
||||
|
||||
opts = vim.tbl_extend("force", defaults, opts or {})
|
||||
|
Reference in New Issue
Block a user