Skip to content

Commit dcee949

Browse files
committed
fix: add stylua.toml
1 parent 1aa0cdf commit dcee949

19 files changed

+1780
-1768
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Added
1313

1414
- Added comprehensive test suite using `plenary.nvim`.
15+
- Added `stylua` for code formatting and linting.
1516

1617
### Changed
1718

lua/markdown-tools/autocmds.lua

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ local M = {}
44
--- Setup autocommands for markdown files
55
---@param options table Plugin configuration options
66
function M.setup_autocmds(options)
7-
-- Create autocommand group
8-
local augroup = vim.api.nvim_create_augroup("MarkdownShortcuts", { clear = true })
7+
-- Create autocommand group
8+
local augroup = vim.api.nvim_create_augroup("MarkdownShortcuts", { clear = true })
99

10-
-- Set up autocommands for markdown files
11-
vim.api.nvim_create_autocmd("FileType", {
12-
group = augroup,
13-
pattern = "markdown",
14-
callback = function()
15-
-- Set up local options for markdown files
16-
if options.enable_local_options then
17-
vim.opt_local.wrap = options.wrap
18-
vim.opt_local.conceallevel = options.conceallevel
19-
vim.opt_local.concealcursor = options.concealcursor
20-
vim.opt_local.spell = options.spell
21-
vim.opt_local.spelllang = options.spelllang
22-
end
23-
end,
24-
})
10+
-- Set up autocommands for markdown files
11+
vim.api.nvim_create_autocmd("FileType", {
12+
group = augroup,
13+
pattern = "markdown",
14+
callback = function()
15+
-- Set up local options for markdown files
16+
if options.enable_local_options then
17+
vim.opt_local.wrap = options.wrap
18+
vim.opt_local.conceallevel = options.conceallevel
19+
vim.opt_local.concealcursor = options.concealcursor
20+
vim.opt_local.spell = options.spell
21+
vim.opt_local.spelllang = options.spelllang
22+
end
23+
end,
24+
})
2525
end
2626

2727
return M

0 commit comments

Comments
 (0)