Files
neovim/runtime
TJ DeVries 564dd7d8db lsp: get_language_id (#14092)
* Allow specifying a languageId for a lsp

For some languages the filetype might not match the languageId the
language server accepts. In these cases the config for the language
server can contain a function which gets the current buffer and filetype
and returns a languageId. When it isn't provided the filetype is used
instead.

Example:
```lua
require'lspconfig'.sourcekit.setup{
    get_language_id = function(bufnr, ft)
        return 'swift'
    end;
}
```

Closes #13093

* lsp: Change to get_language_id

Co-authored-by: Jan Dammshäuser <mail@jandamm.de>
2021-03-10 16:53:23 -05:00
..
2021-03-10 16:53:23 -05:00
2021-03-03 18:19:01 -05:00
2021-03-10 16:53:23 -05:00
2017-11-07 01:16:42 +01:00
2014-12-19 15:28:49 -05:00
2020-10-11 21:18:28 +02:00
2018-01-15 23:58:52 +01:00
2020-08-15 10:57:17 -04:00
2019-11-27 22:47:25 -08:00
2019-07-29 20:50:07 +02:00
2019-01-04 02:17:23 +01:00
2021-03-03 18:19:01 -05:00
2019-07-29 20:50:07 +02:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00