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.opt_local.commentstring = "# %s"
vim.keymap.set("n", "<leader>fr", "<cmd>HurlRunner<CR>", { vim.keymap.set("n", "<leader>fr", "<cmd>HurlRunner<CR>", {
desc = "Hurl: Runner" desc = "Hurl: Runner",
}) })
vim.keymap.set("n", "<leader>fa", "<cmd>HurlRunnerAt<CR>", { 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>", { 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>", { 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>", { 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>", { 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 } { underline = true, bold = true }
) )
) )
vim.api.nvim_set_hl( vim.api.nvim_set_hl(0, "@text.emph.typst", { link = "@text.emphasis" })
0,
"@text.emph.typst",
{ link = "@text.emphasis" }
)

View File

@ -119,8 +119,8 @@ return {
local standard_sources = function(sources) local standard_sources = function(sources)
sources = sources or {} sources = sources or {}
local default_sources = { local default_sources = {
{ name = "nvim_lsp", }, { name = "nvim_lsp" },
{ name = "luasnip", }, -- For luasnip users. { name = "luasnip" }, -- For luasnip users.
{ {
name = "fuzzy_buffer", name = "fuzzy_buffer",
}, },
@ -140,7 +140,7 @@ return {
option = { cache = true }, option = { cache = true },
trigger_characters = { "\\" }, trigger_characters = { "\\" },
}, },
{ name = "zsh", }, { name = "zsh" },
{ name = "emoji", keyword_length = 2 }, { name = "emoji", keyword_length = 2 },
{ name = "calc" }, { name = "calc" },
{ name = "npm", keyword_length = 2 }, { name = "npm", keyword_length = 2 },
@ -172,7 +172,7 @@ return {
git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" }, git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" },
docker_compose_language_service = { symbol = "󰡨 ", name = "Docker", hl_group = "Docker" }, docker_compose_language_service = { symbol = "󰡨 ", name = "Docker", hl_group = "Docker" },
luasnip = { symbol = "", name = "Snippet" }, 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 = { local extra_kind_icons = {

View File

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

View File

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

View File

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

View File

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

View File

@ -290,7 +290,7 @@ return {
yaml = { yaml = {
schemaStore = { schemaStore = {
enable = false, enable = false,
url = "" url = "",
}, },
schemas = require("schemastore").yaml.schemas({ schemas = require("schemastore").yaml.schemas({
validate = { enable = true }, validate = { enable = true },
@ -299,9 +299,9 @@ return {
description = "Gitea Actions", description = "Gitea Actions",
fileMatch = ".gitea/workflows/*", fileMatch = ".gitea/workflows/*",
name = "gitea-workflow.json", 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" }, ft = { "org" },
keys = { keys = {
{ "<leader>o", desc = "> Org" }, { "<leader>o", desc = "> Org" },