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

refactor(lsp): cleanup servers' override configuration #2243

Merged
merged 9 commits into from Apr 14, 2022

Conversation

kylo252
Copy link
Collaborator

@kylo252 kylo252 commented Feb 3, 2022

Description

  • rename lvim.lsp.override to lvim.lsp.automatic_configuration.ignored_servers lvim.lsp.automatic_configuration.skipped_servers
  • add lvim.lsp.automatic_configuration.ignored_filetypes lvim.lsp.automatic_configuration.skipped_filetypes
  • refactor(lsp): allow installing overridden servers during setup

Fixes issue with keeping up with new markdown servers that keeps getting added..


TODOs

lua/lvim/config/init.lua Outdated Show resolved Hide resolved
@academo
Copy link

academo commented Mar 29, 2022

This renaming is a great initiative. When I just started using lunarvim (not that long ago), the whole "overwrites" was confusing because in fact, it was not overwriting anything, it was disabling.

I also like the idea of putting this inside "automatic_configuration". In general in natural language it should sound like "ignored servers by the automatic configuration".

My only concern in the change, and this is of course something that needs to be changed in the website documentation, is how you document it.

A new user to the editor could easily think that because you are "ignoring" a server, it means it will never be used or installed when in fact is merely ignored for automatic configuration.

@kylo252 kylo252 marked this pull request as ready for review April 13, 2022 09:45
@kylo252 kylo252 requested a review from abzcoding April 13, 2022 09:58
@abzcoding
Copy link
Member

"require(\"lvim.lsp.manager\").setup(\"crystalline\"), require(\"lvim.lsp.manager\").setup(\"scry\")" 
[38](https://github.com/LunarVim/LunarVim/runs/6005277771?check_suite_focus=true#step:5:38)

just fix this and we are good to go 👍

@abzcoding
Copy link
Member

also, can you fix the windows example config?
see this -> #2452

@kylo252
Copy link
Collaborator Author

kylo252 commented Apr 14, 2022

just fix this and we are good to go 👍

I must've messed something up in one of the rebases, since I need to add all those servers manually again 🥲

also, wdyt about the variable names?

@abzcoding
Copy link
Member

just fix this and we are good to go 👍

I must've messed something up in one of the rebases, since I need to add all those servers manually again 🥲

also, wdyt about the variable names?

variable name looks fine to me 👍

Copy link
Member

@abzcoding abzcoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@abzcoding abzcoding mentioned this pull request Apr 14, 2022
@abzcoding abzcoding merged commit 198577a into rolling Apr 14, 2022
@kylo252 kylo252 deleted the refactor-lsp-override branch April 23, 2022 12:26
tomazursic pushed a commit to tomazursic/LunarVim that referenced this pull request Apr 27, 2022
* upstream/rolling: (48 commits)
  refactor: lock new installations to nvim v0.7+ (LunarVim#2526)
  fix(readme): remove black as linter (LunarVim#2510)
  fix(nvimtree): make sure on_config_done is using the correct require (LunarVim#2509)
  feat(installer): ensure correct responses when prompting user (LunarVim#2506)
  feat(peek): make sure max width and height are customizable (LunarVim#2492)
  chore: bump plugins version (LunarVim#2459)
  fix(nvimtree): escape the dot character in custom filter (LunarVim#2493)
  refactor: update impatient (LunarVim#2477)
  feat: lock nvim <0.7 to a specific tag (LunarVim#2491)
  fix(luasnip): only use user snippets if the folder exists (LunarVim#2481)
  fix(lualine): color theme gaps in some components (LunarVim#2465)
  fix(cmp): bring back default keybindings (LunarVim#2470)
  fix(cmp): update nvim-cmp to the latest version (LunarVim#2467)
  fix(readme): update lsp server ignore syntax
  refactor(lsp): cleanup servers' override configuration (LunarVim#2243)
  feat(cmp): documentation is deprecated in favor of window.documentation (LunarVim#2461)
  docs(windows): use alpha in config_win.example.lua (LunarVim#2452)
  chore: bump plugins version (LunarVim#2448)
  fix(impatient): avoid get_options in fast handler (LunarVim#2451)
  fix(luasnip): make sure all snippets are loaded (LunarVim#2447)
  ...
tomazursic pushed a commit to tomazursic/LunarVim that referenced this pull request Apr 27, 2022
* upstream/master: (63 commits)
  chore: update changelog
  refactor: lock new installations to nvim v0.7+ (LunarVim#2526)
  fix(readme): remove black as linter (LunarVim#2510)
  fix(nvimtree): make sure on_config_done is using the correct require (LunarVim#2509)
  feat(installer): ensure correct responses when prompting user (LunarVim#2506)
  feat(peek): make sure max width and height are customizable (LunarVim#2492)
  chore: bump plugins version (LunarVim#2459)
  fix(nvimtree): escape the dot character in custom filter (LunarVim#2493)
  chore: update changelog
  refactor: update impatient (LunarVim#2477)
  feat: lock nvim <0.7 to a specific tag (LunarVim#2491)
  fix(luasnip): only use user snippets if the folder exists (LunarVim#2481)
  fix(lualine): color theme gaps in some components (LunarVim#2465)
  fix(cmp): update nvim-cmp to the latest version (LunarVim#2467) (LunarVim#2469)
  fix(cmp): bring back default keybindings (LunarVim#2470)
  fix(cmp): hotfix nvim-cmp version
  fix(cmp): update nvim-cmp to the latest version (LunarVim#2467)
  chore: update changelog
  fix(readme): update lsp server ignore syntax
  refactor(lsp): cleanup servers' override configuration (LunarVim#2243)
  ...
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

Successfully merging this pull request may close these issues.

None yet

3 participants