Skip to content

Commit c673c2e

Browse files
committed
docs: apply luals formatting
refs #94
1 parent 031ebe6 commit c673c2e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ftplugin/quarto.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
vim.b.slime_cell_delimiter = "```"
22

3-
local quarto = require'quarto'
3+
local quarto = require 'quarto'
44

55
local function set_keymaps()
66
local b = vim.api.nvim_get_current_buf()
@@ -35,4 +35,3 @@ if quarto.config.lspFeatures.enabled then
3535
callback = set_keymaps,
3636
})
3737
end
38-

lua/quarto/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function M.quartoPreview(opts)
4949
else
5050
mode = "file"
5151
if vim.loop.os_uname().sysname == "Windows_NT" then
52-
cmd = 'quarto preview \\"' .. buffer_path .. '\\"' .. ' ' .. args
52+
cmd = 'quarto preview \\"' .. buffer_path .. '\\"' .. ' ' .. args
5353
else
5454
cmd = 'quarto preview \'' .. buffer_path .. '\'' .. ' ' .. args
5555
end
@@ -142,7 +142,6 @@ end
142142
-- setup
143143
M.setup = function(opt)
144144
M.config = vim.tbl_deep_extend('force', M.defaultConfig, opt or {})
145-
146145
end
147146

148147
local function concat(ls)
@@ -167,7 +166,6 @@ local function send(lines)
167166
vim.fn.notify('Install a REPL code sending plugin to use this feature. Options are yarepl.nvim and vim-slim.')
168167
end
169168
end
170-
171169
end
172170

173171
M.quartoSend = function()

plugin/quarto.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
local quarto = require 'quarto'
1717
local api = vim.api
1818

19-
api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, {nargs = '*'})
19+
api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, { nargs = '*' })
2020
api.nvim_create_user_command('QuartoClosePreview', quarto.quartoClosePreview, {})
2121
api.nvim_create_user_command('QuartoActivate', quarto.activate, {})
2222
api.nvim_create_user_command('QuartoHelp', quarto.searchHelp, { nargs = 1 })
@@ -25,5 +25,4 @@ api.nvim_create_user_command('QuartoSend', quarto.quartoSend, {})
2525
api.nvim_create_user_command('QuartoSendAbove', quarto.quartoSendAbove, {})
2626
api.nvim_create_user_command('QuartoSendBelow', quarto.quartoSendBelow, {})
2727
api.nvim_create_user_command('QuartoSendAll', quarto.quartoSendAll, {})
28-
api.nvim_create_user_command('QuartoSendRange', quarto.quartoSendRange, {range = 2})
29-
28+
api.nvim_create_user_command('QuartoSendRange', quarto.quartoSendRange, { range = 2 })

0 commit comments

Comments
 (0)