From 40bc6fca8df9a9f0307170ccf78aa0510241a2fd Mon Sep 17 00:00:00 2001 From: afonso Date: Tue, 12 Nov 2024 15:42:29 +0000 Subject: [PATCH] [nvim] cleanup old stuff --- .config/nvim/lua/plugins/lsp.lua | 1 - .config/nvim/lua/plugins/misc.lua | 6 --- .config/nvim/lua/plugins/treesitter.lua | 7 ---- .config/nvim/lua/plugins/ui.lua | 53 ++++++++++++++++++++----- 4 files changed, 42 insertions(+), 25 deletions(-) diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua index 04fa069..bf2bb4a 100644 --- a/.config/nvim/lua/plugins/lsp.lua +++ b/.config/nvim/lua/plugins/lsp.lua @@ -16,7 +16,6 @@ return { { "smjonas/inc-rename.nvim", opts = { - input_buffer_type = "dressing", save_in_cmdline_history = false, } }, diff --git a/.config/nvim/lua/plugins/misc.lua b/.config/nvim/lua/plugins/misc.lua index f7fb9b6..3e75761 100644 --- a/.config/nvim/lua/plugins/misc.lua +++ b/.config/nvim/lua/plugins/misc.lua @@ -20,12 +20,6 @@ return { end, { desc = "Previous todo comment" }) }, }, - { - "TobinPalmer/pastify.nvim", - event = "VeryLazy", - cmd = { "Pastify" }, - opts = {}, - }, { 'eandrju/cellular-automaton.nvim', config = function() diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua index 01f74f7..c1d2366 100644 --- a/.config/nvim/lua/plugins/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -27,13 +27,6 @@ return { treesitter.setup(options) end }, - { - "nvim-treesitter/nvim-treesitter-context", - event = "VeryLazy", - config = function() - require 'treesitter-context'.setup() - end, - }, { 'echasnovski/mini.ai', event = "VeryLazy", diff --git a/.config/nvim/lua/plugins/ui.lua b/.config/nvim/lua/plugins/ui.lua index b2b56bd..0ef0c75 100644 --- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -8,22 +8,53 @@ return { vim.g.tpipeline_statusline = '%=%l:%c' end }, - { - "j-hui/fidget.nvim", - opts = { - progress = { - display = { - render_limit = 3, - } - } - }, - }, - --Better quick fix { 'kevinhwang91/nvim-bqf', event = "VeryLazy", ft = 'qf' }, + + { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + views = { + cmdline_popup = { + position = { + row = "100%", + col = "0%", + }, + size = { + min_width = 60, + width = "auto", + height = "auto", + }, + }, + cmdline_popupmenu = { + relative = "editor", + position = { + row = "85%", + col = "0%", + }, + }, + }, + lsp = { + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, + }, + }, + presets = { + long_message_to_split = true, -- long messages will be sent to a split + inc_rename = true, -- enables an input dialog for inc-rename.nvim + }, + }, + dependencies = { + "MunifTanjim/nui.nvim", + } + }, + -- { -- "OXY2DEV/markview.nvim", -- ft = "markdown",