From 7a79fd376a6bbda7fbdef15fd867c1b852ed8950 Mon Sep 17 00:00:00 2001 From: Tiago Garcia Date: Sat, 21 Sep 2024 21:32:51 +0100 Subject: [PATCH] Updates to nvim Signed-off-by: Tiago Garcia --- .config/nvim/after/plugin/aerial.lua | 15 +- .config/nvim/after/plugin/lsp.lua | 4 +- .config/nvim/after/plugin/presence.lua | 4 +- .config/nvim/after/plugin/telescope.lua | 27 ++- .config/nvim/snippets/gitcommit.snippets | 2 +- .config/nvim/snippets/rust.snippets | 252 ----------------------- .config/nvim/snippets/vhdl.snippets | 137 ------------ 7 files changed, 43 insertions(+), 398 deletions(-) delete mode 100644 .config/nvim/snippets/rust.snippets delete mode 100644 .config/nvim/snippets/vhdl.snippets diff --git a/.config/nvim/after/plugin/aerial.lua b/.config/nvim/after/plugin/aerial.lua index 2109fab..dbc668d 100644 --- a/.config/nvim/after/plugin/aerial.lua +++ b/.config/nvim/after/plugin/aerial.lua @@ -1,5 +1,16 @@ -require("aerial").setup() +local aerial = require("aerial") + +aerial.setup({ + layout = { + width = 0.2, + default_direction = "prefer_right", + }, + + show_guides = true, + + open_automatic = true, +}) vim.keymap.set("n", "{", "AerialPrev") vim.keymap.set("n", "}", "AerialNext") -vim.keymap.set("n", "", "AerialToggle float") +vim.keymap.set("n", "", aerial.focus) diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 1cc7e9a..1a73cea 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -1,7 +1,7 @@ local lsp = require("lsp-zero") -vim.opt.pumheight = 10 -vim.opt.pumwidth = 30 +vim.opt.pumheight = 15 +vim.opt.pumwidth = 60 lsp.preset("recommended") diff --git a/.config/nvim/after/plugin/presence.lua b/.config/nvim/after/plugin/presence.lua index 1f058bd..8487e85 100644 --- a/.config/nvim/after/plugin/presence.lua +++ b/.config/nvim/after/plugin/presence.lua @@ -10,11 +10,11 @@ require("presence").setup({ debounce_timeout = 1, -- Number of seconds to debounce events (or calls to `:lua package.loaded.presence:update(, true)`) enable_line_number = false, -- Displays the current line number instead of the current project blacklist = { -- A list of strings or Lua patterns that disable Rich Presence if the current file name, path, or workspace matches - "glua-atas", - "glua-regulamento", + "glua-documentos", "toggleterm", "curriculum-vitae", "Nextcloud", + "NvimTree", "NvimTree_1", }, buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "