aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/after/plugin')
-rw-r--r--nvim/after/plugin/keymap/explorer.lua9
-rw-r--r--nvim/after/plugin/keymap/telescope.lua24
-rw-r--r--nvim/after/plugin/statusline.lua30
-rw-r--r--nvim/after/plugin/tabline.lua10
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
+ }
+ }
+})