You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a custom rule-based setup which picks the correct LSP settings based on the project. It is similar to how neodev detects Neovim plugin projects, but also for Love2D and Luarocks projects. Your plugin does too much for my needs, I only want to get the Neovim settings and take over from there instead of having everything set up magically.
Describe the solution you'd like
An API which only returns the LSP server settings but does not perform any side effects. Something I could use like this:
localneodev=require'neodev'locallspconfig=require'lspconfig'lspconfig.lua_ls.setup {
settings=neodev.lsp_settings(), -- This is the new function
}
The lsp_settings function could take a table with personal override settings as argument and merge them with neodev's settings. I don't know if this is feasible though. If not, then keep it as dumb as possible and let the user perform any table merging.
Describe alternatives you've considered
N/A
Additional context
You might be wondering why I need neodev if I already have my own settings. My own settings are only concerned with setting runtime.path and workspace.library, but that's the easy part since it can be automated at startup. There are also function signatures and type definitions for Neovim's own API. I would have to maintain all that by hand (or use some script to scrape that information), and I would rather piggy-back on someone else's work instead.
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I have a custom rule-based setup which picks the correct LSP settings based on the project. It is similar to how neodev detects Neovim plugin projects, but also for Love2D and Luarocks projects. Your plugin does too much for my needs, I only want to get the Neovim settings and take over from there instead of having everything set up magically.
Describe the solution you'd like
An API which only returns the LSP server settings but does not perform any side effects. Something I could use like this:
The
lsp_settings
function could take a table with personal override settings as argument and merge them with neodev's settings. I don't know if this is feasible though. If not, then keep it as dumb as possible and let the user perform any table merging.Describe alternatives you've considered
N/A
Additional context
You might be wondering why I need neodev if I already have my own settings. My own settings are only concerned with setting
runtime.path
andworkspace.library
, but that's the easy part since it can be automated at startup. There are also function signatures and type definitions for Neovim's own API. I would have to maintain all that by hand (or use some script to scrape that information), and I would rather piggy-back on someone else's work instead.The text was updated successfully, but these errors were encountered: