mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 11:02:13 +02:00
removed lsp stuff and added some more keybinds
This commit is contained in:
@@ -4,76 +4,52 @@ return {
|
|||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup({})
|
local telescope = require("telescope")
|
||||||
|
local telescopeBuiltin = require("telescope.builtin")
|
||||||
|
|
||||||
|
telescope.setup({})
|
||||||
|
|
||||||
local whichKey = require("which-key")
|
local whichKey = require("which-key")
|
||||||
|
|
||||||
whichKey.register({
|
whichKey.register({
|
||||||
["<leader>t"] = {
|
["<leader>t"] = {
|
||||||
name = "Telescope",
|
name = "Telescope",
|
||||||
|
h = {
|
||||||
|
function()
|
||||||
|
telescopeBuiltin.help_tags()
|
||||||
|
end,
|
||||||
|
"Find help tags"
|
||||||
|
},
|
||||||
t = {
|
t = {
|
||||||
function()
|
function()
|
||||||
require("telescope.builtin").treesitter()
|
telescopeBuiltin.treesitter()
|
||||||
end,
|
end,
|
||||||
"Explore the Abstract Syntax Tree",
|
"Explore the Abstract Syntax Tree",
|
||||||
},
|
},
|
||||||
f = {
|
f = {
|
||||||
function()
|
function()
|
||||||
require("telescope.builtin").find_files()
|
telescopeBuiltin.find_files()
|
||||||
end,
|
end,
|
||||||
"Find files",
|
"Find files",
|
||||||
},
|
},
|
||||||
w = {
|
w = {
|
||||||
function()
|
function()
|
||||||
require("telescope.builtin").live_grep()
|
telescopeBuiltin.live_grep()
|
||||||
end,
|
end,
|
||||||
"Find words",
|
"Find words",
|
||||||
},
|
},
|
||||||
c = {
|
c = {
|
||||||
function()
|
function()
|
||||||
require("telescope.builtin").colorscheme()
|
telescopeBuiltin.colorscheme()
|
||||||
end,
|
end,
|
||||||
"Find color schemes",
|
"Find color schemes",
|
||||||
},
|
},
|
||||||
g = {
|
g = {
|
||||||
function()
|
function()
|
||||||
require("telescope.builtin").git_files()
|
telescopeBuiltin.git_files()
|
||||||
end,
|
end,
|
||||||
"Find git files",
|
"Find git files",
|
||||||
},
|
},
|
||||||
l = {
|
|
||||||
name = "LSP",
|
|
||||||
e = {
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").diagnostics()
|
|
||||||
end,
|
|
||||||
"List diagnostics for all open buffers",
|
|
||||||
},
|
|
||||||
r = {
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").lsp_references()
|
|
||||||
end,
|
|
||||||
"List all references for the word under the cursor",
|
|
||||||
},
|
|
||||||
i = {
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").lsp_implementation()
|
|
||||||
end,
|
|
||||||
"Go to the implementation of the word under the cursor",
|
|
||||||
},
|
|
||||||
d = {
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").lsp_definition()
|
|
||||||
end,
|
|
||||||
"Go to the definition of the word under the cursor",
|
|
||||||
},
|
|
||||||
t = {
|
|
||||||
function()
|
|
||||||
require("telescope.builtin").lsp_type_definition()
|
|
||||||
end,
|
|
||||||
"Go to the type definition of the word under the cursor",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user