diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | init.lua | 2 | ||||
-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 |
8 files changed, 22 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..282bd5c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +plugin/** @@ -5,7 +5,6 @@ require "user.plugins" require "user.cmp" require "user.lsp" require "user.treesitter" -require "user.telescope" require "user.impatient" require "user.project" require "user.neoscroll" @@ -13,6 +12,7 @@ require "user.commentstring" require "user.bufferline" require "user.alpha" require "user.session-manager" +require "user.telescope" -- Those should be called last require "user.keymaps" 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') |