Update lsp config
This commit is contained in:
parent
1a5459aaa8
commit
5c942edffe
|
@ -88,7 +88,6 @@ return {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require('blink.cmp').setup(opts)
|
require('blink.cmp').setup(opts)
|
||||||
local lspconfig = require('lspconfig')
|
|
||||||
local filetypes = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex",
|
local filetypes = { "bibtex", "gitcommit", "markdown", "org", "tex", "restructuredtext", "rsweave", "latex",
|
||||||
"quarto", "rmd", "context", "html", "xhtml", "typst", "mail" }
|
"quarto", "rmd", "context", "html", "xhtml", "typst", "mail" }
|
||||||
local lsp_opts = {
|
local lsp_opts = {
|
||||||
|
@ -196,7 +195,8 @@ return {
|
||||||
}
|
}
|
||||||
for server, config in pairs(lsp_opts.servers) do
|
for server, config in pairs(lsp_opts.servers) do
|
||||||
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
|
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
|
||||||
lspconfig[server].setup(config)
|
vim.lsp.enable(server)
|
||||||
|
vim.lsp.config(server, config)
|
||||||
end
|
end
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = false
|
virtual_text = false
|
||||||
|
|
Loading…
Reference in New Issue