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:
McAuley Penney
2022-07-18 15:12:14 -07:00
parent 889dc71f20
commit 30bd92bb51
2 changed files with 3 additions and 8 deletions

View File

@@ -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 {})