change sumneko_lua to lua_ls per errors
This commit is contained in:
parent
cf2c700552
commit
23c1db7ebf
@ -3,8 +3,8 @@
|
|||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-night')
|
||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme tokyonight-moon')
|
||||||
|
|
||||||
local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
|
-- local ok, _ = pcall(vim.cmd, 'colorscheme nightfly')
|
||||||
-- local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
|
local ok, _ = pcall(vim.cmd, 'colorscheme ayu-dark')
|
||||||
|
|
||||||
if not ok then
|
if not ok then
|
||||||
vim.cmd 'colorscheme default' -- if the above fails, then use default
|
vim.cmd 'colorscheme default' -- if the above fails, then use default
|
||||||
|
|||||||
@ -40,7 +40,7 @@ end
|
|||||||
|
|
||||||
-- mason - package manager for lsp servers
|
-- mason - package manager for lsp servers
|
||||||
require('mason').setup()
|
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 {
|
require('mason-lspconfig').setup {
|
||||||
ensure_installed = servers,
|
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/?.lua')
|
||||||
table.insert(runtime_path, 'lua/?/init.lua')
|
table.insert(runtime_path, 'lua/?/init.lua')
|
||||||
|
|
||||||
require('lspconfig').sumneko_lua.setup {
|
require('lspconfig').lua_ls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user