diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-04-16 02:22:56 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2022-04-16 02:22:56 +0200 |
commit | e8f35752d00cdc04ff2616e846c12608480bd337 (patch) | |
tree | a3a2339c67fdbca72210ac0035fc7809847ab369 /lua/user | |
parent | 8d300886400d7257fb9be41d0b85464029539ecf (diff) |
Added some stuff
Diffstat (limited to 'lua/user')
-rw-r--r-- | lua/user/alpha.lua | 5 | ||||
-rw-r--r-- | lua/user/config.lua | 3 | ||||
-rw-r--r-- | lua/user/keymaps.lua | 4 | ||||
-rw-r--r-- | lua/user/plugins.lua | 1 | ||||
-rw-r--r-- | lua/user/session-manager.lua | 1 | ||||
-rw-r--r-- | lua/user/telescope.lua | 19 |
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') |