Skip to content

Commit

Permalink
fix: rename sumneko_lua -> lua_ls.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Feb 20, 2023
1 parent ba2fc2c commit 5fef1e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .config/nvim/lua/fky/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ require("mason").setup {
},
}
require("mason-lspconfig").setup {
ensure_installed = { "rust_analyzer@nightly", "sumneko_lua" },
ensure_installed = { "rust_analyzer@nightly", "lua_ls" },
}

local lspconfig = require('lspconfig')
Expand Down Expand Up @@ -261,7 +261,7 @@ require("mason-lspconfig").setup_handlers({
}
rt.setup(rustopts)
end,
["sumneko_lua"] = function()
["lua_ls"] = function()
local lua_opts = vim.tbl_deep_extend(
"keep", {
settings = {
Expand All @@ -274,7 +274,7 @@ require("mason-lspconfig").setup_handlers({
}, setup_opts
)

lspconfig.sumneko_lua.setup(lua_opts)
lspconfig.lua_ls.setup(lua_opts)
end,
["clangd"] = function()
setup_opts.capabilities.offsetEncoding = { 'utf-16' }
Expand Down

0 comments on commit 5fef1e2

Please sign in to comment.