chore: changed to cmp, cause better
This commit is contained in:
parent
c4cb9eb777
commit
f36f6c0193
5 changed files with 249 additions and 75 deletions
|
@ -37,26 +37,51 @@ local on_attach = function(client, bufnr)
|
|||
})
|
||||
end
|
||||
|
||||
local lsp = require "lspconfig"
|
||||
local coq = require "coq"
|
||||
|
||||
lsp['hls'].setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
lsp['rust_analyzer'].setup{}
|
||||
|
||||
lsp.rust_analyzer.setup(
|
||||
coq.lsp_ensure_capabilities{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
-- Server-specific settings...
|
||||
settings = {
|
||||
["rust-analyzer"] = {}
|
||||
}
|
||||
}
|
||||
)
|
||||
require('lspconfig')['texlab'].setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
--local lsp = require "lspconfig"
|
||||
--local coq = require "coq"
|
||||
--
|
||||
--lsp['hls'].setup{
|
||||
-- on_attach = on_attach,
|
||||
-- flags = lsp_flags,
|
||||
--}
|
||||
--
|
||||
--lsp['rust_analyzer'].setup{}
|
||||
--
|
||||
--lsp.rust_analyzer.setup(
|
||||
-- coq.lsp_ensure_capabilities{
|
||||
-- on_attach = on_attach,
|
||||
-- flags = lsp_flags,
|
||||
-- -- Server-specific settings...
|
||||
-- settings = {
|
||||
-- ["rust-analyzer"] = {}
|
||||
-- }
|
||||
-- }
|
||||
--)
|
||||
--
|
||||
--lsp['texlab'].setup{
|
||||
-- on_attach = on_attach,
|
||||
-- flags = lsp_flags,
|
||||
--}
|
||||
--lsp['sumneko_lua'].setup{
|
||||
--
|
||||
-- settings = {
|
||||
-- Lua = {
|
||||
-- runtime = {
|
||||
-- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
-- version = 'LuaJIT',
|
||||
-- },
|
||||
-- diagnostics = {
|
||||
-- -- Get the language server to recognize the `vim` global
|
||||
-- globals = {'vim'},
|
||||
-- },
|
||||
-- workspace = {
|
||||
-- -- Make the server aware of Neovim runtime files
|
||||
-- library = vim.api.nvim_get_runtime_file("", true),
|
||||
-- },
|
||||
-- -- Do not send telemetry data containing a randomized but unique identifier
|
||||
-- telemetry = {
|
||||
-- enable = false,
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
--}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue