From 11b04ad1e5ef81d42c4384af94d7ba4161f0c160 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Appel Date: Tue, 21 Feb 2023 01:04:26 -0500 Subject: Added nvim and tmux config --- nvim/after/plugin/keymap/explorer.lua | 9 +++++++++ nvim/after/plugin/keymap/telescope.lua | 24 ++++++++++++++++++++++++ nvim/after/plugin/statusline.lua | 30 ++++++++++++++++++++++++++++++ nvim/after/plugin/tabline.lua | 10 ++++++++++ 4 files changed, 73 insertions(+) create mode 100644 nvim/after/plugin/keymap/explorer.lua create mode 100644 nvim/after/plugin/keymap/telescope.lua create mode 100644 nvim/after/plugin/statusline.lua create mode 100644 nvim/after/plugin/tabline.lua (limited to 'nvim/after/plugin') diff --git a/nvim/after/plugin/keymap/explorer.lua b/nvim/after/plugin/keymap/explorer.lua new file mode 100644 index 0000000..00ded39 --- /dev/null +++ b/nvim/after/plugin/keymap/explorer.lua @@ -0,0 +1,9 @@ +local Remap = require("keymap") + +-- TODO: move to separate config file +vim.g.netrw_liststyle = 3 +vim.g.netrw_banner = 0 + +Remap.nnoremap("ef", function() + vim.cmd('Vexplore') +end) diff --git a/nvim/after/plugin/keymap/telescope.lua b/nvim/after/plugin/keymap/telescope.lua new file mode 100644 index 0000000..f55ffec --- /dev/null +++ b/nvim/after/plugin/keymap/telescope.lua @@ -0,0 +1,24 @@ +local Remap = require("keymap") +local builtin = require('telescope.builtin') +local nnoremap = Remap.nnoremap + +-- find file +nnoremap("ff", function() + builtin.find_files() +end) + +-- find buffer +nnoremap("fb", function() + builtin.buffers() +end) + +-- grep find +nnoremap("gf", function() + builtin.live_grep() +end) + +-- -- find git, lists git pickers +-- TODO: write picker +-- nnoremap("fg", function() +-- builtin. +-- end) diff --git a/nvim/after/plugin/statusline.lua b/nvim/after/plugin/statusline.lua new file mode 100644 index 0000000..369ad7b --- /dev/null +++ b/nvim/after/plugin/statusline.lua @@ -0,0 +1,30 @@ +require('lualine').setup({ + options = { + theme = 'auto', + globalstatus = true, + }, + -- tabline = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, + -- winbar = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {'filename'}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, + -- inactive_winbar = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {'filename'}, + -- lualine_x = {'location'}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, +}) diff --git a/nvim/after/plugin/tabline.lua b/nvim/after/plugin/tabline.lua new file mode 100644 index 0000000..c975d94 --- /dev/null +++ b/nvim/after/plugin/tabline.lua @@ -0,0 +1,10 @@ +require('bufferline').setup({ + options = { + mode = "tabs", + show_tab_indicators = false, + hover = { + enabled = true, + delay = 200 + } + } +}) -- cgit v1.2.3