This commit is contained in:
newbie 2024-02-01 12:14:27 +08:00
parent a077ec48c2
commit 08184ce63d

View File

@ -15,6 +15,7 @@ return {
require 'lspconfig'.yamlls.setup(require('lsp.yaml')) require 'lspconfig'.yamlls.setup(require('lsp.yaml'))
require 'lspconfig'.gopls.setup(require('lsp.go')) require 'lspconfig'.gopls.setup(require('lsp.go'))
require 'lspconfig'.jsonls.setup(require('lsp.json')) require 'lspconfig'.jsonls.setup(require('lsp.json'))
require 'lspconfig'.javals.setup()
G.map({ G.map({
@ -39,7 +40,15 @@ return {
"williamboman/mason.nvim", -- lsp 下载器 "williamboman/mason.nvim", -- lsp 下载器
}, },
config = function() config = function()
require "mason".setup {} require "mason".setup {
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
}
}
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { ensure_installed = {
"clangd", "clangd",