diff options
Diffstat (limited to 'lua/user')
-rw-r--r-- | lua/user/jabs.lua | 5 | ||||
-rw-r--r-- | lua/user/keymaps.lua | 8 | ||||
-rw-r--r-- | lua/user/plugins.lua | 6 | ||||
-rw-r--r-- | lua/user/telescope.lua | 8 |
4 files changed, 25 insertions, 2 deletions
diff --git a/lua/user/jabs.lua b/lua/user/jabs.lua index 136796d..03863b6 100644 --- a/lua/user/jabs.lua +++ b/lua/user/jabs.lua @@ -1,3 +1,8 @@ +local status_ok, jabs = pcall(require, "jabs") +if not status_ok then + return +end + require 'jabs'.setup { -- Options for the main window position = {'left', 'bottom'}, diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index adb6470..fd9d2c2 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -93,6 +93,14 @@ keymap("n", "<leader>bl", ":JABSOpen<CR>", opts) --Open buffer switcher ('b'uf -- Toggle GUI colors keymap("n", "<leader>g", ":set termguicolors!<CR>:TSToggle highlight<CR>", opts) -- ('g'ui) +-- Telescope options +keymap("n", "<leader>tf", ":Telescope find_files<CR>", opts) -- ('f'ind_files) +keymap("n", "<leader>ts", ":Telescope live_grep<CR>", opts) -- ('s'tring) +keymap("n", "<leader>tb", ":Telescope buffers<CR>", opts) -- ('b'uffers) +keymap("n", "<leader>th", ":Telescope keymaps<CR>", opts) -- ('h'elp) +--keymap("n", "<leader>tld", ":Telescope lsp_document_diagnostics<CR>", opts) -- ('l'sp 'd'iagnostics) +keymap("n", "<leader>tt", ":Telescope treesitter<CR>", opts) -- ('t'reesitter) + -- Workspace Options keymap("n", "<leader>wsh", ":split<CR>", opts) --Horizontal split workspace ('s'plit 'h'orizontal) keymap("n", "<leader>wsv", ":vs<CR>", opts) --Vertical split workspace ('s'plit 'v'ertical) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index ad9ba8e..03a5d2b 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -9,7 +9,7 @@ return packer.startup(function(use) -- My plugins here use "wbthomason/packer.nvim" -- Have packer manage itself --use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim - --use "nvim-lua/plenary.nvim" -- Useful lua functions used by lots of plugins + use "nvim-lua/plenary.nvim" -- Useful lua functions used by lots of plugins -- Colorschemes --use "lunarvim/colorschemes" -- Additional colorschemes @@ -36,8 +36,10 @@ return packer.startup(function(use) use "williamboman/mason.nvim" use "williamboman/mason-lspconfig.nvim" - -- TreeSitter use "nvim-treesitter/nvim-treesitter" --enable treesitter + -- Telescope + use { "nvim-telescope/telescope.nvim", tag = '0.1.0' } + end) diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua new file mode 100644 index 0000000..396cd0a --- /dev/null +++ b/lua/user/telescope.lua @@ -0,0 +1,8 @@ +local status_ok, telescope = pcall(require, "telescope") +if not status_ok then + return +end + +local actions = require "telescope.actions" + +telescope.setup {} |