hide tab line if < 2 tabs open

This commit is contained in:
Niktia Bykov
2024-01-04 22:08:46 +05:00
parent 8c427d9bb7
commit 75727d6866
3 changed files with 17 additions and 13 deletions

View File

@ -2,8 +2,12 @@ require("user.plugins")
require("user.themes.kanagawa") require("user.themes.kanagawa")
require("user.bufferline")
require("user.options") require("user.options")
require("user.keymaps") require("user.keymaps")
require("user.cmp") require("user.cmp")
require("user.lsp") require("user.lsp")
require("user.treesitter") require("user.treesitter")
@ -13,7 +17,6 @@ require("user.telescope")
require("user.lsp_format") require("user.lsp_format")
require("user.neoscroll") require("user.neoscroll")
require("user.dropbar") require("user.dropbar")
require("user.bufferline")
require("user.nvim_scrollbar") require("user.nvim_scrollbar")
require("user.gitsigns") require("user.gitsigns")
require("user.lualine") require("user.lualine")

View File

@ -19,6 +19,8 @@ vim.opt.ttimeoutlen = 5
vim.g.netrw_banner = 0 vim.g.netrw_banner = 0
vim.cmd("set showtabline=1")
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "cs", pattern = "cs",
command = "setlocal shiftwidth=4 tabstop=4" command = "setlocal shiftwidth=4 tabstop=4"

View File

@ -52,14 +52,13 @@ lazy.setup({
-- file explorer -- file explorer
{ {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
branch = "v2.x", branch = "v3.x",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}
}, },
},
{ {
"kyazdani42/nvim-tree.lua", "kyazdani42/nvim-tree.lua",
dependencies = { dependencies = {