Commit graph

46 commits

Author SHA1 Message Date
Folke Lemaitre
7529773371
feat(lsp): use lsp_config picker instead of LspInfo 2025-02-11 14:00:03 +01:00
Tim Macfarlane
85e4118065
fix(lsp): don't leak keymaps from LSP server configs (#4849)
## Description

I found an issue where if I'm editing files of different types, say for
example `.cs` and `.py` files, they will naturally load the
corresponding LSPs for each language. However, if one of those LSPs has
keys defined in their `server` config section, then those key maps will
leak into the other, so in this case, the `gd` (go to definition)
mapping intended for `.cs` buffers is now present in `.py` buffers,
causing it not to work. This is currently the case with the `omnisharp`
LSP, as it defines a `gd` key map, see:
63150fa4c5/lua/lazyvim/plugins/extras/lang/omnisharp.lua (L53-L61)

The fix here is to shallow clone the "global" LSP keymaps before adding
the LSP server-specific keymaps so the LSP keymaps aren't added to the
global ones.

## Related Issue(s)

## Screenshots

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-25 14:59:55 +01:00
Matthew Sia
deb9fd85b1
fix(lsp): wrap signature_help (#4791)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

Related to 7616816.
Without wrap `lsp_doc_border` does not work

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-14 20:32:52 +01:00
Folke Lemaitre
76168166e5
fix(lsp): wrap hover and signature_help 2024-11-08 16:55:40 +01:00
Folke Lemaitre
2f4697443c
feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706)
## Description

LazyVim comes with a bunch of smaller QoL plugin like features, but it's
not easy for non LazyVim users to use them.

That's why I started working on
[snacks.nvim](https://github.com/folke/snacks.nvim), a collection of
small QoL plugins for Neovim.

Snacks also includes a bunch of new improvements to these features.

This PR fully integrates with snacks.

## Todo

- [ ] add proper deprecations where needed
- [ ] create snacks docs
- [ ] document all the new improvements relevant to LazyVim users

## Closes

- [ ] #4492 
- [ ] #4333
- [ ] #4687

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [ ] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-07 15:54:47 +01:00
Folke Lemaitre
706ec4b6b6
fix(lsp): lsp keymaps. Fixes #4051 2024-07-15 14:05:49 +02:00
Folke Lemaitre
8346fa7ddc
refactor(lsp): remove lsp keymap dependency on telescope 2024-06-13 06:33:10 +02:00
Folke Lemaitre
1bd4d2fc72
feat(lsp): simpler API to deal with code actions 2024-06-05 22:18:14 +02:00
Brian Di Palma
c50018b791
feat(editor): added extra for inc-rename.nvim (#3432)
* feat(editor-extra): Add inc-rename

* fix: refactor and moved noice integration

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-06-04 09:51:36 +02:00
Folke Lemaitre
804756209e
fix(lsp): remove duplicate keymap 2024-05-29 16:39:02 +02:00
Folke Lemaitre
01e6718e03
fix(lsp): added support for has as array for lsp keymaps 2024-05-29 16:31:16 +02:00
Folke Lemaitre
4dfd5c2596
fix(lsp): create gr with nowait=true 2024-05-29 16:02:13 +02:00
Folke Lemaitre
b949dba489
feat(lsp): added leader-cR to rename the current file and to lsp rename operations 2024-05-29 14:45:55 +02:00
Folke Lemaitre
b3373f3428
fix(lsp): added a-n, a-p for document highlights and cycling. Closes #3320 2024-05-26 16:03:13 +02:00
jyuan0
cdff9de172
fix(lsp): correct previous reference keymap description (#3314) 2024-05-26 10:33:40 +02:00
Folke Lemaitre
a4d83524a7
fix(lsp): move next/prev reference keymaps to lsp keymaps. See #3220 2024-05-18 15:46:35 +02:00
Folke Lemaitre
7a5dbeae75
feat: use LazyVim everywhere instead of require("lazyvim.util") 2024-03-22 09:15:09 +01:00
Folke Lemaitre
780b9bb337
feat(lsp): added native codelens support. Enable in lsp settings. (disabled by default). Fixes #2656 2024-03-07 17:04:18 +01:00
Phúc H. Lê Khắc
873ff89284
fix(keymaps): no diagnostic keymaps w/o lsp attached (#1698) 2023-10-13 16:53:55 +02:00
Folke Lemaitre
c8c929c9fd perf(util): split lazyvim.util in smaller separate modules 2023-10-12 11:48:02 +02:00
Folke Lemaitre
6b837e9165
style: lua annotations and handle deprecated methods 2023-10-08 10:45:38 +02:00
Folke Lemaitre
1bc78272da
feat(keymaps): added support for lazy's per-mode keymap disabling 2023-10-08 10:15:28 +02:00
Folke Lemaitre
9b16770573
fix(format): moved formatting keymap to lua/lazyvim/config/keymaps.lua 2023-10-01 23:31:24 +02:00
暮晨
1b0b6eb0e1
feat(lsp): add 'reuse_win' for reuse window in lsp definition keymap (#1131)
* feat(lsp): add 'reuse_win' for reuse window in lsp definition keymap

* fix: inline telescope require
2023-07-15 09:30:34 +02:00
Folke Lemaitre
8ccc109e92
fix(lsp): fixup lsp keymaps 2023-07-02 14:34:36 +02:00
Folke Lemaitre
a46d47653e
feat(rust): refactor to allow easy user customization and keymaps 2023-07-02 12:46:29 +02:00
Folke Lemaitre
61e3ce8cdc
feat(lsp): custom lsp keymaps 2023-07-02 12:44:54 +02:00
Folke Lemaitre
36774c6058
fix(lsp): resolve keymap capabilities over all buffer clients 2023-07-02 12:43:16 +02:00
Folke Lemaitre
0cb8974221
fix(lsp): gT => gy. keymap for goto type definition. Fixes #554 2023-04-16 22:35:14 +02:00
Folke Lemaitre
2d8116ef67
fix(lsp): gt -> gT. Fixes #554 2023-04-16 11:03:54 +02:00
Folke Lemaitre
bef36bb2fd
fix(format): ignore vim.b.autoformat when formatting using key bindings. Fixes #575 2023-04-16 10:48:07 +02:00
Aaron Dill
a099b2d3ab
feat(keymaps): Get rename command from inc_rename configuration (#579)
Gets the rename command from the inc_rename module (when installed), rather than assuming the default `IncRename`, allowing the user to modify the inc_rename options without having to create a new keymap.
2023-04-16 10:43:14 +02:00
Folke Lemaitre
9f5a0f1bd8
feat(lsp): added keymap to see source actions with <leader>cA (useful for tsserver and others) 2023-03-17 16:29:32 +01:00
Folke Lemaitre
a28885be3f
fix(lsp): allow silent=false for lsp keymaps. Fixes #414 2023-03-12 09:10:45 +01:00
alexander-born
5abb10b5ab
fix(lsp): only map lsp goto definition when client has definitionProvider (#348)
Co-authored-by: Alexander Born <alexander.born@bmw.de>
2023-02-28 11:29:57 +01:00
Folke Lemaitre
cb384ad69f
fix(lsp): remove debug 2023-02-09 14:47:55 +01:00
Folke Lemaitre
d61e4bd553
fix(lsp): dont use expr=true for lsp rename. Fixes #220 2023-02-09 14:35:48 +01:00
Folke Lemaitre
7595bfaa3b
fix(lsp): ]w and [w now work as expected. Fixes #109 2023-01-23 19:21:14 +01:00
Folke Lemaitre
47ba46f184
feat(lsp): make it easier to customize LSP keymaps. Fixes #93 2023-01-22 11:56:46 +01:00
Phúc Lê Khắc
fe4b92492c
fix(lsp): there is no declaration in telescope, use vim.lsp (#78) 2023-01-18 08:37:06 +01:00
Folke Lemaitre
254d3a0921
refactor(telescope)!: moved search diagnostics to <leader>sd 2023-01-17 14:20:58 +01:00
Phúc Lê Khắc
cbd534242c
fix(lsp): ']d' & '[d' was reversed (#58) 2023-01-14 18:29:57 +01:00
Folke Lemaitre
b17ede1ae2
feat(lsp): added <c-k> for signature help in insert mode 2023-01-13 23:03:08 +01:00
Folke Lemaitre
26a3d8c1f3
refactor(lsp): move typescript keymaps to typescript 2023-01-08 21:07:42 +01:00
Folke Lemaitre
92c22d7932
feat(lps)!: move signature help from <-k> to gK 2023-01-07 00:13:38 +01:00
Folke Lemaitre
8eb8d235c9
refactor: move everything under lazyvim 2023-01-01 14:33:56 +01:00
Renamed from lua/plugins/lsp/keymaps.lua (Browse further)