From 15ab840ed527ff6e4e0abf3b1099bb2a05c2ec93 Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Wed, 10 Apr 2024 22:25:00 -0400 Subject: [PATCH] Add mouse --- lua/chadrc.lua | 19 +++++++------------ lua/mappings.lua | 2 ++ lua/options.lua | 3 ++- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/lua/chadrc.lua b/lua/chadrc.lua index 6a1a545..3bf9edb 100644 --- a/lua/chadrc.lua +++ b/lua/chadrc.lua @@ -35,19 +35,14 @@ M.ui = { { " Mappings", "Spc c h", "NvCheatsheet" }, }, }, + telescope = { + style = "bordered", + }, } - --- M.plugins = { --- default_plugin_config_replace = { --- nvim_tree = { --- renderer = { --- icons = { --- git = { --- unstaged = "❖", --- }, --- }, --- }, --- }, +-- M.lspoveride = { +-- n = { +-- ["gd"] = { " Telescope ", "definitions" }, +-- ["gr"] = { " Telescope ", "references" }, -- }, -- } diff --git a/lua/mappings.lua b/lua/mappings.lua index cf2f5d9..2c2e307 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -27,3 +27,5 @@ end, { desc = "Previous todo comment" }) map("n", "tt", ":TodoTelescope", { desc = "View [T]odos in [T]elescope" }) -- map("n", "tT", ":TodoTrouble", { desc = "View [t]odos in [T]rouble" }) + +-- map("n", "gr", "Telescope lsp_references", { desc = "[G]oto [R]eferences" }) diff --git a/lua/options.lua b/lua/options.lua index 232c900..0329d80 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,7 +1,8 @@ require "nvchad.options" -- add yours here! -vim.opt.mouse = "" +vim.o.mouse = "nv" +vim.o.mousemodel = "extend" -- tabsize -- vim.opt.shiftwidth = 4