aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/nvim/lua/keybindings.lua5
-rw-r--r--config/nvim/lua/plugins/neotree.lua29
2 files changed, 34 insertions, 0 deletions
diff --git a/config/nvim/lua/keybindings.lua b/config/nvim/lua/keybindings.lua
new file mode 100644
index 0000000..72d4030
--- /dev/null
+++ b/config/nvim/lua/keybindings.lua
@@ -0,0 +1,5 @@
+vim.keymap.set('n', '<A-Right>', '<cmd>tabnext<CR>')
+vim.keymap.set('n', '<A-Left>', '<cmd>tabprevious<CR>')
+-- Neotree
+vim.keymap.set('n', '<A-&>', '<cmd>Neotree<CR>')
+vim.api.nvim_create_user_command('Gs', 'Neotree float git_status git_base=main', {})
diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua
new file mode 100644
index 0000000..70462e6
--- /dev/null
+++ b/config/nvim/lua/plugins/neotree.lua
@@ -0,0 +1,29 @@
+return {
+ 'nvim-neo-tree/neo-tree.nvim',
+ branch = "v3.x",
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ "MunifTanjim/nui.nvim",
+ "nvim-tree/nvim-web-devicons", -- optional, but recommended
+ },
+ lazy = false, -- neo-tree will lazily load itself
+ opts = {
+ close_if_last_window = true,
+ enable_git_status = true,
+ default_component_configs = {
+ indent = {
+ ident_size = 4,
+ padding = 2
+ }
+ },
+ window = {
+ mappings = {
+ ["<cr>"] = "open",
+ ["esc"] = "cancel",
+ ["<A-cr>"] = "open_tabnew",
+ ["<r>"] = "rename",
+ ["<d>"] = "delete"
+ }
+ }
+ }
+}