Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vim.lsp.start({
- name = "lua-language-server",
- cmd = { "lua-language-server" },
- root_dir = vim.fs.dirname(vim.fs.find({ "init.lua" }, { upward = true })[1]),
- settings = {
- Lua = {
- completion = {
- callSnippet = "Replace",
- },
- runtime = {
- version = "LuaJIT",
- path = vim.split(package.path, ";", {}),
- },
- diagnostics = {
- globals = { "vim" },
- },
- telemetry = {
- enable = false,
- },
- },
- workspace = {
- library = {
- [vim.fn.expand("$VIMRUNTIME/lua")] = true,
- [vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
- },
- },
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement