Browse Source

fix: add ignores to noice

master
Tovi Jaeschke-Rogers 5 months ago
parent
commit
8cd11519d2
2 changed files with 48 additions and 2 deletions
  1. +47
    -1
      .config/nvim/lua/tovi/plugins/noice.lua
  2. +1
    -1
      .zshrc

+ 47
- 1
.config/nvim/lua/tovi/plugins/noice.lua View File

@ -1,9 +1,55 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
opts = {},
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
opts = {
routes = {
{
filter = {
event = "msg_show",
kind = "",
find = "written",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "fewer line",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "more line",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "search_count",
},
opts = { skip = true },
},
},
views = {
cmdline_popup = {
border = {
style = "none",
padding = { 2, 3 },
},
filter_options = {},
win_options = {
winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder",
},
},
},
},
}

+ 1
- 1
.zshrc View File

@ -25,7 +25,7 @@ export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}"
setopt prompt_subst
function git_branch_name() {
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
branch=$(git symbolic-ref HEAD 2> /dev/null | sed 's/refs\/heads\///g')
if [[ $branch != "" ]]; then
echo "- ${branch} "
fi


Loading…
Cancel
Save