diff --git a/after/plugin/defaults.lua b/after/plugin/defaults.lua new file mode 100644 index 00000000..e4b6011a --- /dev/null +++ b/after/plugin/defaults.lua @@ -0,0 +1 @@ +vim.opt.relativenumber = true \ No newline at end of file diff --git a/after/plugin/keymaps.lua b/after/plugin/keymaps.lua new file mode 100644 index 00000000..109813aa --- /dev/null +++ b/after/plugin/keymaps.lua @@ -0,0 +1,25 @@ +local opts = { noremap = true, silent = true } + +local term_opts = { silent = true } + +function keymap(mode, lhs, rhs, opts) + local options = { noremap = true } + if opts then + options = vim.tbl_extend("force", options, opts) + end + vim.api.nvim_set_keymap(mode, lhs, rhs, options) +end + +-- Navigate buffers +keymap("n", "", ":bnext", opts) +keymap("n", "", ":bprevious", opts) + +-- Terminal +-- Better window navigation +keymap("n", "", "h", opts) +keymap("n", "", "j", opts) +keymap("n", "", "k", opts) +keymap("n", "", "l", opts) + +-- Nvimtree +keymap('n', 'n', ":NvimTreeToggle") diff --git a/lua/custom/plugins/nvim-tree.lua b/lua/custom/plugins/nvim-tree.lua new file mode 100644 index 00000000..0fcdf284 --- /dev/null +++ b/lua/custom/plugins/nvim-tree.lua @@ -0,0 +1,12 @@ +return { + { + "nvim-tree/nvim-tree.lua", + version = "*", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + require("nvim-tree").setup {} + end, + } +} \ No newline at end of file