|
|
|
|
@@ -34,6 +34,8 @@ map("n", "<leader>ld", "<cmd> Telescope lsp_definitions<CR>", default_opts) -- S
|
|
|
|
|
map("n", "<leader>le", "<cmd> Telescope diagnostics<CR>", default_opts) -- Show errors and warnings
|
|
|
|
|
map("n", "<leader>lf", "<cmd> lua vim.lsp.buf.format {async = true }<CR>", default_opts) -- Format buffer with LSP
|
|
|
|
|
map("n", "<leader>lh", "<cmd> lua vim.lsp.buf.hover()<CR>", default_opts) -- Show info of symbol (double tap to enter)
|
|
|
|
|
map("i", "<C-l>", "<cmd> lua vim.lsp.buf.signature_help()<CR>", default_opts) -- Show function signature
|
|
|
|
|
map("n", "<C-l>", "<cmd> lua vim.lsp.buf.signature_help()<CR>", default_opts) -- Show function signature
|
|
|
|
|
map("n", "<leader>ln", "<cmd> lua vim.lsp.buf.rename()<CR>", default_opts) -- Rename LSP symbol
|
|
|
|
|
map("n", "<leader>lr", "<cmd> Telescope lsp_references<CR>", default_opts) -- Show all LSP references
|
|
|
|
|
map("n", "<leader>ls", "<cmd> Telescope lsp_workspace_symbols<CR>", default_opts) -- Search for LSP symbols
|
|
|
|
|
@@ -72,8 +74,7 @@ wk.register({
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Telescope + telescope-symbols
|
|
|
|
|
map("n", "<leader>ie", "<cmd> lua require'telescope.builtin'.symbols{ sources = { 'emoji', 'gitmoji' } }<CR>",
|
|
|
|
|
default_opts) -- Show emojis
|
|
|
|
|
map("n", "<leader>ie", "<cmd> lua require'telescope.builtin'.symbols{ sources = { 'emoji', 'gitmoji' } }<CR>", default_opts) -- Show emojis
|
|
|
|
|
map("n", "<leader>im", "<cmd> lua require'telescope.builtin'.symbols{ sources = { 'julia' } }<CR>", default_opts) -- Show math symbols
|
|
|
|
|
map("n", "<leader>in", "<cmd> lua require'telescope.builtin'.symbols{ sources = { 'nerd' } }<CR>", default_opts) -- Show nerd icons
|
|
|
|
|
wk.register({
|
|
|
|
|
|