More LSPs! formatted some files.
This commit is contained in:
+36
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user