@@ -4,24 +4,24 @@ local M = {}
4
4
--- Setup autocommands for markdown files
5
5
--- @param options table Plugin configuration options
6
6
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 })
9
9
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
+ })
25
25
end
26
26
27
27
return M
0 commit comments