aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2022-11-01 21:01:51 +0100
committerFranciszek Malinka <franciszek.malinka@gmail.com>2022-11-01 21:01:51 +0100
commita4b1a5a86e17ae745d5358dd6541998daf928d4b (patch)
tree5ce363759ae627ac36c9420199cd25a0b362a318 /lua/user
parenta9531bdeee5ef330ff360b3ef5b4d66ed435e4ed (diff)
Stopped using tabs, added shortcuts for Telescope+lsp
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/keymaps.lua11
-rw-r--r--lua/user/options.lua3
2 files changed, 10 insertions, 4 deletions
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", "<space>t", ":NvimTreeToggle<CR>", opts)
-- Resizing windows (like i3)
-keymap("n", "<C-S-Up>", ":resize -2<CR>", opts)
-keymap("n", "<C-S-Down>", ":resize +2<CR>", opts)
-keymap("n", "<C-S-Left>", ":vertical resize -2<CR>", opts)
-keymap("n", "<C-S-Right>", ":vertical resize +2<CR>", opts)
+keymap("n", "<C-S-k>", ":resize -2<CR>", opts)
+keymap("n", "<C-S-j>", ":resize +2<CR>", opts)
+keymap("n", "<C-S-h>", ":vertical resize -2<CR>", opts)
+keymap("n", "<C-S-l>", ":vertical resize +2<CR>", opts)
-- Moving between buffers
keymap("n", "<S-l>", ":bnext<CR>", opts)
@@ -51,6 +51,9 @@ keymap("n", "<leader>f", "<cmd>Telescope find_files<CR>", opts)
keymap("n", "<leader>g", "<cmd>Telescope live_grep<CR>", opts)
keymap("n", "<leader>m", "<cmd>Telescope media_files<CR>", opts)
keymap("n", "<leader>r", "<cmd>Telescope lsp_references<CR>", opts)
+keymap("n", "<leader>d", "<cmd>Telescope lsp_definitions<CR>", opts)
+keymap("n", "<leader>i", "<cmd>Telescope lsp_implementations<CR>", opts)
+keymap("n", "<leader>w", "<cmd>Telescope lsp_dynamic_workspace_symbols<CR>", opts)
keymap("n", "<leader>h", "<cmd>Telescope oldfiles<CR>", 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,