diff --git a/ftplugin/quarto.lua b/ftplugin/quarto.lua index 0cc8da3..111b0fd 100644 --- a/ftplugin/quarto.lua +++ b/ftplugin/quarto.lua @@ -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() @@ -35,4 +35,3 @@ if quarto.config.lspFeatures.enabled then callback = set_keymaps, }) end - diff --git a/lua/quarto/init.lua b/lua/quarto/init.lua index 96ff1a9..19c420c 100644 --- a/lua/quarto/init.lua +++ b/lua/quarto/init.lua @@ -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 @@ -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) @@ -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() diff --git a/plugin/quarto.lua b/plugin/quarto.lua index e1aa8d6..852451a 100644 --- a/plugin/quarto.lua +++ b/plugin/quarto.lua @@ -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 }) @@ -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 })