changes to ui + telescope + remove bufferline

This commit is contained in:
Hunter 2025-04-05 21:38:12 -04:00
parent 4adcf3d2dd
commit 9a6707d21f
7 changed files with 85 additions and 37 deletions

View file

@ -25,6 +25,8 @@ m.init = function()
vim.o.clipboard = "unnamed"
vim.o.background = "dark"
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
end
return m

View file

@ -26,12 +26,10 @@ return {
handlers = {
function(server_name)
vim.opt.signcolumn = "yes"
local navic = require "nvim-navic"
local on_attach = function(client, bufnr)
require("lsp_signature").on_attach({}, bufnr)
if client.server_capabilities.documentSymbolProvider then
navic.attach(client, bufnr)
end
end
@ -145,12 +143,9 @@ return {
},
config = function()
vim.opt.signcolumn = "yes"
local navic = require "nvim-navic"
local on_attach = function(client, bufnr)
if client.server_capabilities.documentSymbolProvider then
navic.attach(client, bufnr)
end
-- TODO: Impl
end
vim.filetype.add {
@ -184,12 +179,6 @@ return {
require("mason").setup {}
end,
},
{
"SmiteshP/nvim-navic",
config = function()
-- vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
end,
},
{
"j-hui/fidget.nvim",
opts = {},

View file

@ -1,13 +1,2 @@
return {
{
"stevearc/oil.nvim",
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
},
}
-- Used to use oil.nvim for stuff, didn't need it...
return {}

16
lua/plugins/session.lua Normal file
View file

@ -0,0 +1,16 @@
return {
{
{
'rmagatti/auto-session',
lazy = false,
---enables autocomplete for opts
---@module "auto-session"
---@type AutoSession.Config
opts = {
suppressed_dirs = { '~/', '~/Downloads', '/tmp' },
-- log_level = 'debug',
}
}
}
}

View file

@ -72,7 +72,7 @@ return {
desc = "Telescope: Find files",
},
{
"<leader>fg",
"<leader>b",
function()
local builtin = require "telescope.builtin"
builtin.buffers()
@ -94,10 +94,15 @@ return {
-- Search with telescope and open with trouble
local telescope = require "telescope"
telescope.setup {
pickers = {
buffers = {
initial_mode = "normal"
}
},
defaults = {
mappings = {
i = { ["<c-t>"] = open_with_trouble },
n = { ["<c-t>"] = open_with_trouble },
i = { ["<c-a>"] = open_with_trouble, ["<c-d>"] = require('telescope.actions').delete_buffer },
n = { ["<c-a>"] = open_with_trouble, ["<c-d>"] = require('telescope.actions').delete_buffer },
},
},
}

View file

@ -6,15 +6,64 @@ return {
enabled = true,
config = function()
require("modus-themes").setup({
line_nr_column_background = false
line_nr_column_background = false,
variant = "tinted",
---@param highlight Highlights
---@param color ColorScheme
on_highlights = function(highlight, color)
highlight.WinSeparator = { fg = color.bg_main, bg = color.bg_main }
end,
})
vim.cmd [[ colorscheme modus_vivendi ]]
end
},
{
'nanozuki/tabby.nvim',
event = 'VimEnter', -- if you want lazy load, see below
dependencies = 'nvim-tree/nvim-web-devicons',
keys = {
{
"<leader>tg",
":$tabnew<CR>",
desc = "Create a new tab"
},
{
"<leader>=",
":tabclose<CR>",
desc = "Close the current tab"
},
{
"<leader>[",
":tabprev<CR>",
desc = "Goto the previous tab"
},
{
"<leader>]",
":tabnext<CR>",
desc = "Goto the next tab"
},
{
"<leader>-",
":BufDel<CR>",
desc = "Close the current buffer"
}
},
config = function()
require("tabby").setup({
preset = "active_wins_at_tail",
option = {
nerdfont = false,
}
})
vim.cmd [[ colorscheme modus ]]
end
},
{
"akinsho/bufferline.nvim",
version = "*",
lazy = false,
enabled = false,
dependencies = { "nvim-tree/nvim-web-devicons", "datsfilipe/vesper.nvim" },
keys = {
{
@ -71,6 +120,7 @@ return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
enabled = false,
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended