1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

some nvim touching

This commit is contained in:
Henrik Hautakoski 2024-04-03 21:02:20 +02:00
parent 6dd8f632ad
commit f910f44191
29 changed files with 467 additions and 233 deletions

View file

@ -28,7 +28,7 @@ return {
maximum_padding = 2,
minimum_padding = 1,
sidebar_filetypes = {
['neo-tree'] = {event = 'BufWipeout'},
--['neo-tree'] = {event = 'BufWipeout'},
}
},
}

View file

@ -1,12 +0,0 @@
return {
"utilyre/barbecue.nvim",
name = "barbecue",
version = "*",
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons",
},
opts = {
theme = "catppuccin",
}
}

View file

@ -0,0 +1,6 @@
return {
'akinsho/bufferline.nvim',
version = "*",
dependencies = 'nvim-tree/nvim-web-devicons',
opts = require('config.plugins.bufferline')
}

View file

@ -0,0 +1,33 @@
return {
"folke/edgy.nvim",
event = "VeryLazy",
keys = {
{ "<leader>ue", function() require("edgy").toggle() end, desc = "Edgy Toggle" },
-- stylua: ignore
{ "<leader>uE", function() require("edgy").select() end, desc = "Edgy Select Window" },
},
opts = {
left = {
{
title = "Neo-Tree",
ft = "neo-tree",
filter = function(buf)
return vim.b[buf].neo_tree_source == "filesystem"
end,
size = { height = 0.5 },
},
{
title = "Test",
ft = "neotest-summary"
},
"neo-tree",
},
options = {
left = { size = 40 }
},
animate = {
enabled = false,
},
exit_when_last = false
}
}

View file

@ -12,6 +12,7 @@ return {
theme = "catppuccin-mocha",
component_separators = '',
globalstatus = true,
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {
'dashboard',
@ -22,6 +23,17 @@ return {
sections = {
lualine_a = { "mode" },
lualine_b = { "branch" },
lualine_c = {
{
"diagnostics",
symbols = {
error = icons.diagnostics.error .. ' ',
warn = icons.diagnostics.warn .. ' ',
info = icons.diagnostics.info .. ' ',
hint = icons.diagnostics.hint .. ' ',
},
}
},
lualine_x = {
{
require("lazy.status").updates,
@ -36,15 +48,7 @@ return {
-- removed = icons.diff.removed .. ' '
-- }
-- },
{
"diagnostics",
symbols = {
error = icons.diagnostics.error .. ' ',
warn = icons.diagnostics.warn .. ' ',
info = icons.diagnostics.info .. ' ',
hint = icons.diagnostics.hint .. ' ',
},
},
'filename'
},
lualine_y = {
'encoding',

View file

@ -1,5 +1,3 @@
local icons = require('config.icons')
return {
'nvim-neo-tree/neo-tree.nvim',
cmd = 'Neotree',
@ -11,54 +9,5 @@ return {
"nvim-tree/nvim-web-devicons",
"nvim-lua/plenary.nvim",
},
opts = {
close_if_last_window = true,
hide_root_node = true,
default_component_configs = {
indent = {
indent_size = 2,
padding = 1,
-- indent guides
with_markers = true,
indent_marker = "",
last_indent_marker = "",
},
icon = {
folder_open = icons.folder.open,
folder_close = icons.folder.close,
folder_empty = icons.folder.empty,
},
name = {
use_git_status_colors = false,
},
git_status = {
symbols = icons.gitsigns
},
},
event_handlers = {
{
event = "neo_tree_buffer_enter",
handler = function()
if vim.bo.filetype == "neo-tree" then
vim.cmd("setlocal statuscolumn=")
end
end,
}
},
filesystem = {
filtered_items = {
visible = true, -- when true, they will just be displayed differently than normal items
hide_dotfiles = true,
hide_gitignored = true,
hide_hidden = true, -- only works on Windows for hidden files/directories
hide_by_name = {
"node_modules",
"vendor",
},
},
follow_current_file = {
enable = true
},
},
}
opts = require('config.plugins.neo-tree')
}

View file

@ -1,16 +1,33 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
},
opts = {
cmdline = {
enabled = true,
view = "cmdline"
},
presets = {
bottom_search = true,
command_palette = true
command_palette = false
},
commands = {
history = {
view = "cmdline_output",
}
},
views = {
mini = {
position = {
row = -2,
},
border = {
style = 'solid',
padding = { 0, 1 },
}
}
}
},
dependencies = {
"MunifTanjim/nui.nvim",
}
}

View file

@ -5,19 +5,11 @@ return {
vim.o.timeout = true
vim.o.timeoutlen = 300
end,
opts = {
defaults = {
mode = { "n", "v" },
["<leader>r"] = { name = "+rename" },
["<leader>b"] = { name = "+buffers" },
["<leader>f"] = { name = "+files" },
["<leader>d"] = { name = "+diagnostics" }
}
},
opts = require('config.plugins.which-key'),
config = function(_, opts)
local wk = require("which-key")
wk.setup(opts)
wk.register(opts.defaults)
wk.register(opts.defaults or {})
end
}