extra: nvim: disable typescript language server autoformatting
Rather use prettier instead. Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
5b81697d05
commit
30b0913a3a
|
@ -289,12 +289,20 @@ end
|
|||
|
||||
-- neovim/nvim-lspconfig
|
||||
local lspconfig = require('lspconfig')
|
||||
|
||||
lspconfig.typst_lsp.setup({
|
||||
settings = {
|
||||
exportPdf = 'onType',
|
||||
},
|
||||
})
|
||||
lspconfig.tsserver.setup({})
|
||||
|
||||
lspconfig.tsserver.setup({
|
||||
on_attach = function(client, bufnr)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
end,
|
||||
})
|
||||
|
||||
lspconfig.java_language_server.setup({
|
||||
cmd = { 'java-language-server' },
|
||||
-- see https://github.com/georgewfraser/java-language-server/issues/267#issuecomment-2002482054
|
||||
|
|
Loading…
Reference in a new issue