style(nvim): format with stylua

This commit is contained in:
Price Hiller 2023-08-15 17:45:34 -05:00
parent c781daed86
commit cc780dc277
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
11 changed files with 31 additions and 26 deletions

View File

@ -5,4 +5,3 @@ vim.opt_local.textwidth = 0
vim.keymap.set("n", "<leader>fr", "<cmd>MarkdownPreview<CR>", { vim.keymap.set("n", "<leader>fr", "<cmd>MarkdownPreview<CR>", {
buffer = true, buffer = true,
}) })

View File

@ -6,7 +6,7 @@ return {
require("nvim_comment").setup({}) require("nvim_comment").setup({})
end, end,
keys = { keys = {
{ "<leader>/", "<cmd>CommentToggle<CR>", desc = "Toggle Comment"}, { "<leader>/", "<cmd>CommentToggle<CR>", desc = "Toggle Comment" },
{ "<leader>/", ":'<,'>CommentToggle<CR>", desc = "Toggle Selection Comment", mode = { "v" } }, { "<leader>/", ":'<,'>CommentToggle<CR>", desc = "Toggle Selection Comment", mode = { "v" } },
}, },
}, },

View File

@ -29,8 +29,7 @@ return {
{ {
keys = { keys = {
{ "<leader>gd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" }, { "<leader>gd", "<cmd>DiffviewOpen<CR>", desc = "Diff View: Open" },
{"<leader>gh", "<cmd>DiffviewFileHistory<CR>", desc = "Diff View: File History" } { "<leader>gh", "<cmd>DiffviewFileHistory<CR>", desc = "Diff View: File History" },
}, },
"sindrets/diffview.nvim", "sindrets/diffview.nvim",
cmd = { cmd = {
@ -40,7 +39,7 @@ return {
"DiffviewRefresh", "DiffviewRefresh",
"DiffviewClose", "DiffviewClose",
"DiffviewOpen", "DiffviewOpen",
"DiffviewLog" "DiffviewLog",
}, },
opts = { opts = {
enhanced_diff_hl = true, enhanced_diff_hl = true,

View File

@ -2,12 +2,19 @@ return {
{ {
"phaazon/hop.nvim", "phaazon/hop.nvim",
keys = { keys = {
{"f", function() require("hop").hint_char1({ current_line_only = false, }) end, desc = "Hop: Character", mode = { "" } }, {
{";l", "<cmd>HopLineStart<CR>", desc = "Hop: Line Start" }, "f",
{";s", "<cmd>HopPattern<CR>", desc = "Hop: Pattern" }, function()
{";;", "<cmd>HopWord<CR>", desc = "Hop: Word" }, require("hop").hint_char1({ current_line_only = false })
{";a", "<cmd>HopAnywhere<CR>", desc = "Hop: Anywhere" }, end,
{";v", "<cmd>HopVertical<CR>", desc = "Hop Vertical" }, desc = "Hop: Character",
mode = { "" },
},
{ ";l", "<cmd>HopLineStart<CR>", desc = "Hop: Line Start" },
{ ";s", "<cmd>HopPattern<CR>", desc = "Hop: Pattern" },
{ ";;", "<cmd>HopWord<CR>", desc = "Hop: Word" },
{ ";a", "<cmd>HopAnywhere<CR>", desc = "Hop: Anywhere" },
{ ";v", "<cmd>HopVertical<CR>", desc = "Hop Vertical" },
}, },
cmd = { cmd = {
"HopLineStart", "HopLineStart",

View File

@ -3,7 +3,7 @@ return {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
dependencies = { dependencies = {
"nvim-treesitter/nvim-treesitter" "nvim-treesitter/nvim-treesitter",
}, },
opts = function() opts = function()
local g = vim.g local g = vim.g

View File

@ -1,6 +1,6 @@
return { return {
{ {
"jghauser/mkdir.nvim", "jghauser/mkdir.nvim",
event = "BufWritePre" event = "BufWritePre",
}, },
} }

View File

@ -6,7 +6,7 @@ return {
"<A-j>", "<A-j>",
"<A-j>", "<A-j>",
"<A-h>", "<A-h>",
"<A-l>" "<A-l>",
} },
}, },
} }

View File

@ -9,7 +9,7 @@ return {
vim.g.neoformat_python_black = { vim.g.neoformat_python_black = {
exe = "black", exe = "black",
stdin = 1, stdin = 1,
args = { "-q", "-" } args = { "-q", "-" },
} }
vim.g.neoformat_enabled_python = { "black" } vim.g.neoformat_enabled_python = { "black" }
end, end,

View File

@ -27,8 +27,8 @@ return {
}, },
}, },
popupmenu = { popupmenu = {
backend = "cmp" backend = "cmp",
} },
}, },
dependencies = { dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
@ -41,7 +41,7 @@ return {
function() function()
require("notify").dismiss({ require("notify").dismiss({
pending = true, pending = true,
silent = true silent = true,
}) })
end, end,
desc = "Notifications: Dismiss", desc = "Notifications: Dismiss",

View File

@ -2,7 +2,7 @@ return {
{ {
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
keys = { keys = {
{"<leader><leader>", "<cmd>ToggleTerm<CR>", desc = "ToggleTerm: Toggle" }, { "<leader><leader>", "<cmd>ToggleTerm<CR>", desc = "ToggleTerm: Toggle" },
}, },
opts = { opts = {
start_in_insert = false, start_in_insert = false,