Skip to content

Commit

Permalink
docs: apply luals formatting
Browse files Browse the repository at this point in the history
refs #94
  • Loading branch information
jmbuhr committed Oct 17, 2023
1 parent 031ebe6 commit c673c2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions ftplugin/quarto.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
vim.b.slime_cell_delimiter = "```"

local quarto = require'quarto'
local quarto = require 'quarto'

local function set_keymaps()
local b = vim.api.nvim_get_current_buf()
Expand Down Expand Up @@ -35,4 +35,3 @@ if quarto.config.lspFeatures.enabled then
callback = set_keymaps,
})
end

4 changes: 1 addition & 3 deletions lua/quarto/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function M.quartoPreview(opts)
else
mode = "file"
if vim.loop.os_uname().sysname == "Windows_NT" then
cmd = 'quarto preview \\"' .. buffer_path .. '\\"' .. ' ' .. args
cmd = 'quarto preview \\"' .. buffer_path .. '\\"' .. ' ' .. args
else
cmd = 'quarto preview \'' .. buffer_path .. '\'' .. ' ' .. args
end
Expand Down Expand Up @@ -142,7 +142,6 @@ end
-- setup
M.setup = function(opt)
M.config = vim.tbl_deep_extend('force', M.defaultConfig, opt or {})

end

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

end

M.quartoSend = function()
Expand Down
5 changes: 2 additions & 3 deletions plugin/quarto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
local quarto = require 'quarto'
local api = vim.api

api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, {nargs = '*'})
api.nvim_create_user_command('QuartoPreview', quarto.quartoPreview, { nargs = '*' })
api.nvim_create_user_command('QuartoClosePreview', quarto.quartoClosePreview, {})
api.nvim_create_user_command('QuartoActivate', quarto.activate, {})
api.nvim_create_user_command('QuartoHelp', quarto.searchHelp, { nargs = 1 })
Expand All @@ -25,5 +25,4 @@ api.nvim_create_user_command('QuartoSend', quarto.quartoSend, {})
api.nvim_create_user_command('QuartoSendAbove', quarto.quartoSendAbove, {})
api.nvim_create_user_command('QuartoSendBelow', quarto.quartoSendBelow, {})
api.nvim_create_user_command('QuartoSendAll', quarto.quartoSendAll, {})
api.nvim_create_user_command('QuartoSendRange', quarto.quartoSendRange, {range = 2})

api.nvim_create_user_command('QuartoSendRange', quarto.quartoSendRange, { range = 2 })

0 comments on commit c673c2e

Please sign in to comment.