change sumneko_lua to lua_ls per errors

This commit is contained in:
James Dixon 2023-05-02 02:46:07 -04:00
parent cf2c700552
commit 23c1db7ebf
2 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,8 @@
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
-- local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
-- local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
if not ok then
vim.cmd 'colorscheme default' -- if the above fails, then use default

View File

@ -40,7 +40,7 @@ end
-- mason - package manager for lsp servers
require('mason').setup()
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'sumneko_lua', 'gopls', 'bashls' }
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver', 'lua_ls', 'gopls', 'bashls' }
require('mason-lspconfig').setup {
ensure_installed = servers,
}
@ -67,7 +67,7 @@ local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, 'lua/?.lua')
table.insert(runtime_path, 'lua/?/init.lua')
require('lspconfig').sumneko_lua.setup {
require('lspconfig').lua_ls.setup {
on_attach = on_attach,
capabilities = capabilities,
settings = {