style(nvim): format with stylua
This commit is contained in:
parent
27e4a081ae
commit
d41b455a14
@ -129,8 +129,8 @@ cmp.setup({
|
|||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp", priority = 11 },
|
{ name = "nvim_lsp", priority = 11 },
|
||||||
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
||||||
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
|
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
|
||||||
{
|
{
|
||||||
name = "rg",
|
name = "rg",
|
||||||
@ -139,11 +139,11 @@ cmp.setup({
|
|||||||
max_item_count = 10,
|
max_item_count = 10,
|
||||||
},
|
},
|
||||||
{ name = "async_path", priority = 6 },
|
{ name = "async_path", priority = 6 },
|
||||||
{ name = "zsh", priority = 5 },
|
{ name = "zsh", priority = 5 },
|
||||||
{ name = "emoji", keyword_length = 2 },
|
{ name = "emoji", keyword_length = 2 },
|
||||||
{ name = "neorg" },
|
{ name = "neorg" },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "npm", keyword_length = 2 },
|
{ name = "npm", keyword_length = 2 },
|
||||||
{ name = "spell", keyword_length = 2 },
|
{ name = "spell", keyword_length = 2 },
|
||||||
}),
|
}),
|
||||||
sorting = {
|
sorting = {
|
||||||
@ -165,7 +165,7 @@ cmp.setup({
|
|||||||
cmp.setup.filetype("gitcommit", {
|
cmp.setup.filetype("gitcommit", {
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "conventionalcommits", priority = 20 },
|
{ name = "conventionalcommits", priority = 20 },
|
||||||
{ name = "emoji", keyword_length = 2 },
|
{ name = "emoji", keyword_length = 2 },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -197,8 +197,8 @@ cmp.setup.cmdline(":", {
|
|||||||
{
|
{
|
||||||
name = "cmdline",
|
name = "cmdline",
|
||||||
option = {
|
option = {
|
||||||
ignore_cmds = {'!'}
|
ignore_cmds = { "!" },
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{ name = "cmdline_history" },
|
{ name = "cmdline_history" },
|
||||||
}),
|
}),
|
||||||
|
@ -229,9 +229,19 @@ wk.register({
|
|||||||
name = "Trouble",
|
name = "Trouble",
|
||||||
},
|
},
|
||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>", { silent = true, desc = "Trouble: Toggle" })
|
vim.keymap.set("n", "<leader>xx", "<cmd>TroubleToggle<cr>", { silent = true, desc = "Trouble: Toggle" })
|
||||||
vim.keymap.set("n", "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>", { silent = true, desc = "Trouble: Workspace Diagnostics" })
|
vim.keymap.set(
|
||||||
vim.keymap.set("n", "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", { silent = true, desc = "Trouble: Document Diagnostics" })
|
"n",
|
||||||
vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>", { silent = true, desc = "Trouble: Loclist"})
|
"<leader>xw",
|
||||||
|
"<cmd>TroubleToggle workspace_diagnostics<cr>",
|
||||||
|
{ silent = true, desc = "Trouble: Workspace Diagnostics" }
|
||||||
|
)
|
||||||
|
vim.keymap.set(
|
||||||
|
"n",
|
||||||
|
"<leader>xd",
|
||||||
|
"<cmd>TroubleToggle document_diagnostics<cr>",
|
||||||
|
{ silent = true, desc = "Trouble: Document Diagnostics" }
|
||||||
|
)
|
||||||
|
vim.keymap.set("n", "<leader>xl", "<cmd>TroubleToggle loclist<cr>", { silent = true, desc = "Trouble: Loclist" })
|
||||||
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", { silent = true, desc = "Trouble: Quickfix" })
|
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", { silent = true, desc = "Trouble: Quickfix" })
|
||||||
vim.keymap.set("n", "<leader>xt", "<cmd>TodoTrouble<cr>", { silent = true, desc = "Trouble: Todo Items" })
|
vim.keymap.set("n", "<leader>xt", "<cmd>TodoTrouble<cr>", { silent = true, desc = "Trouble: Todo Items" })
|
||||||
|
@ -122,7 +122,7 @@ lazy.setup({
|
|||||||
"nvim-telescope/telescope-ui-select.nvim",
|
"nvim-telescope/telescope-ui-select.nvim",
|
||||||
"debugloop/telescope-undo.nvim",
|
"debugloop/telescope-undo.nvim",
|
||||||
{ "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" },
|
{ "nvim-telescope/telescope-smart-history.nvim", dependencies = "tami5/sqlite.lua" },
|
||||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.telescope-nvim")
|
require("plugins.configs.telescope-nvim")
|
||||||
@ -322,8 +322,8 @@ lazy.setup({
|
|||||||
setopt = true,
|
setopt = true,
|
||||||
relculright = false,
|
relculright = false,
|
||||||
segments = {
|
segments = {
|
||||||
{ text = { "%s" }, click = "v:lua.ScSa" },
|
{ text = { "%s" }, click = "v:lua.ScSa" },
|
||||||
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
|
{ text = { builtin.lnumfunc }, click = "v:lua.ScLa" },
|
||||||
{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
{ text = { " ", builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
@ -682,8 +682,8 @@ lazy.setup({
|
|||||||
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
||||||
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
||||||
{ cursor = "•", texthl = "SmoothCursorTrailSmall" },
|
{ cursor = "•", texthl = "SmoothCursorTrailSmall" },
|
||||||
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
||||||
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
disabled_filetypes = { "NeogitNotification" },
|
disabled_filetypes = { "NeogitNotification" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user