starter/lua/plugins/lsp.lua

52 lines
1.4 KiB
Lua
Raw Normal View History

return {
2023-01-07 17:59:10 +08:00
-- uncomment and add lsp servers with their config to servers below
{
"neovim/nvim-lspconfig",
2023-01-08 22:07:07 +08:00
-- ---@class PluginLspOpts
-- opts = {
-- ---@type lspconfig.options
-- servers = {
-- jsonls = {},
-- sumneko_lua = {
-- settings = {
-- Lua = {
-- workspace = {
-- checkThirdParty = false,
-- },
-- completion = {
-- callSnippet = "Replace",
-- },
2023-01-07 17:59:10 +08:00
-- },
-- },
-- },
-- },
2023-01-08 22:07:07 +08:00
-- -- you can do any additional lsp server setup here
-- -- return true if you don't want this server to be setup with lspconfig
-- ---@type table<string, fun(server:string, opts:_.lspconfig.options):boolean?>
-- setup = {
-- -- example to setup with typescript.nvim
-- -- tsserver = function(_, opts)
-- -- require("typescript").setup({ server = opts })
-- -- return true
-- -- end,
-- -- Specify * to use this function as a fallback for any server
-- -- ["*"] = function(server, opts) end,
-- },
2023-01-07 17:59:10 +08:00
-- },
},
2023-01-07 17:59:10 +08:00
-- uncomment and add tools to ensure_installed below
{
"williamboman/mason.nvim",
2023-01-08 22:07:07 +08:00
-- opts = {
-- ensure_installed = {
-- "stylua",
-- "shellcheck",
-- "shfmt",
-- "flake8",
-- },
2023-01-07 17:59:10 +08:00
-- },
},
}