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>", {
buffer = true,
})

View File

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

View File

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

View File

@ -2,12 +2,19 @@ return {
{
"phaazon/hop.nvim",
keys = {
{"f", function() require("hop").hint_char1({ current_line_only = false, }) end, 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" },
{
"f",
function()
require("hop").hint_char1({ current_line_only = false })
end,
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 = {
"HopLineStart",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -18,17 +18,17 @@ return {
"folke/trouble.nvim",
keys = {
{ "<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",
"<cmd>TroubleToggle lsp_implementations<cr>",
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>xl", "<cmd>TroubleToggle loclist<cr>", desc = "Trouble: Loclist" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", desc = "Trouble: Quickfix" },
{ "<leader>xt", "<cmd>TodoTrouble<cr>", desc = "Trouble: Todo Items" },
{ "<leader>xl", "<cmd>TroubleToggle loclist<cr>", desc = "Trouble: Loclist" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", desc = "Trouble: Quickfix" },
{ "<leader>xt", "<cmd>TodoTrouble<cr>", desc = "Trouble: Todo Items" },
},
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()