-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: minimal basic ide #17
Conversation
- enable format on save - enable breadcrumbs
- kanagawa - catppuccin
manually configured servers - rust_analyzer - clangd - gopls
- vim-surround - dressing.nvim - nvim-ts-autotag
- mapping added for search and replace - mappings added for diagnostics using trouble.nvim - mappings for refactoring should only be executed in visual mode
- LunarVim already installs language servers automatically
- user can use lunarvim docs to setup their favorite colorscheme
- removes unnecessary config functions
this is actually a very good setup ... it's even better then the default one that comes with lvim, i'd definitely approve this as a template ... only thing i'd add is lvim as a global to lsp, as lvim is marked as a undefined global in this setup |
@kronikpillow should be fixed after the recent commit |
hi, sorry for the silence, are you still willing to work on this? |
@LostNeophyte yes on my spare time... but I was waiting on a review of some sort so I know if something needs changing in the existing PR. |
I'll review it today (it's 7 am here)
6 Dec 2022, 04:56 by ***@***.***:
…
@LostNeophyte <https://github.com/LostNeophyte>> yes on my spare time... but I was waiting on a review of some sort so I know if something needs changing in the existing PR.
—
Reply to this email directly, > view it on GitHub <#17 (comment)>> , or > unsubscribe <https://github.com/notifications/unsubscribe-auth/A2KZQTS2MIDAF5KMZRSPAY3WL22PRANCNFSM6AAAAAAQ4ZYU3M>> .
You are receiving this because you were mentioned.> Message ID: > <LunarVim/starter> .> lvim/pull/17/c1338704953> @> github> .> com>
|
- remove `on_init`, `on_attach`, `capabilities` since `lvim.lsp.manager` already resolves default values for them - remove redundant builtin config value
@LostNeophyte I have added the suggested changes, also let me know if you want to add/remove any plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks :)
@@ -2,8 +2,77 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move this file into .github/README.md
@@ -0,0 +1,5 @@ | |||
# Submission Guidelines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should also be fine to move this into .github/CONTRIBUTING.md
1
Footnotes
- [Keybinds](#additional-keybinds) | ||
</details> | ||
|
||
## Supported languages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Supported languages | |
## Available configurations |
> formatting, diagnostics, completions should work out of the box for the languages | ||
> below with the `LunarVim` configuration in this branch | ||
|
||
- C/C++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably link to the branch
## Requirements | ||
|
||
Most of the language servers installation should happen automatically, but there | ||
is a few that are manually configured and may requires manual installation. | ||
|
||
Install them with the command below | ||
|
||
``` | ||
:MasonInstall clangd rust_analyzer gopls | ||
``` | ||
|
||
Binaries needed for diagnostics and formatting requires manual installation. | ||
You need to install them using the builtin `mason.nvim` or with your favorite package | ||
manager. | ||
|
||
use the command below to install them with mason | ||
|
||
``` | ||
:MasonInstall eslint_d prettier yamllint taplo goimports golangci-lint shellcheck shfmt hadolint flake8 black | ||
``` | ||
|
||
### Additional keybinds | ||
|
||
> **Note** | ||
> Leader is mapped to <kbd>Space</kbd> | ||
|
||
| Mode | Key | Action | | ||
| ------ | ------------------------------------------- | --------------------------------------------- | | ||
| visual | <kbd>Leader</kbd>+<kbd>r</kbd>+<kbd>r</kbd> | Refactor selection | | ||
| normal | <kbd>Leader</kbd>+<kbd>P</kbd> | Project menu | | ||
| normal | <kbd>Leader</kbd>+<kbd>r</kbd>+<kbd>o</kbd> | Search and replace (open spectre panel) | | ||
| normal | <kbd>Leader</kbd>+<kbd>r</kbd>+<kbd>f</kbd> | Search and replace (search current file) | | ||
| normal | <kbd>Leader</kbd>+<kbd>r</kbd>+<kbd>c</kbd> | Search and replace (search word under cursor) | | ||
| normal | <kbd>Leader</kbd>+<kbd>t</kbd>+<kbd>w</kbc> | Workspace diagnostics | | ||
| normal | <kbd>Leader</kbd>+<kbd>t</kbd>+<kbd>d</kbc> | Document diagnostics | | ||
| normal | <kbd>Leader</kbd>+<kbd>t</kbd>+<kbd>t</kbc> | LSP Type definitions | | ||
| normal | <kbd>Leader</kbd>+<kbd>t</kbd>+<kbd>r</kbc> | LSP references | | ||
| normal | <kbd>Leader</kbd>+<kbd>t</kbd>+<kbd>q</kbc> | Quickfix | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please link to the docs site instead to avoid information decay
@@ -0,0 +1,251 @@ | |||
lvim.format_on_save = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this file as it overlaps with purpose with the branches and config.example.lua
, it would also be yet another piece of documentation that require maintenance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylo252 So no config.lua
in master
branch and have links in README.md
for branches with their respective lang/ide configuration... 😕 ( I think the original idea was to have examples configuration for few common languages and plugins etc.. )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, I'm talking about linking to this file instead: https://github.com/LunarVim/LunarVim/blob/d3ade21d85084634517848a7fd3582bbf2d6c278/utils/installer/config.example.lua
We should ideally have a single "common" example config.lua
, that's always kept up to date with any changes/recommendations. We can always update that file, if you have any concrete ideas, see LunarVim/LunarVim#3519.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closing in favor of #56 |
Tries to fix #1
features
vim.ui.select
andvim.ui.input
usingdressing.nvim
withtelescope
backend.refactoring.nvim
languages support added
Language servers for only
c/c++
,rust
andgo
is manually configured.additional plugins added