Files
neovim/runtime/doc
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
..
2018-10-29 09:55:07 +01:00
2020-12-01 00:57:52 +01:00
2021-03-03 18:19:01 -05:00
2021-02-25 13:50:31 +09:00
2020-03-02 12:59:35 +01:00
2018-10-29 09:32:29 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2019-11-17 19:06:59 -08:00
2019-08-02 16:20:23 +02:00
doc
2019-09-09 09:53:19 -07:00
2021-03-10 16:53:23 -05:00
2018-08-25 15:25:49 +02:00
2018-08-25 15:25:49 +02:00
2020-08-31 00:51:35 -07:00
2020-08-31 00:51:35 -07:00
2020-08-31 00:51:35 -07:00
2019-12-31 02:25:10 -08:00
2019-11-17 19:06:59 -08:00
2019-03-26 19:55:33 +01:00
2018-10-29 09:55:07 +01:00
doc
2018-11-05 22:45:48 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 09:55:07 +01:00
2015-08-15 15:25:30 -03:00
2018-10-29 09:55:07 +01:00
2020-08-31 00:51:35 -07:00
2018-10-30 00:02:22 +01:00
2019-03-26 19:55:33 +01:00
2021-01-04 20:10:34 +01:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2021-03-03 18:19:01 -05:00
2021-03-03 18:19:01 -05:00
2020-01-12 23:41:55 -08:00
2021-01-04 20:10:34 +01:00
2018-10-29 09:55:07 +01:00
2018-10-29 10:01:44 +01:00
2021-01-04 20:10:34 +01:00
2018-10-29 10:01:44 +01:00
2020-08-31 00:51:35 -07:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-07-29 20:50:07 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-08-02 16:20:22 +02:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-09-12 17:04:05 -07:00
2018-10-29 10:01:44 +01:00
2018-10-29 10:01:44 +01:00
2019-03-26 19:55:33 +01:00
2018-10-29 10:01:44 +01:00
2019-08-01 16:51:53 +02:00
2019-08-02 16:20:22 +02:00
2019-08-01 23:27:26 +02:00
2021-02-16 19:50:06 +01:00