
* FEATURE: use none-ls instead of null-ls Fixes #1516 * fix(none-ls): automatically migrate null-ls to none-ls * feat(config): show warning if user config contains renamed references --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
41 lines
839 B
Lua
41 lines
839 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
if type(opts.ensure_installed) == "table" then
|
|
vim.list_extend(opts.ensure_installed, { "cmake" })
|
|
end
|
|
end,
|
|
},
|
|
{
|
|
"nvimtools/none-ls.nvim",
|
|
opts = function(_, opts)
|
|
local nls = require("null-ls")
|
|
opts.sources = opts.sources or {}
|
|
vim.list_extend(opts.sources, {
|
|
nls.builtins.diagnostics.cmake_lint,
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"mason.nvim",
|
|
opts = function(_, opts)
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
|
vim.list_extend(opts.ensure_installed, { "cmakelang" })
|
|
end,
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
neocmake = {},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"Civitasv/cmake-tools.nvim",
|
|
opts = {},
|
|
event = "BufRead",
|
|
},
|
|
}
|