More LSPs! formatted some files.

This commit is contained in:
2022-10-12 18:07:15 -07:00
parent ec3acd5976
commit dc67e0a5dd
5 changed files with 57 additions and 16 deletions
+36 -3
View File
@@ -37,8 +37,41 @@ end
local lsp_flags = {
debounce_text_changes = 150, --wtf is this
}
require('lspconfig')['zls'].setup {
local lspconfig = require('lspconfig');
lspconfig.zls.setup {
on_attach = on_attach,
flags = lsp_flags
flags = lsp_flags,
}
lspconfig.gopls.setup{
on_attach = on_attach,
flags = lsp_flags,
}
lspconfig.clangd.setup{
on_attach = on_attach,
flags = lsp_flags,
}
-- honestly don't need this, telemetry is a big yikes.
lspconfig.sumneko_lua.setup{
on_attach = on_attach,
flags = lsp_flags,
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {'vim'},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
},
},
},
}
--TODO: other languages I care about.