From 0d1631ae7c8f2b32769cf7661655a8106ef094d6 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 2 Oct 2022 09:52:40 -0700 Subject: [PATCH] add lua --- plugins.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/plugins.vim b/plugins.vim index b0a5a57..48f4db0 100644 --- a/plugins.vim +++ b/plugins.vim @@ -53,6 +53,29 @@ lua << EOF }) end + nvim_lsp.sumneko_lua.setup { + 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, + }, + }, + }, + } + -- nvim-cmp setup local cmp = require('cmp') cmp.setup {