nvim: make plenary use releases, change functions

This commit is contained in:
tea 2024-08-19 15:50:32 +02:00
parent ae6dca60d0
commit fa5429d829
No known key found for this signature in database

View File

@ -1,14 +1,11 @@
local has_api_level = require('my.functions').has_api_level
-- NOTE: next line is a variable, not a function
local nerdfont_installed = require('my.functions').nerdfont_installed()
return { return {
-- common dependencies -- common dependencies
{ 'https://github.com/nvim-lua/plenary.nvim', { 'https://github.com/nvim-lua/plenary.nvim',
lazy = true lazy = true,
version = '*',
}, },
{ 'https://github.com/kyazdani42/nvim-web-devicons', { 'https://github.com/kyazdani42/nvim-web-devicons',
enabled = nerdfont_installed enabled = require('my.functions').nerdfont_installed(),
}, },
-- basics -- basics
@ -23,10 +20,11 @@ return {
vim.api.nvim_set_hl(0, 'AmoraCommentBold', vim.api.nvim_set_hl(0, 'AmoraCommentBold',
{ fg = '#7C4180', ctermfg = 61, bold = true }) { fg = '#7C4180', ctermfg = 61, bold = true })
end, end,
priority = 1000, -- load before all other plugins
}, },
{ 'https://github.com/editorconfig/editorconfig-vim', { 'https://github.com/editorconfig/editorconfig-vim',
-- 0.9.0 has EditorConfig support included -- 0.9.0 has EditorConfig support included
enabled = not has_api_level(11) enabled = not require('my.functions').has_api_level(11)
}, },
{ 'https://github.com/ii14/autosplit.nvim', { 'https://github.com/ii14/autosplit.nvim',
init = function() init = function()