remove bar and add bufferline
This commit is contained in:
parent
f15b50ce58
commit
39038b6132
13
lua/custom/plugins/bufferline.lua
Normal file
13
lua/custom/plugins/bufferline.lua
Normal file
@ -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
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
local keymap = vim.keymap
|
local keymap = vim.keymap
|
||||||
|
|
||||||
keymap.set("n", "<leader>pv", vim.cmd.Ex, { desc = "Start netrw" })
|
-- keymap.set("n", "<leader>pv", vim.cmd.Ex, { desc = "Start netrw" })
|
||||||
|
|
||||||
keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||||
keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
@ -20,6 +20,10 @@ keymap.set("i", "<C-c>", "<Esc>")
|
|||||||
keymap.set("n", "Q", "<nop>")
|
keymap.set("n", "Q", "<nop>")
|
||||||
keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
|
keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
|
||||||
keymap.set("n", "<leader>f", vim.lsp.buf.format, { desc = "format current buffer" })
|
keymap.set("n", "<leader>f", vim.lsp.buf.format, { desc = "format current buffer" })
|
||||||
|
keymap.set("n",
|
||||||
|
"<leader>pv",
|
||||||
|
":Telescope file_browser path=%:p:h select_buffer=true<CR>",
|
||||||
|
{ noremap = true, desc = "open file browser" })
|
||||||
|
|
||||||
keymap.set("n", "<A-k>", "<cmd>cnext<CR>zz")
|
keymap.set("n", "<A-k>", "<cmd>cnext<CR>zz")
|
||||||
keymap.set("n", "<A-j>", "<cmd>cprev<CR>zz")
|
keymap.set("n", "<A-j>", "<cmd>cprev<CR>zz")
|
||||||
|
@ -28,18 +28,28 @@ vim.opt.isfname:append("@-@")
|
|||||||
|
|
||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
|
|
||||||
|
-- colorcolumn
|
||||||
vim.opt.colorcolumn = "80"
|
vim.opt.colorcolumn = "80"
|
||||||
vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
||||||
local autocmd = vim.api.nvim_create_autocmd
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, })
|
autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, })
|
||||||
autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "80" 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" },
|
autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" },
|
||||||
{
|
{
|
||||||
pattern = { "*.neorg", "*.md" },
|
pattern = { "*.norg", "*.md" },
|
||||||
callback = function()
|
callback = function()
|
||||||
require("cmp").setup.buffer({ enabled = false })
|
require("cmp").setup.buffer({ enabled = false })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
vim.opt.conceallevel = 2
|
||||||
|
vim.opt.concealcursor = "n"
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user