diff options
| author | William Boman <william@redwill.se> | 2022-03-09 23:00:01 +0100 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-03-09 23:00:01 +0100 |
| commit | 1135fde6870004356cb6b39edc74f0f33a0bc506 (patch) | |
| tree | 744b43677febdce26764d008944bf4c69157a9e9 /tests/minimal_debug_init.lua | |
| parent | run autogen_metadata.lua (diff) | |
| download | mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar.gz mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar.bz2 mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar.lz mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar.xz mason-1135fde6870004356cb6b39edc74f0f33a0bc506.tar.zst mason-1135fde6870004356cb6b39edc74f0f33a0bc506.zip | |
tests/minimal_debug_init.lua: set omnifunc and customize completeopt
Diffstat (limited to 'tests/minimal_debug_init.lua')
| -rw-r--r-- | tests/minimal_debug_init.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/minimal_debug_init.lua b/tests/minimal_debug_init.lua index 31992fbf..cd42ed24 100644 --- a/tests/minimal_debug_init.lua +++ b/tests/minimal_debug_init.lua @@ -6,7 +6,8 @@ local function join_paths(...) return result end -vim.cmd [[set runtimepath=$VIMRUNTIME]] +vim.opt.runtimepath = vim.env.VIMRUNTIME +vim.opt.completeopt = "menu" local temp_dir = vim.loop.os_getenv "TEMP" or "/tmp" @@ -36,12 +37,18 @@ function _G.load_config() -- ================================================== local lsp_installer = require "nvim-lsp-installer" + local function on_attach(client, bufnr) + vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc") + end + require("nvim-lsp-installer").settings { log = vim.log.levels.DEBUG, } lsp_installer.on_server_ready(function(server) - server:setup {} + server:setup { + on_attach = on_attach, + } end) -- ================================================== end |
