do I look like I want to write a commit message for my nvim config?
This commit is contained in:
parent
33b35f16c1
commit
869859a2ce
6 changed files with 27 additions and 53 deletions
|
|
@ -25,5 +25,12 @@ auto('LspAttach', {
|
|||
if client:supports_method('textDocument/linkedEditingRange') then
|
||||
vim.lsp.linked_editing_range.enable(true, { client_id = client.id })
|
||||
end
|
||||
|
||||
-- enable type formatting which allows lsps to modify text while you're
|
||||
-- typing for example if you insert {} in a string in python basedpyright
|
||||
-- will change the string to a format string
|
||||
if client:supports_method('textDocument/onTypeFormatting') then
|
||||
vim.lsp.on_type_formatting.enable(true, { client_id = client.id })
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue