From a2a00851c91c470f9832c245a19a2d82f8907543 Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 15 Jun 2026 10:44:33 +0200 Subject: [PATCH] restructure and add bind to close buffers --- init.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 92b28e5..c234bc7 100644 --- a/init.lua +++ b/init.lua @@ -14,14 +14,6 @@ vim.lsp.enable("lua_ls") vim.lsp.enable("qmlls") vim.lsp.enable("clangd") vim.lsp.enable("lua-language-server") -local map = vim.keymap.set -for i = 1, 10 do - map("n", "", " LualineBuffersJump! " .. i .. "") -end -map("n", "", function() vim.lsp.buf.format() end) -map("n", "t", " terminal ") -map("t", "", "") -map("i", "", "") -- add plugins vim.pack.add({ "https://github.com/nvim-treesitter/nvim-treesitter", @@ -65,3 +57,12 @@ require("lualine").setup({ lualine_z = { 'tabs' } } }) +local map = vim.keymap.set +for i = 1, 10 do + map("n", "", " LualineBuffersJump! " .. i .. "") +end +map("n", "", function() vim.lsp.buf.format() end) +map("n", "t", " terminal ") +map("t", "", "") +map("i", "", "") +map("n", "w", " bdelete! ")