add things

This commit is contained in:
lucy 2026-08-14 20:50:50 +02:00
commit e7fe2d4b7d
2 changed files with 83 additions and 22 deletions

View file

@ -24,9 +24,23 @@ vim.pack.add({
'https://github.com/nvim-tree/nvim-web-devicons',
"https://github.com/nvim-lualine/lualine.nvim",
"https://github.com/tinted-theming/tinted-nvim.git",
"https://github.com/nvim-telescope/telescope.nvim.git",
"https://github.com/nvim-lua/plenary.nvim.git",
"https://github.com/romgrk/barbar.nvim.git",
"https://github.com/sschleemilch/slimline.nvim",
"https://github.com/mason-org/mason.nvim",
"https://github.com/neovim/nvim-lspconfig",
"https://github.com/vyfor/cord.nvim",
})
require('mason').setup()
require('telescope').setup()
require('barbar').setup({
animation = false,
tabpages = true,
icons = {
buffer_index = true,
},
})
require('tinted-nvim').setup({
default_scheme = "base16-catppuccin-mocha",
selector = { enabled = true, mode = "cmd" },
@ -50,36 +64,63 @@ require("cord").setup({
},
editor = { tooltip = "ur gay x3" },
})
require("lualine").setup({
options = {
theme = "tinted",
section_separators = { left = "", right = "" },
component_separators = { left = "", right = "" },
require('slimline').setup({
spaces = {
components = " ",
left = "",
right = "",
},
components = {
left = {
'mode',
'path',
'diagnostics',
},
right = {
'filetype_lsp',
'progress',
},
},
sep = {
hide = {
first = true, -- hides the first separator of the line
last = true, -- hides the last separator of the line
},
left = " ",
right = " ",
},
style = 'fg',
bold = false,
hl = {
primary = 'StatusLine',
secondary = 'StatusLineNC',
base = 'StatusLine',
base_inactive = 'StatusLineNC',
},
configs = {
mode = {
verbose = true,
},
path = {
},
progress = {
follow = 'mode',
},
filetype_lsp = {
hl = {
primary = 'String',
secondary = 'Function',
},
},
sections = {
lualine_a = { "mode" },
lualine_c = { "diagnostics" },
lualine_b = { "filename", { "filetype", icon_only = true } },
lualine_x = { "lsp_status", },
lualine_y = { "" },
lualine_z = { "location" },
},
tabline = {
lualine_a = { { 'buffers', mode = 2, show_modified_status = true, } },
lualine_b = { 'branch' },
lualine_c = {},
lualine_x = {},
lualine_y = {},
lualine_z = { 'tabs' }
}
})
local map = vim.keymap.set
for i = 1, 10 do
map("n", "<A-" .. i .. ">", "<cmd> LualineBuffersJump! " .. i .. "<cr>")
map("n", "<A-" .. i .. ">", "<cmd> BufferGoto " .. i .. "<cr>")
end
map("n", "<C-f>", function() vim.lsp.buf.format() end)
map("n", "<leader>ff", "<cmd> Telescope find_files<cr>")
map("n", "<leader>t", "<cmd> terminal <cr>")
map("t", "<esc>", "<c-\\><c-n>")
map("n", "<leader>w", "<cmd> bdelete! <cr>")

View file

@ -1,5 +1,9 @@
{
"plugins": {
"barbar.nvim": {
"rev": "337ecfadb8bf005050990bf2f624dc4fc828dabd",
"src": "https://github.com/romgrk/barbar.nvim.git"
},
"blink.cmp": {
"rev": "0f54bd78892f587db4dcf100a23eaddfc2a9df7d",
"src": "https://github.com/saghen/blink.cmp.git"
@ -20,6 +24,10 @@
"rev": "221ce6b2d999187044529f49da6554a92f740a96",
"src": "https://github.com/nvim-lualine/lualine.nvim"
},
"mason.nvim": {
"rev": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d",
"src": "https://github.com/mason-org/mason.nvim"
},
"nvim-lspconfig": {
"rev": "e7ca2c95ba316a8b846d3f3546d407908c5c4ccb",
"src": "https://github.com/neovim/nvim-lspconfig"
@ -32,6 +40,18 @@
"rev": "0ca28b61a04fe7426cefbdd52c2647ef0e335b5f",
"src": "https://github.com/nvim-tree/nvim-web-devicons"
},
"plenary.nvim": {
"rev": "74b06c6c75e4eeb3108ec01852001636d85a932b",
"src": "https://github.com/nvim-lua/plenary.nvim.git"
},
"slimline.nvim": {
"rev": "6c91c731863f47636c6ae0f00774ea6c2c90cb4b",
"src": "https://github.com/sschleemilch/slimline.nvim"
},
"telescope.nvim": {
"rev": "427b576c16792edad01a92b89721d923c19ad60f",
"src": "https://github.com/nvim-telescope/telescope.nvim.git"
},
"tinted-nvim": {
"rev": "a229fe0efadb4d9bfa92cad16175bb4e93fa70d4",
"src": "https://github.com/tinted-theming/tinted-nvim.git"