feat(lsp): clean up commands and formatting
This commit is contained in:
parent
40eef214f3
commit
b86e01bd1c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function M.on_attach(client, bufnr)
|
|||
-- Enable completion triggered by <c-x><c-o>
|
||||
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
|
||||
if client.server_capabilities.documentFormattingProvider then
|
||||
if client.supports_method('textDocument/formatting') then
|
||||
-- set up :LspFormat for clients that are capable
|
||||
vim.cmd(string.format("command! LspFormat lua require('cosmic.lsp.utils').format(%s)", bufnr))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue