Updated bufferline config
This commit is contained in:
@@ -20,19 +20,19 @@ autocmd("LspAttach", {
|
||||
vim.keymap.set("n", "K", function()
|
||||
vim.lsp.buf.hover()
|
||||
end, { buffer = e.buf, desc = "Display hover" })
|
||||
vim.keymap.set("n", "<leader>vs", function()
|
||||
vim.keymap.set("n", "<leader>ls", function()
|
||||
vim.lsp.buf.workspace_symbol()
|
||||
end, { buffer = e.buf, desc = "Find symbol in workspace" })
|
||||
vim.keymap.set("n", "<leader>vf", function()
|
||||
vim.keymap.set("n", "<leader>lf", function()
|
||||
vim.diagnostic.open_float()
|
||||
end, { buffer = e.buf, desc = "Show diagnostics" })
|
||||
vim.keymap.set("n", "<leader>va", function()
|
||||
vim.keymap.set("n", "<leader>la", function()
|
||||
vim.lsp.buf.code_action()
|
||||
end, { buffer = e.buf, desc = "Code action" })
|
||||
vim.keymap.set("n", "<leader>vs", function()
|
||||
vim.keymap.set("n", "<leader>ls", function()
|
||||
vim.lsp.buf.references()
|
||||
end, { buffer = e.buf, desc = "List references to symbol" })
|
||||
vim.keymap.set("n", "<leader>vr", function()
|
||||
vim.keymap.set("n", "<leader>lr", function()
|
||||
vim.lsp.buf.rename()
|
||||
end, { buffer = e.buf, desc = "Rename symbol" })
|
||||
vim.keymap.set("i", "<C-h>", function()
|
||||
|
||||
@@ -11,8 +11,11 @@ return {
|
||||
local mocha = require("catppuccin.palettes").get_palette("mocha")
|
||||
bufferline.setup({
|
||||
options = {
|
||||
always_show_bufferline = false,
|
||||
auto_toggle_bufferline = true,
|
||||
always_show_bufferline = true,
|
||||
numbers = function(opts)
|
||||
return opts.raise(opts.ordinal)
|
||||
end,
|
||||
show_buffer_icons = false,
|
||||
},
|
||||
highlights = require("catppuccin.groups.integrations.bufferline").get({
|
||||
styles = { "italic", "bold" },
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
return {
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
})
|
||||
end
|
||||
"kylechui/nvim-surround",
|
||||
version = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("nvim-surround").setup({
|
||||
-- Configuration here, or leave empty to use defaults
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user