Skip to content

Commit

Permalink
Update .config/nvim/lua/plugins/Comment.lua
Browse files Browse the repository at this point in the history
Update .config/nvim/lua/plugins/barbar.lua
  • Loading branch information
Hyuga-Tsukui committed Dec 2, 2024
1 parent 463766c commit 6362d64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
11 changes: 6 additions & 5 deletions dot_config/nvim/lua/plugins/Comment.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
return {
"numToStr/Comment.nvim",
keys = { "gcc", "gbc", "gc", "gb" },
config = function()
require("Comment").setup()
end,
"numToStr/Comment.nvim",
keys = { "gcc", "gbc", "gc", "gb" },
ft = { "terraform" }, -- Terraformファイルを明示,Tfファイルの際だけ、なぜかVモードでの遅延ロードが失敗する
config = function()
require("Comment").setup()
end,
}
11 changes: 0 additions & 11 deletions dot_config/nvim/lua/plugins/barbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,5 @@ return {
vim.keymap.set("n", "<leader>p", "<Cmd>BufferPick<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<leader>w", "<Cmd>BufferClose<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<leader>ac", "<Cmd>BufferCloseAllButCurrent<CR>", { noremap = true, silent = true })

-- local max_buf = 6
-- local function close_buffer()
-- local buffer_count = vim.fn.len(vim.fn.getbufinfo({ buflisted = 1 }))
-- if buffer_count >= max_buf then
-- vim.cmd("BufferCloseAllButCurrent")
-- end
-- end
-- vim.api.nvim_create_autocmd("BufEnter", {
-- callback = close_buffer,
-- })
end,
}

0 comments on commit 6362d64

Please sign in to comment.