diff options
| author | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-02-21 01:04:26 -0500 |
|---|---|---|
| committer | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-02-21 01:04:26 -0500 |
| commit | 11b04ad1e5ef81d42c4384af94d7ba4161f0c160 (patch) | |
| tree | 1438bb5285499d984db60a29ec18eded634c9bf4 /nvim/after | |
| parent | 118592d53cb9a509831030de348963029aa603a8 (diff) | |
Added nvim and tmux config
Diffstat (limited to 'nvim/after')
| -rw-r--r-- | nvim/after/plugin/keymap/explorer.lua | 9 | ||||
| -rw-r--r-- | nvim/after/plugin/keymap/telescope.lua | 24 | ||||
| -rw-r--r-- | nvim/after/plugin/statusline.lua | 30 | ||||
| -rw-r--r-- | nvim/after/plugin/tabline.lua | 10 |
4 files changed, 73 insertions, 0 deletions
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("<leader>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("<Leader>ff", function() + builtin.find_files() +end) + +-- find buffer +nnoremap("<leader>fb", function() + builtin.buffers() +end) + +-- grep find +nnoremap("<Leader>gf", function() + builtin.live_grep() +end) + +-- -- find git, lists git pickers +-- TODO: write picker +-- nnoremap("<leader>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 + } + } +}) |
