53 lines
1.5 KiB
Lua
53 lines
1.5 KiB
Lua
return {
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = {
|
|
"stevearc/conform.nvim",
|
|
"williamboman/mason.nvim",
|
|
"williamboman/mason-lspconfig.nvim",
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-buffer",
|
|
"hrsh7th/cmp-path",
|
|
"hrsh7th/cmp-cmdline",
|
|
"hrsh7th/nvim-cmp",
|
|
"L3MON4D3/LuaSnip",
|
|
"saadparwaiz1/cmp_luasnip",
|
|
"j-hui/fidget.nvim",
|
|
},
|
|
|
|
config = function()
|
|
require("conform").setup({
|
|
formatters_by_ft = {
|
|
}
|
|
})
|
|
local cmp = require('cmp')
|
|
local cmp_lsp = require("cmp_nvim_lsp")
|
|
local capabilities = vim.tbl_deep_extend(
|
|
"force",
|
|
{},
|
|
vim.lsp.protocol.make_client_capabilities(),
|
|
cmp_lsp.default_capabilities())
|
|
|
|
require("fidget").setup({})
|
|
require("mason").setup()
|
|
-- require("mason-lspconfig").setup({
|
|
-- handlers = {
|
|
-- function(server_name) -- default handler (optional)
|
|
-- require("lspconfig")[server_name].setup {
|
|
-- capabilities = capabilities
|
|
-- }
|
|
-- end,
|
|
|
|
vim.diagnostic.config({
|
|
-- update_in_insert = true,
|
|
float = {
|
|
focusable = false,
|
|
style = "minimal",
|
|
border = "rounded",
|
|
source = "always",
|
|
header = "",
|
|
prefix = "",
|
|
},
|
|
})
|
|
end
|
|
}
|