diff options
| author | Blake Romero <blake@blkrom.com> | 2025-01-24 00:05:23 +0000 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-01-24 00:05:23 +0000 |
| commit | 29d82d16de6f44c59ee0c93a20ca3a9c645741f5 (patch) | |
| tree | 5d1d67f41e0412231db71681c7f8762d42f7ae56 | |
| parent | 0f1cdc901724ad67062e4efc0d43a81659c95871 (diff) | |
Move mappings & add telescope
| -rw-r--r-- | init.lua | 15 | ||||
| -rw-r--r-- | lua/config/lazy.lua | 6 | ||||
| -rw-r--r-- | lua/plugins/telescope.lua | 10 |
3 files changed, 21 insertions, 10 deletions
@@ -1,11 +1,18 @@ +vim.cmd("set expandtab") +vim.cmd("set tabstop=2") +vim.cmd("set softtabstop=2") +vim.cmd("set shiftwidth=2") + vim.keymap.set({"n","v"},"j","<up>") vim.keymap.set({"n","v"},"k","<down>") vim.keymap.set({"n","v"},"l","<left>") vim.keymap.set({"n","v"},";","<right>") -vim.cmd("set expandtab") -vim.cmd("set tabstop=2") -vim.cmd("set softtabstop=2") -vim.cmd("set shiftwidth=2") +-- Make sure to setup `mapleader` and `maplocalleader` before +-- loading lazy.nvim so that mappings are correct. +-- This is also a good place to setup other settings (vim.opt) +vim.g.mapleader = " " +vim.g.maplocalleader = "\\" require("config.lazy") + diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a26b7d1..4dfe238 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -15,11 +15,5 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) --- Make sure to setup `mapleader` and `maplocalleader` before --- loading lazy.nvim so that mappings are correct. --- This is also a good place to setup other settings (vim.opt) -vim.g.mapleader = " " -vim.g.maplocalleader = "\\" - -- Setup lazy.nvim require("lazy").setup("plugins") diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..2516498 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,10 @@ +return { + 'nvim-telescope/telescope.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + keys = { + { '<leader>f', ':Telescope find_files<CR>', desc='Telescope find files' }, + { '<leader>g', ':Telescope live_grep<CR>', desc='Telescope live grep' }, + { '<leader>b', ':Telescope buffers<CR>', desc='Telescope buffers' }, + { '<leader>h', ':Telescope help_tags<CR>', desc='Telescope help tags' }, + } +} |
