nvim: use better keybind for signature help
This commit is contained in:
@@ -34,8 +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>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>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("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("i", "<C-h>", "<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", "<C-h>", "<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>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>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
|
map("n", "<leader>ls", "<cmd> Telescope lsp_workspace_symbols<CR>", default_opts) -- Search for LSP symbols
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ require("nvim-lsp-installer").setup({
|
|||||||
|
|
||||||
local lsp = require('lspconfig')
|
local lsp = require('lspconfig')
|
||||||
local navic = require('nvim-navic') -- breadcrumbs
|
local navic = require('nvim-navic') -- breadcrumbs
|
||||||
local sig = require('lsp_signature') -- function signatures
|
|
||||||
|
|
||||||
function my_attach (client, bufnr)
|
function my_attach (client, bufnr)
|
||||||
navic.attach(client, bufnr) -- breadcrumbs
|
navic.attach(client, bufnr) -- breadcrumbs
|
||||||
|
|||||||
Reference in New Issue
Block a user