improvements: noice
This commit is contained in:
@@ -4,7 +4,10 @@ return {
|
|||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>gs",
|
"<leader>gs",
|
||||||
":tab Git<CR>",
|
function()
|
||||||
|
vim.cmd("tab Git")
|
||||||
|
end,
|
||||||
|
-- ":tab Git<CR>",
|
||||||
desc = "Fugitive",
|
desc = "Fugitive",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -27,12 +27,20 @@ return {
|
|||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>pf",
|
"<leader>pf",
|
||||||
":Telescope find_files<CR>",
|
function()
|
||||||
|
require("telescope.builtin").find_files({
|
||||||
|
prompt_title = "Find files",
|
||||||
|
})
|
||||||
|
end,
|
||||||
desc = "Find files",
|
desc = "Find files",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>pw",
|
"<leader>pw",
|
||||||
":Telescope lsp_dynamic_workspace_symbols<CR>",
|
function()
|
||||||
|
require("telescope.builtin").lsp_dynamic_workspace_symbols({
|
||||||
|
prompt_title = "Find symbols (LSP)",
|
||||||
|
})
|
||||||
|
end,
|
||||||
desc = "Find symbols (LSP)",
|
desc = "Find symbols (LSP)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -97,12 +105,18 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<C-p>",
|
"<C-p>",
|
||||||
":Telescope git_files<CR>",
|
function()
|
||||||
|
require("telescope.builtin").git_files({
|
||||||
|
prompt_title = "Find files (Git)",
|
||||||
|
})
|
||||||
|
end,
|
||||||
desc = "Find files (git)",
|
desc = "Find files (git)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>pt",
|
"<leader>pt",
|
||||||
":TodoTelescope<CR>",
|
function()
|
||||||
|
vim.cmd("TodoTelescope")
|
||||||
|
end,
|
||||||
desc = "Find TODOs",
|
desc = "Find TODOs",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -130,7 +144,9 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<C-b>",
|
"<C-b>",
|
||||||
":Telescope buffers<CR>",
|
function()
|
||||||
|
require("telescope.builtin").buffers()
|
||||||
|
end,
|
||||||
desc = "Find buffers",
|
desc = "Find buffers",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -171,15 +187,18 @@ return {
|
|||||||
["<C-c>"] = false,
|
["<C-c>"] = false,
|
||||||
["<C-l>"] = false,
|
["<C-l>"] = false,
|
||||||
["<C-h>"] = false,
|
["<C-h>"] = false,
|
||||||
|
["<C-p>"] = false,
|
||||||
},
|
},
|
||||||
float = {
|
float = {
|
||||||
border = "single",
|
border = "single",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>pv",
|
"<leader>pv",
|
||||||
":Oil<CR>",
|
function()
|
||||||
|
require("oil").open()
|
||||||
|
end,
|
||||||
desc = "File explorer (Oil)",
|
desc = "File explorer (Oil)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
presets = {
|
presets = {
|
||||||
bottom_search = true,
|
bottom_search = false,
|
||||||
inc_rename = false,
|
inc_rename = false,
|
||||||
lsp_doc_border = true,
|
lsp_doc_border = true,
|
||||||
},
|
},
|
||||||
@@ -39,7 +39,7 @@ return {
|
|||||||
},
|
},
|
||||||
cmdline_popup = {
|
cmdline_popup = {
|
||||||
border = {
|
border = {
|
||||||
style = "none"
|
style = "single"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
popup = {
|
popup = {
|
||||||
@@ -47,6 +47,11 @@ return {
|
|||||||
style = "single",
|
style = "single",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
popupmenu = {
|
||||||
|
border = {
|
||||||
|
style = "single",
|
||||||
|
},
|
||||||
|
},
|
||||||
confirm = {
|
confirm = {
|
||||||
backend = "popup",
|
backend = "popup",
|
||||||
border = {
|
border = {
|
||||||
@@ -55,5 +60,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("telescope").load_extension("noice")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ return {
|
|||||||
|
|
||||||
vim.api.nvim_set_hl(0, "NoiceFormatProgressTodo", { link = "Normal" })
|
vim.api.nvim_set_hl(0, "NoiceFormatProgressTodo", { link = "Normal" })
|
||||||
vim.api.nvim_set_hl(0, "NoiceFormatProgressDone", { link = "Normal" })
|
vim.api.nvim_set_hl(0, "NoiceFormatProgressDone", { link = "Normal" })
|
||||||
|
|
||||||
|
vim.api.nvim_set_hl(0, "NoiceCmdlinePopupBorder", { fg = catppuccin_colors.peach })
|
||||||
|
vim.api.nvim_set_hl(0, "NoiceCmdlineIconCmdline", { fg = catppuccin_colors.peach })
|
||||||
|
vim.api.nvim_set_hl(0, "NoiceCmdlineIconHelp", { fg = catppuccin_colors.blue })
|
||||||
|
vim.api.nvim_set_hl(0, "NoiceCmdlineIconSearch", { fg = catppuccin_colors.blue })
|
||||||
|
vim.api.nvim_set_hl(0, "NoiceCmdlinePopupBorderSearch", { fg = catppuccin_colors.blue })
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user