From a4b1a5a86e17ae745d5358dd6541998daf928d4b Mon Sep 17 00:00:00 2001 From: Franciszek Malinka Date: Tue, 1 Nov 2022 21:01:51 +0100 Subject: Stopped using tabs, added shortcuts for Telescope+lsp --- lua/user/keymaps.lua | 11 +++++++---- lua/user/options.lua | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index a7a5878..c0291c9 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -23,10 +23,10 @@ vim.g.maplocalleader = " " keymap("n", "t", ":NvimTreeToggle", opts) -- Resizing windows (like i3) -keymap("n", "", ":resize -2", opts) -keymap("n", "", ":resize +2", opts) -keymap("n", "", ":vertical resize -2", opts) -keymap("n", "", ":vertical resize +2", opts) +keymap("n", "", ":resize -2", opts) +keymap("n", "", ":resize +2", opts) +keymap("n", "", ":vertical resize -2", opts) +keymap("n", "", ":vertical resize +2", opts) -- Moving between buffers keymap("n", "", ":bnext", opts) @@ -51,6 +51,9 @@ keymap("n", "f", "Telescope find_files", opts) keymap("n", "g", "Telescope live_grep", opts) keymap("n", "m", "Telescope media_files", opts) keymap("n", "r", "Telescope lsp_references", opts) +keymap("n", "d", "Telescope lsp_definitions", opts) +keymap("n", "i", "Telescope lsp_implementations", opts) +keymap("n", "w", "Telescope lsp_dynamic_workspace_symbols", opts) keymap("n", "h", "Telescope oldfiles", opts) -- Session Manager diff --git a/lua/user/options.lua b/lua/user/options.lua index a33decb..aea781e 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -2,6 +2,9 @@ local options = { completeopt = { "menuone", "noselect" }, tabstop = 4, shiftwidth = 2, + smarttab = true, + softtabstop = 0, + expandtab = true, scrolloff = 5, number = true, relativenumber = true, -- cgit v1.2.3