From 7d94ba5b298199e2cb7844ba10b14977662a21fc Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 15 Aug 2026 20:59:46 +0200 Subject: [PATCH] use wsl nvim config --- nvim/.config/nvim/init.lua | 88 ++++++++++++++++++++------- nvim/.config/nvim/nvim-pack-lock.json | 60 ++++++++++++++++++ 2 files changed, 126 insertions(+), 22 deletions(-) create mode 100644 nvim/.config/nvim/nvim-pack-lock.json diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 3b65a5b..8cbf73c 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -1,3 +1,4 @@ +vim.g.mapleader = " " vim.opt.relativenumber = true vim.lsp.inlay_hint.enable = true vim.opt.tabstop = 8 @@ -23,10 +24,25 @@ 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" }, ui = { transparent = true, @@ -48,35 +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 new file mode 100644 index 0000000..e405ffd --- /dev/null +++ b/nvim/.config/nvim/nvim-pack-lock.json @@ -0,0 +1,60 @@ +{ + "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" + }, + "blink.indent": { + "rev": "8b69b9262891fe81fe728fe6a52fa2a84dd5d5e0", + "src": "https://github.com/saghen/blink.indent" + }, + "blink.lib": { + "rev": "5876dd95deeb70aadbe9f1c0b7117a135061cdac", + "src": "https://github.com/saghen/blink.lib" + }, + "cord.nvim": { + "rev": "8f081613c1314a0d6f38839c2788216621efb4d9", + "src": "https://github.com/vyfor/cord.nvim" + }, + "lualine.nvim": { + "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" + }, + "nvim-treesitter": { + "rev": "7248feaca45e4d944591497964bc19afa89ad1c6", + "src": "https://github.com/nvim-treesitter/nvim-treesitter" + }, + "nvim-web-devicons": { + "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" + } + } +}