feat: Move personal plugins in separate dir
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
|
||||
return {
|
||||
{
|
||||
-- The improved vscode terminal for Neovim written in pure lua
|
||||
"CRAG666/betterTerm.nvim",
|
||||
opts = {
|
||||
prefix = "betterTerm ",
|
||||
position = "bot",
|
||||
size = 25,
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
mode = { 'n', 't' },
|
||||
'<leader>t&',
|
||||
function()
|
||||
require('betterTerm').open(1)
|
||||
end,
|
||||
desc = 'Open betterTerm 1',
|
||||
},
|
||||
{
|
||||
mode = { 'n', 't' },
|
||||
'<leader>té',
|
||||
function()
|
||||
require('betterTerm').open(2)
|
||||
end,
|
||||
desc = 'Open betterTerm 2',
|
||||
},
|
||||
{
|
||||
'<leader>tS',
|
||||
function()
|
||||
require('betterTerm').select()
|
||||
end,
|
||||
desc = 'Select a betterTerm terminal',
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
-- INFO:
|
||||
-- Bllets.vim is a Vim plugin for automated bullet lists.
|
||||
-- https://github.com/bullets-vim/bullets.vim
|
||||
-- https://github.com/bullets-vim/bullets.vim/wiki/Configuration
|
||||
-- https://github.com/bullets-vim/bullets.vim/wiki/Usage
|
||||
|
||||
return {
|
||||
"bullets-vim/bullets.vim",
|
||||
ft = { "markdown", "yaml", "text" },
|
||||
init = function()
|
||||
vim.g.bullets_enabled_file_types = { "markdown", "yaml", "text" }
|
||||
vim.g.bullets_renumber_on_change = 1
|
||||
end,
|
||||
}
|
||||
|
||||
-- TODO: Voir aussi l'adaptation lua de ce plugin : https://github.com/kaymmm/bullets.nvim
|
||||
@@ -0,0 +1,63 @@
|
||||
return {
|
||||
{
|
||||
-- Incline is a plugin for creating lightweight floating statuslines.
|
||||
-- It works great with Neovim's global statusline (:set laststatus=3)
|
||||
'b0o/incline.nvim',
|
||||
config = function()
|
||||
local devicons = require 'nvim-web-devicons'
|
||||
require('incline').setup {
|
||||
render = function(props)
|
||||
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ':t')
|
||||
if filename == '' then
|
||||
filename = '[No Name]'
|
||||
end
|
||||
local ft_icon, ft_color = devicons.get_icon_color(filename)
|
||||
|
||||
local function get_git_diff()
|
||||
local icons = { removed = '', changed = '', added = '' }
|
||||
local signs = vim.b[props.buf].gitsigns_status_dict
|
||||
local labels = {}
|
||||
if signs == nil then
|
||||
return labels
|
||||
end
|
||||
for name, icon in pairs(icons) do
|
||||
if tonumber(signs[name]) and signs[name] > 0 then
|
||||
table.insert(labels, { icon .. signs[name] .. ' ', group = 'Diff' .. name })
|
||||
end
|
||||
end
|
||||
if #labels > 0 then
|
||||
table.insert(labels, { '┊ ' })
|
||||
end
|
||||
return labels
|
||||
end
|
||||
|
||||
local function get_diagnostic_label()
|
||||
local icons = { error = '', warn = '', info = '', hint = '' }
|
||||
local label = {}
|
||||
|
||||
for severity, icon in pairs(icons) do
|
||||
local n = #vim.diagnostic.get(props.buf, { severity = vim.diagnostic.severity[string.upper(severity)] })
|
||||
if n > 0 then
|
||||
table.insert(label, { icon .. n .. ' ', group = 'DiagnosticSign' .. severity })
|
||||
end
|
||||
end
|
||||
if #label > 0 then
|
||||
table.insert(label, { '┊ ' })
|
||||
end
|
||||
return label
|
||||
end
|
||||
|
||||
return {
|
||||
{ get_diagnostic_label() },
|
||||
{ get_git_diff() },
|
||||
{ (ft_icon or '') .. ' ', guifg = ft_color, guibg = 'none' },
|
||||
{ filename .. ' ', gui = vim.bo[props.buf].modified and 'bold,italic' or 'bold' },
|
||||
{ '┊ ' .. vim.api.nvim_win_get_number(props.win), group = 'DevIconWindows' },
|
||||
}
|
||||
end,
|
||||
}
|
||||
end,
|
||||
-- Optional: Lazy load Incline
|
||||
event = 'VeryLazy',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user