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

@ -28,9 +28,8 @@ return {
dependencies = { dependencies = {
{ {
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,

View File

@ -18,17 +18,17 @@ return {
"folke/trouble.nvim", "folke/trouble.nvim",
keys = { keys = {
{ "<leader>x", desc = "> Trouble" }, { "<leader>x", desc = "> Trouble" },
{ "<leader>lr", "<cmd>TroubleToggle lsp_references<cr>", desc = "LSP: References" }, { "<leader>lr", "<cmd>TroubleToggle lsp_references<cr>", desc = "LSP: References" },
{ {
"<leader>li", "<leader>li",
"<cmd>TroubleToggle lsp_implementations<cr>", "<cmd>TroubleToggle lsp_implementations<cr>",
desc = "LSP: Implementation", desc = "LSP: Implementation",
}, },
{ "<leader>ld", "<cmd>TroubleToggle lsp_definitions<CR>", desc = "LSP: Definition" }, { "<leader>ld", "<cmd>TroubleToggle lsp_definitions<CR>", desc = "LSP: Definition" },
{ "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Trouble: Document Diagnostics" }, { "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Trouble: Document Diagnostics" },
{ "<leader>xl", "<cmd>TroubleToggle loclist<cr>", desc = "Trouble: Loclist" }, { "<leader>xl", "<cmd>TroubleToggle loclist<cr>", desc = "Trouble: Loclist" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", desc = "Trouble: Quickfix" }, { "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", desc = "Trouble: Quickfix" },
{ "<leader>xt", "<cmd>TodoTrouble<cr>", desc = "Trouble: Todo Items" }, { "<leader>xt", "<cmd>TodoTrouble<cr>", desc = "Trouble: Todo Items" },
}, },
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
config = function() config = function()