Skip to content

Commit 7735494

Browse files
committed
Comments to help my understanding of lspconfig
1 parent 832a277 commit 7735494

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lua/plugins/lsp.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ return { -- LSP Plugins
296296
-- by the server configuration above. Useful when disabling
297297
-- certain features of an LSP (for example, turning off formatting for ts_ls)
298298
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
299+
300+
-- At this point, server is an empty table for elixirls, and server_name becomes a dot method
301+
-- So for elixir, this is equivalent to
302+
--
303+
-- ```require('lspconfig').elixirls.setup({})```
304+
--
299305
require('lspconfig')[server_name].setup(server)
300306
end,
301307
},

0 commit comments

Comments
 (0)