local lsp = require('lsp-zero').preset({}) local function allow_format(servers) return function(client) return vim.tbl_contains(servers, client.name) end end -- TODO: add bindings to work when no lsp available, to allow normal functionality lsp.on_attach(function(client, bufnr) -- see :help lsp-zero-keybindings -- to learn the available actions lsp.default_keymaps({buffer = bufnr}) local opts = {buffer = bufnr} end) lsp.setup()