Changed the main theme

added some extension to telescope
This commit is contained in:
Steven Medeiros Melo
2025-02-22 23:25:53 -05:00
parent f4d64693b9
commit 9eae74aacc
12 changed files with 266 additions and 138 deletions

View File

@@ -0,0 +1,16 @@
require("stevenmm.variables")
return {
'nvim-zh/colorful-winsep.nvim',
config = function ()
local winsep = require("colorful-winsep")
local bg = require("vscode.colors").get_colors().vscBack
winsep.setup({
highlight = {
fg = "#A066E8",
bg = bg,
},
no_exec_files = EXCLUDED_FILETYPES_ARRAY,
symbols = { "", "", "", "", "", "" },
})
end
}

View File

@@ -1,5 +1,6 @@
function ColorMyPencils(color)
color = color or "rose-pine-moon"
-- color = color or "rose-pine-moon"
color = color or "vscode"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", {bg = "none" })
@@ -7,24 +8,29 @@ function ColorMyPencils(color)
end
return {
{
"rose-pine/neovim",
name = "rose-pine",
config = function()
require("rose-pine").setup({
variant = "moon",
{
-- "rose-pine/neovim",
"Mofiqul/vscode.nvim",
-- name = "rose-pine",
name = "vscode",
lazy = false,
prority = 1000,
config = function()
-- require("rose-pine").setup({
require("vscode").setup({
transparent = true,
italic_comments = true,
-- styles = {
-- bold = false,
-- italic = false,
-- transparency = true,
-- },
-- disable_background = true,
})
styles = {
bold = true,
italic = false,
transparency = true,
},
disable_background = true,
})
vim.cmd("colorscheme vscode")
vim.cmd("colorscheme rose-pine")
ColorMyPencils()
end
},
ColorMyPencils()
end
},
}

View File

@@ -0,0 +1,28 @@
return {
"allaman/emoji.nvim",
version = "1.0.0", -- optionally pin to a tag
ft = "markdown", -- adjust to your needs
dependencies = {
-- util for handling paths
"nvim-lua/plenary.nvim",
-- optional for nvim-cmp integration
"hrsh7th/nvim-cmp",
-- optional for telescope integration
"nvim-telescope/telescope.nvim",
-- optional for fzf-lua integration via vim.ui.select
"ibhagwan/fzf-lua",
},
-- opts = {
-- -- default is false, also needed for blink.cmp integration!
-- enable_cmp_integration = true,
-- -- optional if your plugin installation directory
-- -- is not vim.fn.stdpath("data") .. "/lazy/
-- plugin_path = vim.fn.expand("$HOME/plugins/"),
-- },
config = function()
require("emoji").setup()
-- optional for telescope integration
-- local ts = require('telescope').load_extension 'emoji'
-- vim.keymap.set('n', '<leader>se', ts.emoji, { desc = '[S]earch [E]moji' })
end,
}

View File

@@ -1,9 +1,20 @@
return {
"ThePrimeagen/harpoon",
branch = "harpoon2",
-- dependencies = {
-- "nvim-lua/plenary.nvim"
-- },
global_settings = {
}
},
-- config = function ()
-- local harpoon = require('harpoon')
-- harpoon:setup({})
--
-- -- vim.keymap.set("n", "<leader>a", function () harpoon:list():add() end)
--
-- end
}

View File

@@ -112,10 +112,10 @@ return {
-- virtual_text = false,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.INFO] = '󰋼',
[vim.diagnostic.severity.HINT] = '',
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.INFO] = '',
[vim.diagnostic.severity.HINT] = '󰌶',
}
},
update_in_insert = true,
@@ -129,8 +129,8 @@ return {
},
})
vim.o.updatetime = 250
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
-- vim.o.updatetime = 250
-- vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
end
}

View File

@@ -1,131 +1,154 @@
-- lua/plugins/lualine.lua
require("stevenmm.variables")
local nvimtree = {
filetypes = { "NvimTree" },
sections = {
lualine_c = { "buffers" },
lualine_c = { "" },
},
}
-- local excluded_filetypes_array = {
-- "lsp-installer",
-- "lspinfo",
-- "lazy",
-- "help",
-- "netrw",
-- "man",
-- "checkhealth",
-- }
return {
"nvim-lualine/lualine.nvim",
dependencies = {
-- "lua.stevenmm.variables",
"nvim-tree/nvim-web-devicons",
},
lazy = false,
priority = 999,
config = function()
local lualine = require('lualine')
lualine.setup({
options = {
theme = 'rose-pine',
globalstatus = true,
-- fmt = default,
-- fmt = string.upper,
-- disabled_filetypes = {
-- "NvimTree"
-- },
ignore_focus = {
options = {
theme = 'auto',
section_separators = { left = "", right = "" },
-- always_show_tabline = false,
-- ignore_focus = {},
-- icons_enabled = true,
-- refresh = {
-- statusline = 100,
-- tabline = 100,
-- winbar = 100,
-- },
disabled_filetypes = {
statusline = EXCLUDED_FILETYPES_ARRAY,
winbar = EXCLUDED_FILETYPES_ARRAY,
},
globalstatus = true,
},
refresh = {
statusline = 100,
tabline = 100,
winbar = 100,
},
},
sections = {
lualine_a = {
-- {
-- 'windows'
-- },
{
'diff',
colored = false,
diff_color = {
added = 'LuaLineDiffAdd',
modified = 'LuaLineDiffChange',
removed = 'LuaLineDiffDelete',
sections = {
lualine_a = {
-- {
-- 'buffers',
-- show_filename_only = true,
-- show_modified_status = false,
-- mode = 4,
-- filetype_names = {
-- NvimTree = 'NvimTree'
-- },
-- },
{
'mode',
-- fmt = function(str) return '[' .. str:sub(1,2) .. ']' end,
-- separator = "|"
},
},
-- {
-- 'buffers',
-- show_filename_only = true,
-- show_modified_status = false,
--
-- mode = 4,
--
-- filetype_names = {
-- NvimTree = 'NvimTree'
-- },
-- },
{
'mode',
-- fmt = function(str) return '[' .. str:sub(1,1) .. ']' end,
},
},
lualine_b = {
{ 'branch' }
},
lualine_c = {
{
'filetype',
icons_enabled = true,
icon_only = true,
icon = { align = 'center' },
separator = "",
},
{
'filename',
file_status = true,
newfile_status = false,
path = 0,
fmt = string.lower,
shorting_target = 40,
symbols = {
modified = '[+]',
readonly = '[-]',
unamed = '[No Name]',
newfile = '[New]',
lualine_b = {
{
'branch',
separator = ""
},
{
'diff',
},
}
},
lualine_x = {
{
require("lazy.status").updates,
cond = require("lazy.status").has_updates,
color = { fg = "#ff9e64" },
},
{
'diagnostics',
lualine_c = {
{
'filetype',
-- icons_enabled = true,
icon_only = false,
icon = { align = 'left' },
separator = "",
},
-- {
-- -- 'filetype',
-- 'filename',
-- -- icons_enabled = true,
-- -- file_status = false,
-- -- newfile_status = false,
-- -- path = 0,
-- -- fmt = string.lower,
-- -- shorting_target = 40,
--
-- symbols = {
-- modified = '[+]',
-- readonly = '[-]',
-- unamed = '[No Name]',
-- newfile = '[New]',
-- },
-- }
},
-- {
-- 'filetype',
-- colored = true,
-- icons_enabled = true,
-- icon_only = true,
-- icon = { align = 'center' }
-- }
},
lualine_y = {
{
'location',
lualine_x = {
{
require("lazy.status").updates,
cond = require("lazy.status").has_updates,
color = { fg = "#ff9e64" },
},
{
'diagnostics',
update_in_insert = true,
separator = "",
},
},
lualine_y = {
{
'location',
},
},
lualine_z = {
{
'datetime',
-- icons_enabled = true,
-- icon = { '' },
-- separator = "🌴",
style = '%H:%M:%S',
},
},
},
lualine_z = {
{
'datetime',
icons_enabled = true,
icon = { '' },
style = '%H:%M:%S',
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = {
{
"filetypes",
icon_only = true,
},
{
"filename",
path = 1,
-- fmt = format_name
},
},
lualine_x = {},
lualine_y = {},
lualine_z = {},
},
},
extensions = {
nvimtree
}
})
winbar = {
},
extensions = {
nvimtree
},
})
end,
}

View File

@@ -15,6 +15,7 @@ return {
--
-- })
telescope.load_extension('harpoon')
telescope.load_extension('emoji')
end
-- extensions = {
--

View File

@@ -0,0 +1,27 @@
return {
"fgheng/winbar.nvim",
config = function ()
require('winbar').setup({
enabled = true,
show_file_path = false,
show_symbols = true,
colors = {
path = '',
file_name = '#ffffff',
symbols = '',
},
icons = {
file_icon_default = '',
separator = '',
editor_state = '',
lock_icon = '',
},
-- separator = '',
exclude_filetype = {
'help',
'NvimTree'
}
})
end
}

View File

@@ -13,5 +13,6 @@ vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = "stevenmm.lazy",
change_detection = { notify = false }
change_detection = { notify = false },
-- "nvim-lua/plenary.nvim"
})

View File

@@ -7,3 +7,4 @@ keyset("n", "<leader>ma", ":Mason<CR>", { silent = true })
keyset("n", "<leader>na", ":NvimTreeToggle<CR>", { silent = true })
keyset("n", "<leader>fb", ":Telescope file_browser path=%:p:h<CR>", { noremap = true, silent = true })
keyset("n", "<leader>ha", ":Telescope harpoon marks<CR>", { noremap = true, silent = true })
keyset('n', '<leader>se', ":Telescope emoji<CR>", { desc = '[S]earch [E]moji' })

View File

@@ -0,0 +1,10 @@
EXCLUDED_FILETYPES_ARRAY = {
"lsp-installer",
"lspinfo",
"lazy",
"help",
"netrw",
"man",
"checkhealth",
"TelescopePrompt"
}