Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP mapping #13

Open
YagaYasha opened this issue Jun 15, 2024 · 1 comment
Open

LSP mapping #13

YagaYasha opened this issue Jun 15, 2024 · 1 comment

Comments

@YagaYasha
Copy link

Every time you navigate with 'l' key through code, the cursor will not move for a second because Nvim thinks you're trying to use LSP key binding.

    local opts = { buffer = ev.buf }
    vim.keymap.set('n', 'lD', vim.lsp.buf.declaration, opts)
    vim.keymap.set('n', 'ld', vim.lsp.buf.definition, opts)
    vim.keymap.set('n', 'lk', vim.lsp.buf.hover, opts)
    vim.keymap.set('n', 'i', vim.lsp.buf.implementation, opts)
    vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, opts)

No good, very icky.

@kuprTheMan
Copy link

Yes, you`re right, i would suggest rebind this mappings to "leader"
For Example: "leader"rn for LSP rename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants