lsp: extract common config
- Id
- 70c900cbcd715088c6241cc13ad928bc3af6c9ff
- Author
- Caio
- Commit time
- 2023-06-29T16:59:21+02:00
Modified lua/config/lsp.lua
})
end
+config.util.default_config = vim.tbl_deep_extend('force', config.util.default_config, {
+ on_attach = on_attach,
+ flags = {
+ debounce_text_changes = 150,
+ }
+})
+
config.rust_analyzer.setup({
- on_attach = on_attach,
- flags = {
- debounce_text_changes = 150,
- },
cmd = {"rustup", "run", "stable", "rust-analyzer"},
settings = {
["rust-analyzer"] = {
})
config.gopls.setup({
- on_attach = on_attach,
- flags = {
- debounce_text_changes = 150,
- },
cmd = {
'gopls',
'-remote=auto',