Mercurial > dotfiles
comparison .chezmoitemplates/init.lua @ 757:b9d3378f6c9e
fix: rename to lua_ls
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 25 Feb 2023 09:36:39 +0100 |
parents | 04683b4f8df3 |
children | b64652ec91cb |
comparison
equal
deleted
inserted
replaced
756:a1a7841c55d2 | 757:b9d3378f6c9e |
---|---|
1227 nmap('ga', vim.lsp.buf.code_action, opts) | 1227 nmap('ga', vim.lsp.buf.code_action, opts) |
1228 | 1228 |
1229 vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) | 1229 vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) |
1230 vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) | 1230 vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) |
1231 | 1231 |
1232 if client.name == 'sumneko_lua' then | 1232 if client.name == 'lua_ls' then |
1233 client.server_capabilities.documentFormattingProvider = false | 1233 client.server_capabilities.documentFormattingProvider = false |
1234 client.server_capabilities.documentRangeFormattingProvider = false | 1234 client.server_capabilities.documentRangeFormattingProvider = false |
1235 end | 1235 end |
1236 | 1236 |
1237 if client.supports_method 'textDocument/rangeFormatting' then | 1237 if client.supports_method 'textDocument/rangeFormatting' then |
1324 options.plugins = true | 1324 options.plugins = true |
1325 end | 1325 end |
1326 end, | 1326 end, |
1327 } | 1327 } |
1328 | 1328 |
1329 lsp.sumneko_lua.setup { | 1329 lsp.lua_ls.setup { |
1330 lspconfig = { | 1330 lspconfig = { |
1331 cmd = { 'lua-language-server' }, | 1331 cmd = { 'lua-language-server' }, |
1332 on_attach = on_attach, | 1332 on_attach = on_attach, |
1333 capabilities = capabilities, | 1333 capabilities = capabilities, |
1334 settings = { | 1334 settings = { |