mrflos-nixos-config-fork/dotfiles/nvim/lua/plugins/mrflos.lua

128 lines
2.6 KiB
Lua
Raw Normal View History

2024-04-13 16:58:22 +00:00
function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
2023-12-21 13:02:24 +00:00
return {
-- theme Rosé Pine
2024-04-13 16:58:22 +00:00
{
"rose-pine/neovim",
name = "rose-pine",
config = function()
require("rose-pine").setup({
disable_background = true,
styles = {
italic = false,
},
})
vim.cmd("colorscheme rose-pine")
ColorMyPencils()
end,
},
2023-12-21 13:02:24 +00:00
-- Configure LazyVim to load theme
{
"LazyVim/LazyVim",
opts = {
colorscheme = "rose-pine",
},
},
2023-12-29 19:43:20 +00:00
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
"css",
"dockerfile",
"go",
"html",
"javascript",
"json",
"lua",
"make",
"markdown",
"markdown_inline",
"nix",
"php",
"python",
"query",
"regex",
"rust",
"toml",
"tsx",
"typescript",
"twig",
"vim",
"vue",
"yaml",
},
},
},
-- Neotree plugin
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
close_if_last_window = true,
event_handlers = {
{
event = "file_opened",
handler = function()
vim.cmd([[Neotree close]])
end,
},
},
filesystem = {
filtered_items = {
visible = true,
},
},
window = {
position = "float",
},
},
},
2024-05-13 12:16:15 +00:00
{
"neovim/nvim-lspconfig",
opts = {
intelephense = {
environment = {
includePaths = {
"/home/mrflos/Developpements/yeswiki",
},
},
},
},
},
2024-04-24 07:49:52 +00:00
{
"nvim-telescope/telescope.nvim",
opts = {
defaults = {
layout_strategy = "center",
layout_config = {
prompt_position = "top",
preview_cutoff = 5, -- Preview should always show (unless previewer = false)
2024-04-24 07:49:52 +00:00
width = function(_, max_columns, _)
return math.min(max_columns, 120)
2024-04-24 07:49:52 +00:00
end,
height = function(_, _, max_lines)
return math.min(max_lines, 15)
end,
},
sorting_strategy = "ascending",
border = true,
borderchars = {
prompt = { "", "", " ", "", "", "", "", "" },
results = { "", "", "", "", "", "", "", "" },
preview = { "", "", "", "", "", "", "", "" },
},
},
},
},
2023-12-21 13:02:24 +00:00
}