mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-03-18 08:09:40 +00:00
Linted all files
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
local status_ok, lsp_installer = pcall(require, 'nvim-lsp-installer')
|
||||
local status_ok, lsp_installer = pcall(require, "nvim-lsp-installer")
|
||||
if not status_ok then
|
||||
return
|
||||
return
|
||||
end
|
||||
|
||||
local lspconfig = require('lspconfig')
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
local servers = { 'jsonls', 'sumneko_lua', 'pyright' }
|
||||
local servers = { "jsonls", "sumneko_lua", "pyright" }
|
||||
|
||||
lsp_installer.setup({
|
||||
ensure_installed = servers,
|
||||
ensure_installed = servers,
|
||||
})
|
||||
|
||||
for _, server in pairs(servers) do
|
||||
local opts = {
|
||||
on_attach = require('user.lsp.handlers').on_attach,
|
||||
capabilities = require('user.lsp.handlers').capabilities,
|
||||
}
|
||||
local has_custom_opts, server_custom_opts = pcall(require, 'user.lsp.settings.' .. server)
|
||||
if has_custom_opts then
|
||||
opts = vim.tbl_deep_extend('force', opts, server_custom_opts)
|
||||
end
|
||||
lspconfig[server].setup(opts)
|
||||
local opts = {
|
||||
on_attach = require("user.lsp.handlers").on_attach,
|
||||
capabilities = require("user.lsp.handlers").capabilities,
|
||||
}
|
||||
local has_custom_opts, server_custom_opts = pcall(require, "user.lsp.settings." .. server)
|
||||
if has_custom_opts then
|
||||
opts = vim.tbl_deep_extend("force", opts, server_custom_opts)
|
||||
end
|
||||
lspconfig[server].setup(opts)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user