feat(extras): Add extra for vim language

This commit is contained in:
roc 2024-06-05 16:51:30 +08:00
parent c1f5fcf9c7
commit a71d45f5ec

View file

@ -0,0 +1,30 @@
return {
recommended = function()
return LazyVim.extras.wants({
ft = { "vim" },
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "vim", "vimdoc" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "vim-language-server" })
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
vimls = {},
},
},
},
}