Skip to content

Commit

Permalink
fix: s/sumneko_lua/lua_ls/ (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
polyzen committed Feb 12, 2023
1 parent c0026e2 commit 307d0fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Plug 'folke/neodev.nvim'

## 馃殌 Setup

**neodev** will **ONLY** change the **sumneko_lua** settings for:
**neodev** will **ONLY** change the **lua_ls** settings for:

- your Neovim config directory
- your Neovim runtime directory
Expand All @@ -94,7 +94,7 @@ require("neodev").setup({
local lspconfig = require('lspconfig')

-- example to setup sumneko and enable call snippets
lspconfig.sumneko_lua.setup({
lspconfig.lua_ls.setup({
settings = {
Lua = {
completion = {
Expand Down
4 changes: 2 additions & 2 deletions doc/lua-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ CONFIGURATION *lua-dev-configuration*

SETUP *lua-dev-setup*

**lua-dev** will **ONLY** change the **sumneko_lua** settings for:
**lua-dev** will **ONLY** change the **lua_ls** settings for:


- your Neovim config directory
Expand All @@ -116,7 +116,7 @@ For any other `root_dir`, **lua-dev** will **NOT** change any settings.
local lspconfig = require('lspconfig')
-- example to setup sumneko and enable call snippets
lspconfig.sumneko_lua.setup({
lspconfig.lua_ls.setup({
settings = {
Lua = {
completion = {
Expand Down
4 changes: 2 additions & 2 deletions doc/neodev.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ CONFIGURATION *neodev.nvim-configuration*

SETUP *neodev.nvim-setup*

**neodev** will **ONLY** change the **sumneko_lua** settings for:
**neodev** will **ONLY** change the **lua_ls** settings for:


- your Neovim config directory
Expand Down Expand Up @@ -123,7 +123,7 @@ For any other `root_dir`, **neodev** will **NOT** change any settings.
local lspconfig = require('lspconfig')

-- example to setup sumneko and enable call snippets
lspconfig.sumneko_lua.setup({
lspconfig.lua_ls.setup({
settings = {
Lua = {
completion = {
Expand Down
4 changes: 2 additions & 2 deletions doc/neodev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ CONFIGURATION *neodev-configuration*

SETUP *neodev-setup*

**neodev** will **ONLY** change the **sumneko_lua** settings for:
**neodev** will **ONLY** change the **lua_ls** settings for:


- your Neovim config directory
Expand Down Expand Up @@ -120,7 +120,7 @@ For any other `root_dir`, **neodev** will **NOT** change any settings.
local lspconfig = require('lspconfig')
-- example to setup sumneko and enable call snippets
lspconfig.sumneko_lua.setup({
lspconfig.lua_ls.setup({
settings = {
Lua = {
completion = {
Expand Down
2 changes: 1 addition & 1 deletion lua/neodev/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function M.setup()
if opts.setup_jsonls and config.name == "jsonls" then
M.setup_jsonls(config)
end
if config.name == "sumneko_lua" then
if config.name == "lua_ls" then
config.on_new_config = hook(config.on_new_config, M.on_new_config)
-- config.before_init = hook(config.before_init, M.before_init)
end
Expand Down
6 changes: 3 additions & 3 deletions lua/neodev/sumneko.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function M.library(opts)
return ret
end

---@param settings? lspconfig.settings.sumneko_lua
---@param settings? lspconfig.settings.lua_ls
function M.path(settings)
if config.options.pathStrict then
return { "?.lua", "?/init.lua" }
Expand All @@ -80,11 +80,11 @@ function M.path(settings)
end

---@param opts? LuaDevOptions
---@param settings? lspconfig.settings.sumneko_lua
---@param settings? lspconfig.settings.lua_ls
function M.setup(opts, settings)
opts = config.merge(opts)
return {
---@type lspconfig.settings.sumneko_lua
---@type lspconfig.settings.lua_ls
settings = {
Lua = {
runtime = {
Expand Down

0 comments on commit 307d0fb

Please sign in to comment.