From 138b46f8a0e39f07684814ed295deb8ee011cb43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 5 Dec 2022 00:41:25 +0100 Subject: [PATCH] Add more plugins --- init.lua | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 0fc2db6..4792b2e 100644 --- a/init.lua +++ b/init.lua @@ -47,6 +47,11 @@ local config = { spell = false, -- sets vim.opt.spell signcolumn = "auto", -- sets vim.opt.signcolumn to auto wrap = false, -- sets vim.opt.wrap + + -- Treesitter + foldenable = false, + foldexpr = "nvim_treesitter#foldexpr()", -- set Treesitter based folding + foldmethod = "expr", }, g = { mapleader = " ", -- sets vim.g.mapleader @@ -59,6 +64,12 @@ local config = { copilot_assume_mapped = true, copilot_tab_fallback = "", vimspector_enable_mappings = 'VISUAL_STUDIO', + + -- Taglist + Tlist_Use_Right_Window = 1, + Tlist_GainFocus_On_ToggleOpen = 1, + Tlist_Auto_Update = 1, + -- Tlist_Close_On_Select = 1, }, }, -- If you need more control, you can use the function()...end notation @@ -260,6 +271,18 @@ local config = { ["xs"] = { "VimtexToggleMain", desc = "Set current file as 'current project'" }, ["xa"] = { "VimtexContextMenu", desc = "Show context menu" }, + -- Taglist + ["ft"] = { "TlistToggle", desc = "Tagbar toggle " }, + + -- Trouble + ["ttx"] = { "TroubleToggle", desc = "Toggle Trouble" }, + ["ttw"] = { "TroubleToggle workspace_diagnostics", desc = "Workspace diagnostics" }, + ["ttd"] = { "TroubleToggle document_diagnostics", desc = "Document diagnostics" }, + ["ttq"] = { "TroubleToggle quickfix", desc = "Quickfix" }, + ["ttl"] = { "TroubleToggle loclist", desc = "Loc List" }, + ["ttR"] = { "TroubleToggle lsp_references", desc = "Lsp references" }, + ["ttt"] = { "TodoTrouble", desc = "Todo Trouble" }, + -- Autosave [""] = { "ASToggle", desc = "Toggle autosave" }, @@ -292,6 +315,31 @@ local config = { -- end, -- }, -- + { "andweeb/presence.nvim", + require("presence"):setup({ + -- General options + auto_update = true, -- Update activity based on autocmd events (if `false`, map or manually execute `:lua package.loaded.presence:update()`) + neovim_image_text = "The One True Text Editor", -- Text displayed when hovered over the Neovim image + main_image = "neovim", -- Main image display (either "neovim" or "file") + client_id = "793271441293967371", -- Use your own Discord application client id (not recommended) + log_level = nil, -- Log messages at or above this level (one of the following: "debug", "info", "warn", "error") + debounce_timeout = 10, -- 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 + buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "