Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2024
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. vim.lsp.start({
  2.     name = "lua-language-server",
  3.     cmd = { "lua-language-server" },
  4.     root_dir = vim.fs.dirname(vim.fs.find({ "init.lua" }, { upward = true })[1]),
  5.     settings = {
  6.         Lua = {
  7.             completion = {
  8.                 callSnippet = "Replace",
  9.             },
  10.             runtime = {
  11.                 version = "LuaJIT",
  12.                 path = vim.split(package.path, ";", {}),
  13.             },
  14.             diagnostics = {
  15.                 globals = { "vim" },
  16.             },
  17.             telemetry = {
  18.                 enable = false,
  19.             },
  20.         },
  21.         workspace = {
  22.             library = {
  23.                 [vim.fn.expand("$VIMRUNTIME/lua")] = true,
  24.                 [vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
  25.             },
  26.         },
  27.     },
  28. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement