From 39038b613279b2d5eae17f03583a8ceff9bf04b8 Mon Sep 17 00:00:00 2001 From: Lucas Barbieri Date: Sun, 14 Jan 2024 18:48:01 -0300 Subject: [PATCH] remove bar and add bufferline --- lua/custom/plugins/bufferline.lua | 13 +++++++++++++ lua/jabuxas/remap.lua | 6 +++++- lua/jabuxas/set.lua | 12 +++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 lua/custom/plugins/bufferline.lua diff --git a/lua/custom/plugins/bufferline.lua b/lua/custom/plugins/bufferline.lua new file mode 100644 index 0000000..807d9cc --- /dev/null +++ b/lua/custom/plugins/bufferline.lua @@ -0,0 +1,13 @@ +return { + 'akinsho/bufferline.nvim', + version = "*", + dependencies = 'nvim-tree/nvim-web-devicons', + config = function() + require("bufferline").setup({ + highlights = require("darkrose.integrations.bufferline").generate(), + options = { + show_buffer_icons = false, + } + }) + end +} diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index ae1c34e..2aabcbf 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -1,6 +1,6 @@ local keymap = vim.keymap -keymap.set("n", "pv", vim.cmd.Ex, { desc = "Start netrw" }) +-- keymap.set("n", "pv", vim.cmd.Ex, { desc = "Start netrw" }) keymap.set("v", "J", ":m '>+1gv=gv") keymap.set("v", "K", ":m '<-2gv=gv") @@ -20,6 +20,10 @@ keymap.set("i", "", "") keymap.set("n", "Q", "") keymap.set("n", "", "silent !tmux neww tmux-sessionizer") keymap.set("n", "f", vim.lsp.buf.format, { desc = "format current buffer" }) +keymap.set("n", + "pv", + ":Telescope file_browser path=%:p:h select_buffer=true", + { noremap = true, desc = "open file browser" }) keymap.set("n", "", "cnextzz") keymap.set("n", "", "cprevzz") diff --git a/lua/jabuxas/set.lua b/lua/jabuxas/set.lua index 7a8fefb..96bbd05 100644 --- a/lua/jabuxas/set.lua +++ b/lua/jabuxas/set.lua @@ -28,18 +28,28 @@ vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 +-- colorcolumn vim.opt.colorcolumn = "80" vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]] local autocmd = vim.api.nvim_create_autocmd autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, }) autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "80" end, }) + +-- disable bar any% +vim.opt.laststatus = 0 +vim.o.noshowcmd = true +vim.o.noruler = true +vim.o.noshowmode = true + autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" }, { - pattern = { "*.neorg", "*.md" }, + pattern = { "*.norg", "*.md" }, callback = function() require("cmp").setup.buffer({ enabled = false }) end }) +vim.opt.conceallevel = 2 +vim.opt.concealcursor = "n" vim.g.mapleader = " "