style(nvim): format with stylua
This commit is contained in:
parent
c781daed86
commit
cc780dc277
@ -5,4 +5,3 @@ vim.opt_local.textwidth = 0
|
||||
vim.keymap.set("n", "<leader>fr", "<cmd>MarkdownPreview<CR>", {
|
||||
buffer = true,
|
||||
})
|
||||
|
||||
|
@ -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" } },
|
||||
},
|
||||
},
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
return {
|
||||
{
|
||||
"jghauser/mkdir.nvim",
|
||||
event = "BufWritePre"
|
||||
event = "BufWritePre",
|
||||
},
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ return {
|
||||
"<A-j>",
|
||||
"<A-j>",
|
||||
"<A-h>",
|
||||
"<A-l>"
|
||||
}
|
||||
"<A-l>",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user