mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 17:26:27 +00:00
Fix supported feature check
This commit is contained in:
parent
44b7b000df
commit
6d2acddc56
@ -53,14 +53,13 @@ local function default_attach(client, bufnr)
|
||||
vim.api.nvim_buf_set_option(bufnr, ...)
|
||||
end
|
||||
|
||||
-- Set built in features to use lsp functions
|
||||
buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
|
||||
|
||||
if resolved_capabilities.goto_definition then
|
||||
buf_set_option(bufnr, "tagfunc", "v:lua.vim.lsp.tagfunc")
|
||||
if client.resolved_capabilities.goto_definition then
|
||||
buf_set_option("tagfunc", "v:lua.vim.lsp.tagfunc")
|
||||
end
|
||||
|
||||
if resolved_capabilities.document_formatting then
|
||||
buf_set_option(bufnr, "formatexpr", "v:lua.vim.lsp.formatexpr()")
|
||||
if client.resolved_capabilities.document_formatting then
|
||||
buf_set_option("formatexpr", "v:lua.vim.lsp.formatexpr()")
|
||||
end
|
||||
|
||||
-- Mappings
|
||||
|
Loading…
Reference in New Issue
Block a user