diff --git a/init.lua b/init.lua index edf1128..47f74ae 100644 --- a/init.lua +++ b/init.lua @@ -854,6 +854,7 @@ require("lazy").setup({ ["g"] = { name = "+git" }, ["h"] = { name = "+hunks" }, ["s"] = { name = "+search" }, + ["n"] = { name = "+noice" }, }, }, config = function(_, opts) @@ -906,8 +907,43 @@ require("lazy").setup({ }, }, { + "folke/noice.nvim", -- Better UI event = "VeryLazy", + dependencies = { + "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify", + }, + config = function() + require("telescope").load_extension("noice") + require("noice").setup({ + lsp = { + -- override markdown rendering so that cmp and other plugins use Treesitter + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, + }, + }, + presets = { + bottom_search = false, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = false, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = true, -- add a border to hover docs and signature help + }, + }) + end, + -- stylua: ignore keys = { + { "sn", "Telescope noice", desc = "[N]oice" }, + { "nl", function() require("noice").cmd("last") end, desc = "[L]ast Message" }, + { "nh", function() require("noice").cmd("history") end, desc = "[H]istory" }, + { "na", function() require("noice").cmd("all") end, desc = "[A]ll" }, + { "nd", function() require("noice").cmd("dismiss") end, desc = "[D]ismiss All" }, + { "", function() if not require("noice.lsp").scroll(4) then return "" end end, silent = true, expr = true, desc = "Scroll [F]orward", mode = {"i", "n", "s"} }, + { "", function() if not require("noice.lsp").scroll(-4) then return "" end end, silent = true, expr = true, desc = "Scroll [B]ackward", mode = {"i", "n", "s"}}, + }, + }, { "folke/flash.nvim", -- Amazing movements event = "VeryLazy", diff --git a/tmux.conf b/tmux.conf index 8d10ae9..022a668 100644 --- a/tmux.conf +++ b/tmux.conf @@ -50,7 +50,7 @@ set-option -g prefix C-a bind-key C-a send-prefix # C-b to server prefix in nested tmux stuff -bind-key -n C-b send-prefix +# bind-key -n C-b send-prefix # New windows and panes are in current path bind c new-window -c "#{pane_current_path}"