Still no ultisnips in cmp
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
Details
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
Details
This commit is contained in:
parent
859311d0ee
commit
a1cffcf7e9
|
@ -11,7 +11,7 @@ cmp.setup({
|
||||||
-- configuration
|
-- configuration
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
-- vim.fn["UltiSnips#Anon"](args.body)
|
vim.fn["UltiSnips#Anon"](args.body)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ cmp.setup({
|
||||||
|
|
||||||
-- installed sources for code suggestion
|
-- installed sources for code suggestion
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
-- { name = "ultisnips", keyword_length = 1 },
|
{ name = "ultisnips", keyword_length = 1 },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
{ name = "nvim_lsp", keyword_length = 2 },
|
{ name = "nvim_lsp", keyword_length = 2 },
|
||||||
{ name = "nvim_lsp_signature_help" },
|
{ name = "nvim_lsp_signature_help" },
|
||||||
|
@ -67,6 +67,7 @@ cmp.setup({
|
||||||
fields = { "menu", "abbr", "kind" },
|
fields = { "menu", "abbr", "kind" },
|
||||||
format = function(entry, item)
|
format = function(entry, item)
|
||||||
local menu_icon = {
|
local menu_icon = {
|
||||||
|
ultisnips = ">",
|
||||||
nvim_lsp = "λ",
|
nvim_lsp = "λ",
|
||||||
path = "",
|
path = "",
|
||||||
calc = "Σ",
|
calc = "Σ",
|
||||||
|
|
|
@ -72,15 +72,6 @@ require("mason-lspconfig").setup_handlers({
|
||||||
function(clangd)
|
function(clangd)
|
||||||
require("lspconfig")[clangd].setup({})
|
require("lspconfig")[clangd].setup({})
|
||||||
end,
|
end,
|
||||||
["als"] = function()
|
|
||||||
require("lspconfig").als.setup({
|
|
||||||
settings = {
|
|
||||||
ada = {
|
|
||||||
projectFile = "default.gpr",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
require("lspconfig").verible.setup({
|
require("lspconfig").verible.setup({
|
||||||
|
@ -111,21 +102,21 @@ local linters = {
|
||||||
cpp = { "clang" },
|
cpp = { "clang" },
|
||||||
c = { "clang" },
|
c = { "clang" },
|
||||||
markdown = { "languagetool" },
|
markdown = { "languagetool" },
|
||||||
latex = { "languagetool" },
|
latex = { "proselint" },
|
||||||
tex = { "languagetool" },
|
tex = { "proselint" },
|
||||||
plaintex = { "languagetool" },
|
plaintex = { "proselint" },
|
||||||
ada = { "gnat" },
|
ada = { "gnat", "gcc", "adals", "cspell" },
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.g.ale_linters = linters
|
vim.g.ale_linters = linters
|
||||||
vim.g.ale_fix_on_save = 0
|
vim.g.ale_fix_on_save = 1
|
||||||
vim.g.ale_ada_gpr_project_file = "default.gpr"
|
-- vim.g.ale_ada_gpr_project_file = "default.gpr"
|
||||||
vim.g.ale_fixers = {
|
vim.g.ale_fixers = {
|
||||||
ada = { "gcc", "gnat" },
|
ada = { "gnatpp" },
|
||||||
asm = { "gcc" },
|
asm = { "gcc" },
|
||||||
bash = { "bashate" },
|
bash = { "bashate" },
|
||||||
c = { "astyle" },
|
c = { "astyle" },
|
||||||
latex = { "texlab" },
|
latex = { "texlab", "textlint" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
markdown = { "prettier", "pandoc" },
|
markdown = { "prettier", "pandoc" },
|
||||||
python = { "yapf" },
|
python = { "yapf" },
|
||||||
|
@ -133,3 +124,13 @@ vim.g.ale_fixers = {
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
||||||
vim.keymap.set("n", "<leader>ld", ":ALEDetail<CR>")
|
vim.keymap.set("n", "<leader>ld", ":ALEDetail<CR>")
|
||||||
|
|
||||||
|
-- Ada language server
|
||||||
|
require("lspconfig").als.setup({
|
||||||
|
-- settings = {
|
||||||
|
-- ada = {
|
||||||
|
-- projectFile = "project.gpr";
|
||||||
|
-- scenarioVariables = { ... };
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
})
|
||||||
|
|
|
@ -66,4 +66,6 @@ return {
|
||||||
"jaredgorski/spacecamp",
|
"jaredgorski/spacecamp",
|
||||||
"voldikss/vim-floaterm",
|
"voldikss/vim-floaterm",
|
||||||
"dense-analysis/ale",
|
"dense-analysis/ale",
|
||||||
|
{ "TamaMcGlinn/nvim-lspconfig-ada" },
|
||||||
|
"krischik/vim-ada",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue