Closed Konfekt closed 2 weeks ago
In https://github.com/saccarosium/yegappan-lsp-settings/commit/2c71d1f7b9f86fbb401195feb8fc27b82c6de06e I've made it so this plugin will set the appropriate options and mapping depending on the server capabilities. So I think this is what you were looking for.
I wouldn't go filetype specific. That is the job for the user config or a language specific plugin. This plugin tries to be a thin abstraction for setting lsps. I like the approach of Neovim's lspconfig on having separate functions to setup a particular lsp server and pick and choose what server you want.
As one can end up on a computer without the LS, an initial check for each file type
This is more appropriate to have directly in yegappan/lsp
as an option, let's say silentMissingLspError
Maybe this repo could make the whole setup more filetype specific and add sensible default mappings for these?
A list of LSs is given in the wiki and the setup usually only prescribes a name, filetype and exe path, sporadically with some args such as
--stdio
, sayAs one can end up on a computer without the LS, an initial check for each file type
can avoid setting options and mappings such as, let's take
ftplugin/c.vim
,in this case.