From 840e07c7fc742415796027e32df19f315ddcf912 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Tue, 20 Jul 2021 23:34:44 +0200 Subject: [Feature] Make common_on_attach configurable (#1024) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 999810a6..9af73015 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,16 @@ O.treesitter.ensure_installed = "all" O.treesitter.ignore_install = {"haskell"} O.treesitter.highlight.enabled = true +-- you can set a custom on_attach function that will be used for all the language servers +-- See +-- O.lsp.on_attach_callback = function(client, bufnr) +-- local function buf_set_option(...) +-- vim.api.nvim_buf_set_option(bufnr, ...) +-- end +-- --Enable completion triggered by +-- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") +-- end + -- lua O.lang.lua.autoformat = false O.lang.lua.formatter = 'lua-format' -- cgit v1.2.3