Still no ultisnips in cmp

This commit is contained in:
2024-09-09 08:21:29 +02:00
parent 859311d0ee
commit a1cffcf7e9
3 changed files with 23 additions and 19 deletions

View File

@@ -72,15 +72,6 @@ require("mason-lspconfig").setup_handlers({
function(clangd)
require("lspconfig")[clangd].setup({})
end,
["als"] = function()
require("lspconfig").als.setup({
settings = {
ada = {
projectFile = "default.gpr",
},
},
})
end,
})
require("lspconfig").verible.setup({
@@ -111,21 +102,21 @@ local linters = {
cpp = { "clang" },
c = { "clang" },
markdown = { "languagetool" },
latex = { "languagetool" },
tex = { "languagetool" },
plaintex = { "languagetool" },
ada = { "gnat" },
latex = { "proselint" },
tex = { "proselint" },
plaintex = { "proselint" },
ada = { "gnat", "gcc", "adals", "cspell" },
}
vim.g.ale_linters = linters
vim.g.ale_fix_on_save = 0
vim.g.ale_ada_gpr_project_file = "default.gpr"
vim.g.ale_fix_on_save = 1
-- vim.g.ale_ada_gpr_project_file = "default.gpr"
vim.g.ale_fixers = {
ada = { "gcc", "gnat" },
ada = { "gnatpp" },
asm = { "gcc" },
bash = { "bashate" },
c = { "astyle" },
latex = { "texlab" },
latex = { "texlab", "textlint" },
lua = { "stylua" },
markdown = { "prettier", "pandoc" },
python = { "yapf" },
@@ -133,3 +124,13 @@ vim.g.ale_fixers = {
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
vim.keymap.set("n", "<leader>ld", ":ALEDetail<CR>")
-- Ada language server
require("lspconfig").als.setup({
-- settings = {
-- ada = {
-- projectFile = "project.gpr";
-- scenarioVariables = { ... };
-- }
-- }
})