Skip to content

Conversation

yyk
Copy link

@yyk yyk commented Sep 4, 2022

For example, markdown's trailing spaces has special meanings.

@GNOMES
Copy link

GNOMES commented Nov 7, 2022

If this gets approved, I think there should be an update to the repo's README.md file with config that can be used in a dedicated config file that can be sourced by init.lua

If someone wanted to do multiple exclusions, it can be messy to add these to the Packer Use Lua (in the way the included example does).

end

-- print(vim.inspect(require("spaceless").options.ignore_filetypes))
if vim.tbl_contains(require("spaceless").options.ignore_filetypes, vim.api.nvim_buf_get_option(0, "filetype")) then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if vim.tbl_contains(require("spaceless").options.ignore_filetypes, vim.api.nvim_buf_get_option(0, "filetype")) then
if vim.tbl_contains(M.options.ignore_filetypes, vim.bo.filetype) then

end

local M = {}
local M = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this to the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants