Add: first import
This commit is contained in:
commit
82641f61be
23 changed files with 800 additions and 0 deletions
105
lua/plugins/ui.lua
Normal file
105
lua/plugins/ui.lua
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
return {
|
||||
{
|
||||
'AlexvZyl/nordic.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require('nordic').load()
|
||||
end
|
||||
},
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = "*",
|
||||
config = function()
|
||||
require("toggleterm").setup({
|
||||
open_mapping = [[<C-\>]], -- Par défaut, ouvre le terminal avec Ctrl+\
|
||||
direction = "horizontal", -- Terminal en bas (horizontal)
|
||||
size = 15, -- Hauteur du terminal
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons", },
|
||||
config = function()
|
||||
local navic = require("nvim-navic")
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
theme = "auto",
|
||||
section_separators = { "", "" },
|
||||
component_separators = { "|", "|" },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff" },
|
||||
lualine_c = {
|
||||
{
|
||||
"filename", -- Affiche le chemin du fichier
|
||||
path = 1, -- 0 = Nom du fichier, 1 = Relatif, 2 = Absolu
|
||||
symbols = {
|
||||
modified = " ●", -- Fichier modifié
|
||||
readonly = " 🔒", -- Lecture seule
|
||||
unnamed = " [No Name]",
|
||||
},
|
||||
},
|
||||
{
|
||||
function()
|
||||
return navic.is_available() and navic.get_location() or ""
|
||||
end,
|
||||
icon = " ➤ "
|
||||
},
|
||||
},
|
||||
lualine_x = { "encoding", "filetype" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"gorbit99/codewindow.nvim",
|
||||
config = function()
|
||||
local codewindow = require("codewindow")
|
||||
codewindow.setup({
|
||||
auto_enable = true,
|
||||
width = 10,
|
||||
minimap_width = 15,
|
||||
window_border = "none",
|
||||
use_lsp = true,
|
||||
use_treesitter = true,
|
||||
exclude_filetypes = { "markdown", "" },
|
||||
})
|
||||
|
||||
-- Raccourci pour activer/désactiver la minimap
|
||||
vim.keymap.set("n", "<leader>m", function()
|
||||
codewindow.toggle_minimap()
|
||||
end, { desc = "Basculer la minimap" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"SmiteshP/nvim-navic",
|
||||
dependencies = { "neovim/nvim-lspconfig" },
|
||||
config = function()
|
||||
require("nvim-navic").setup({
|
||||
highlight = true,
|
||||
separator = " > ",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "*",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
config = function()
|
||||
require("bufferline").setup({
|
||||
options = {
|
||||
mode = "buffers",
|
||||
separator_style = "slant",
|
||||
diagnostics = "nvim_lsp",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue