Created
September 19, 2024 10:10
-
-
Save fabienduhamel/aff269fc4afe7ca021eee42d4fd59711 to your computer and use it in GitHub Desktop.
Lazyvim personal configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | |
| }, | |
| }, | |
| }, | |
| }, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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 = "+", | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 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