Skip to content

Instantly share code, notes, and snippets.

@fabienduhamel
Created September 19, 2024 10:10
Show Gist options
  • Select an option

  • Save fabienduhamel/aff269fc4afe7ca021eee42d4fd59711 to your computer and use it in GitHub Desktop.

Select an option

Save fabienduhamel/aff269fc4afe7ca021eee42d4fd59711 to your computer and use it in GitHub Desktop.
Lazyvim personal configuration
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
vim.keymap.set("n", "<C-b>", "<Cmd>Neotree toggle<CR>")
return {
"nvim-neo-tree/neo-tree.nvim",
opts = {
buffers = { follow_current_file = { enabled = true } },
filesystem = {
window = {
mappings = {
["<C-b>"] = function()
vim.cmd("Neotree close") -- Close Neo-tree when Ctrl + b is pressed
end,
},
},
},
},
}
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.listchars = {
tab = "> ",
trail = "·",
space = "·",
nbsp = "+",
}
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
vim.cmd("autocmd VimEnter * Neotree show")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment