neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

lua_ls.lua (896B)


      1 return {
      2   runtime = {
      3     -- Tell the language server which version of Lua you're using (most
      4     -- likely LuaJIT in the case of Neovim)
      5     version = 'LuaJIT',
      6     -- Tell the language server how to find Lua modules same way as Neovim
      7     -- (see `:h lua-module-load`)
      8     path = {
      9       'lua/?.lua',
     10       'lua/?/init.lua',
     11     },
     12   },
     13   -- Make the server aware of Neovim runtime files
     14   workspace = {
     15     checkThirdParty = false,
     16     -- library = vim.tbl_filter(function(d)
     17     --   return not d:match(vim.fn.stdpath('config') .. '/?a?f?t?e?r?')
     18     -- end, vim.api.nvim_get_runtime_file('', true))
     19     library = {
     20       vim.env.VIMRUNTIME,
     21       -- Depending on the usage, you might want to add additional paths
     22       -- here.
     23       '${3rd}/luv/library',
     24       '${3rd}/busted/library'
     25     }
     26   },
     27   settings = {
     28     Lua = {
     29       telemetry = {
     30         enable = false,
     31       },
     32     },
     33   }
     34 }