diff --git a/nvim/init.lua b/nvim/init.lua index 0f74e79..3fa633f 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -36,6 +36,7 @@ require('lazy').setup({ -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', + 'christoomey/vim-tmux-navigator', -- NOTE: This is where your plugins related to LSP can be installed. -- The configuration is done below. Search for lspconfig to find it below. { @@ -196,6 +197,12 @@ require('lazy').setup({ { 'github/copilot.vim', }, + { + 'stevearc/oil.nvim', + opts = {}, + -- Optional dependencies + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, }, {}) @@ -285,6 +292,18 @@ require('telescope').setup { }, } +require("oil").setup({ + default_file_explorer = true, + columns = { + "icon", + "size", + "mtime", + "permissions" + }, + view_options = { + show_hidden = true, + } +}) -- Enable telescope fzf native, if installed pcall(require('telescope').load_extension, 'fzf') @@ -444,6 +463,9 @@ local on_attach = function(_, bufnr) nmap('K', vim.lsp.buf.hover, 'Hover Documentation') nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') + vim.api.nvim_set_keymap('n', '', ':bnext', { noremap = true, silent = true }) + vim.api.nvim_set_keymap('n', '', ':bprev', { noremap = true, silent = true }) + -- Lesser used LSP functionality nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') nmap('wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder') diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 5e49f81..4d7add7 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -2,6 +2,8 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'catppuccin/tmux#v2.1.3' # See https://github.com/catppuccin/tmux/tags for additional tags +set -g @plugin 'christoomey/vim-tmux-navigator' +set -g @plugin 'laktak/extrakto' setw -g mode-keys vi set -g @catppuccin_flavor 'frappe'