From 004ab5005f429e40bf40f0b56c8a8e8a9dad3d32 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 31 Jul 2024 20:54:41 +0200 Subject: [PATCH 1/3] Noice.nvim plugin --- lua/plugins/noice.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lua/plugins/noice.lua diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua new file mode 100644 index 0000000..946b988 --- /dev/null +++ b/lua/plugins/noice.lua @@ -0,0 +1,17 @@ +-- Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu. + +return { + 'folke/noice.nvim', + event = 'VeryLazy', + opts = { + -- add any options here + }, + dependencies = { + -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries + 'MunifTanjim/nui.nvim', + -- OPTIONAL: + -- `nvim-notify` is only needed, if you want to use the notification view. + -- If not available, we use `mini` as the fallback + 'rcarriga/nvim-notify', + }, +} From a4a91d6e3f9b9aee00950a6e4e11fe79fad1a639 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 31 Jul 2024 20:54:47 +0200 Subject: [PATCH 2/3] Trouble plugin --- lua/plugins/trouble.lua | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 lua/plugins/trouble.lua diff --git a/lua/plugins/trouble.lua b/lua/plugins/trouble.lua new file mode 100644 index 0000000..7bb2ad2 --- /dev/null +++ b/lua/plugins/trouble.lua @@ -0,0 +1,48 @@ +-- Joinked word-by-word from https://www.lazyvim.org/plugins/editor#troublenvim +return { -- Better diagnostics + 'folke/trouble.nvim', + cmd = { 'Trouble' }, + opts = { + modes = { + lsp = { + win = { position = 'right' }, + }, + }, + }, + keys = { + { 'xx', 'Trouble diagnostics toggle', desc = 'Diagnostics (Trouble)' }, + { 'xX', 'Trouble diagnostics toggle filter.buf=0', desc = 'Buffer Diagnostics (Trouble)' }, + { 'cs', 'Trouble symbols toggle', desc = 'Symbols (Trouble)' }, + { 'cS', 'Trouble lsp toggle', desc = 'LSP references/definitions/... (Trouble)' }, + { 'xL', 'Trouble loclist toggle', desc = 'Location List (Trouble)' }, + { 'xQ', 'Trouble qflist toggle', desc = 'Quickfix List (Trouble)' }, + { + '[q', + function() + if require('trouble').is_open() then + require('trouble').prev { skip_groups = true, jump = true } + else + local ok, err = pcall(vim.cmd.cprev) + if not ok then + vim.notify(err, vim.log.levels.ERROR) + end + end + end, + desc = 'Previous Trouble/Quickfix Item', + }, + { + ']q', + function() + if require('trouble').is_open() then + require('trouble').next { skip_groups = true, jump = true } + else + local ok, err = pcall(vim.cmd.cnext) + if not ok then + vim.notify(err, vim.log.levels.ERROR) + end + end + end, + desc = 'Next Trouble/Quickfix Item', + }, + }, +} From 4e298ac79158c71136c8cc394a8ee5bf4f59dc0c Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 31 Jul 2024 20:55:01 +0200 Subject: [PATCH 3/3] Default to nerd-fonts --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ee8378c..6e4891b 100644 --- a/init.lua +++ b/init.lua @@ -8,7 +8,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] require 'options'