style(nvim): format with stylua

This commit is contained in:
Price Hiller 2024-01-31 23:52:03 -06:00
parent b332395536
commit 5cfecf809f
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
9 changed files with 24 additions and 29 deletions

View File

@ -5,20 +5,20 @@ vim.keymap.set("n", "<leader>fr", "<Cmd>Hurl<CR>", {
vim.opt_local.commentstring = "# %s"
vim.keymap.set("n", "<leader>fr", "<cmd>HurlRunner<CR>", {
desc = "Hurl: Runner"
desc = "Hurl: Runner",
})
vim.keymap.set("n", "<leader>fa", "<cmd>HurlRunnerAt<CR>", {
desc = "Hurl: Run Api request"
desc = "Hurl: Run Api request",
})
vim.keymap.set("n", "<leader>fe", "<cmd>HurlRunnerToEntry<CR>", {
desc = "Hurl: Run Api request to entry"
desc = "Hurl: Run Api request to entry",
})
vim.keymap.set("n", "<leader>fm", "<cmd>HurlToggleMode<CR>", {
desc = "Hurl: Toggle Mode"
desc = "Hurl: Toggle Mode",
})
vim.keymap.set("n", "<leader>rv", "<cmd>HurlVerbose<CR>", {
desc = "Hurl: Run Api in verbose mode"
desc = "Hurl: Run Api in verbose mode",
})
vim.keymap.set("v", "<leader>fr", ":HurlRunner<CR>", {
desc = "Hurl: Runner"
desc = "Hurl: Runner",
})

View File

@ -8,8 +8,4 @@ vim.api.nvim_set_hl(
{ underline = true, bold = true }
)
)
vim.api.nvim_set_hl(
0,
"@text.emph.typst",
{ link = "@text.emphasis" }
)
vim.api.nvim_set_hl(0, "@text.emph.typst", { link = "@text.emphasis" })

View File

@ -119,8 +119,8 @@ return {
local standard_sources = function(sources)
sources = sources or {}
local default_sources = {
{ name = "nvim_lsp", },
{ name = "luasnip", }, -- For luasnip users.
{ name = "nvim_lsp" },
{ name = "luasnip" }, -- For luasnip users.
{
name = "fuzzy_buffer",
},
@ -140,7 +140,7 @@ return {
option = { cache = true },
trigger_characters = { "\\" },
},
{ name = "zsh", },
{ name = "zsh" },
{ name = "emoji", keyword_length = 2 },
{ name = "calc" },
{ name = "npm", keyword_length = 2 },
@ -172,7 +172,7 @@ return {
git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" },
docker_compose_language_service = { symbol = "󰡨 ", name = "Docker", hl_group = "Docker" },
luasnip = { symbol = "", name = "Snippet" },
["lua-latex-symbols"] = { symbol = "󰡱 ", name = "Math", hl_group = "LuaLatexSymbol" }
["lua-latex-symbols"] = { symbol = "󰡱 ", name = "Math", hl_group = "LuaLatexSymbol" },
}
local extra_kind_icons = {

View File

@ -53,9 +53,9 @@ return {
typst = function()
return {
exe = "typstfmt",
stdin = true
stdin = true,
}
end
end,
},
}
end,

View File

@ -1067,7 +1067,7 @@ return {
return ft:lower():find(excluded_ft) ~= nil
end, {
".*neogit.*",
"no-neck-pain"
"no-neck-pain",
})
if #matches > 0 then
return false

View File

@ -7,13 +7,13 @@ return {
debug = false,
mode = "split",
formatters = {
json = { 'jq' },
json = { "jq" },
html = {
'prettier',
'--parser',
'html',
"prettier",
"--parser",
"html",
},
},
},
}
},
}

View File

@ -61,7 +61,6 @@ return {
["@diff.plus"] = { link = "@text.diff.add" },
["@diff.minus"] = { link = "@text.diff.delete" },
["@field"] = { fg = colors.carpYellow },
CursorLineNr = { fg = colors.roninYellow, bg = palette.theme.ui.bg_p1 },
CursorLineFold = { fg = colors.crystalBlue, bg = palette.theme.ui.bg_p1 },
@ -247,7 +246,6 @@ return {
-- Markdown specific
["@markdown_check_undone"] = { fg = colors.carpYellow },
["@markdown_check_ndone"] = { fg = colors.springGreen },
}
return overrides

View File

@ -290,7 +290,7 @@ return {
yaml = {
schemaStore = {
enable = false,
url = ""
url = "",
},
schemas = require("schemastore").yaml.schemas({
validate = { enable = true },
@ -299,9 +299,9 @@ return {
description = "Gitea Actions",
fileMatch = ".gitea/workflows/*",
name = "gitea-workflow.json",
url = "https://json.schemastore.org/github-workflow.json"
}
}
url = "https://json.schemastore.org/github-workflow.json",
},
},
}),
},
},

View File

@ -21,6 +21,7 @@ return {
},
},
},
dir = "~/Git/Neovim/Orgmode",
ft = { "org" },
keys = {
{ "<leader>o", desc = "> Org" },