aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/alpha.lua5
-rw-r--r--lua/user/config.lua3
-rw-r--r--lua/user/keymaps.lua4
-rw-r--r--lua/user/plugins.lua1
-rw-r--r--lua/user/session-manager.lua1
-rw-r--r--lua/user/telescope.lua19
6 files changed, 20 insertions, 13 deletions
diff --git a/lua/user/alpha.lua b/lua/user/alpha.lua
index d6894c9..b318ed6 100644
--- a/lua/user/alpha.lua
+++ b/lua/user/alpha.lua
@@ -26,11 +26,12 @@ local header = {
local buttons = {
type = "group",
val = {
- button("e", " New file", "<cmd>ene <CR>"),
+ button("e", " New file", "<cmd>ene<CR>"),
+ button("SPC s l", " Open last session"),
+ button("SPC s o", " Choose session"),
button("SPC f", " Find file"),
button("SPC h", " Recently opened files"),
button("SPC g", " Find word"),
- button("SPC s l", " Open last session"),
},
opts = {
spacing = 1,
diff --git a/lua/user/config.lua b/lua/user/config.lua
index 3d7ef8f..fb655ec 100644
--- a/lua/user/config.lua
+++ b/lua/user/config.lua
@@ -1,6 +1,3 @@
--- vim.cmd [[let $NVIM_TUI_ENABLE_TRUE_COLOR=1]]
--- vim.cmd [[let g:gruvbox_italic=1]]
-
vim.opt.termguicolors = true
vim.o.background = "dark" -- or "light" for light mode
vim.cmd([[colorscheme gruvbox]])
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua
index 3c9df9c..533f2bc 100644
--- a/lua/user/keymaps.lua
+++ b/lua/user/keymaps.lua
@@ -53,3 +53,7 @@ keymap("n", "<leader>h", "<cmd>Telescope oldfiles<CR>", opts)
-- Session Manager
keymap("n", "<leader>sl", "<cmd>SessionManager load_last_session<CR>", opts)
keymap("n", "<leader>ss", "<cmd>SessionManager save_current_session<CR>", opts)
+keymap("n", "<leader>so", "<cmd>SessionManager load_session<CR>", opts)
+
+-- Bbye
+keymap("n", "<leader>q", "<cmd>Bdelete<CR>", opts)
diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua
index 9b26c51..612d603 100644
--- a/lua/user/plugins.lua
+++ b/lua/user/plugins.lua
@@ -73,6 +73,7 @@ return packer.startup(function(use)
use 'cxw42/editorconfig-vim'
use 'morhetz/gruvbox'
+ use "lunarvim/colorschemes"
-- use "ellisonleao/gruvbox.nvim"
use 'rhlobo/vim-super-retab'
diff --git a/lua/user/session-manager.lua b/lua/user/session-manager.lua
index 7d615e4..570c722 100644
--- a/lua/user/session-manager.lua
+++ b/lua/user/session-manager.lua
@@ -6,4 +6,5 @@ end
local Path = require('plenary.path')
session_manager.setup({
sessions_dir = Path:new(vim.fn.stdpath('data'), '.sessions'),
+ autoload_mode = require("session_manager.config").AutoloadMode.Disabled,
})
diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua
index d2c449a..322068b 100644
--- a/lua/user/telescope.lua
+++ b/lua/user/telescope.lua
@@ -4,21 +4,15 @@ if not status_ok then
return
end
-telescope.load_extension('media_files')
-telescope.load_extension('ui-select')
-
local actions = require "telescope.actions"
+local pls_work = "ui-select"
+
telescope.setup {
defaults = {
prompt_prefix = " ",
selection_caret = " ",
- extensions = {
- ["ui-select"] = {
- require("telescope.themes").get_dropdown {}
- }
- },
mappings = {
i = {
@@ -85,4 +79,13 @@ telescope.setup {
},
},
},
+
+ extensions = {
+ ['ui-select'] = {
+ require("telescope.themes").get_dropdown({}),
+ }
+ },
}
+
+telescope.load_extension('media_files')
+telescope.load_extension('ui-select')