From e7fe2d4b7da682edbe335f0835aa52a2f92f161f Mon Sep 17 00:00:00 2001 From: lucy Date: Fri, 14 Aug 2026 20:50:50 +0200 Subject: [PATCH] add things --- nvim/.config/nvim/init.lua | 85 ++++++++++++++++++++------- nvim/.config/nvim/nvim-pack-lock.json | 20 +++++++ 2 files changed, 83 insertions(+), 22 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index df6cfd5..8cbf73c 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -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 = "", }, - - sections = { - lualine_a = { "mode" }, - lualine_c = { "diagnostics" }, - lualine_b = { "filename", { "filetype", icon_only = true } }, - lualine_x = { "lsp_status", }, - lualine_y = { "" }, - lualine_z = { "location" }, + 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', + }, + }, }, - 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", "", " LualineBuffersJump! " .. i .. "") + map("n", "", " BufferGoto " .. i .. "") end map("n", "", function() vim.lsp.buf.format() end) +map("n", "ff", " Telescope find_files") map("n", "t", " terminal ") map("t", "", "") map("n", "w", " bdelete! ") diff --git a/nvim/.config/nvim/nvim-pack-lock.json b/nvim/.config/nvim/nvim-pack-lock.json index f655194..e405ffd 100644 --- a/nvim/.config/nvim/nvim-pack-lock.json +++ b/nvim/.config/nvim/nvim-pack-lock.json @@ -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"