diff --git a/.config/nvim/lua/tovi/plugins/noice.lua b/.config/nvim/lua/tovi/plugins/noice.lua index 4320dc9..926addc 100644 --- a/.config/nvim/lua/tovi/plugins/noice.lua +++ b/.config/nvim/lua/tovi/plugins/noice.lua @@ -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", + }, + }, + }, + }, } diff --git a/.zshrc b/.zshrc index 49d872b..3a1cde8 100644 --- a/.zshrc +++ b/.zshrc @@ -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