Compare commits

...

3 Commits

Author SHA1 Message Date
Sven Vogel fc5d55d182 fix: global ui variable
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run Details
2024-12-09 13:51:06 +01:00
Sven Vogel 495318a568 fix: shift tab right indenting 2024-12-09 13:50:52 +01:00
Sven Vogel 598c68d016 feat: add plugin telescope 2024-12-09 13:50:02 +01:00
4 changed files with 38 additions and 4 deletions

View File

@ -54,6 +54,22 @@ local keymaps = {
cmd = '<gv',
desc = "Shift selection in visual right"
},
{
mode = { 'i' },
keys = '<tab>',
cmd = function()
vim.cmd(':>')
end,
desc = "Shift selection in visual mode right"
},
{
mode = { 'i' },
keys = '<S-tab>',
cmd = function()
vim.cmd(':<')
end,
desc = "Shift selection in visual right"
},
--
-- Window controls
-- ..............................................
@ -88,7 +104,7 @@ local keymaps = {
if buf_type == '' then
-- check if buffer is in ignore
in_ignore = false
local in_ignore = false
for _, v in ipairs(ignore) do
if v == file_type then
in_ignore = true
@ -155,6 +171,17 @@ local keymaps = {
vim.lsp.buf.format()
end,
desc = "Format buffer with current LSP"
},
--
-- Telescope
-- ..............................................
{
mode = { 'n', 'i', 'v' },
keys = '<C-g>',
cmd = function()
vim.cmd('Telescope')
end,
desc = "Open Telescope"
}
}

View File

@ -10,7 +10,7 @@
--
-- ==============================================
ui = require 'config.ui'
local ui = require 'config.ui'
return {
{

View File

@ -37,8 +37,8 @@ return {
up = '<C-up>',
-- Move current line in Normal mode
line_left = '<S-tab>',
line_right = '<tab>',
line_left = nil,
line_right = nil,
line_down = '<C-down>',
line_up = '<C-up>',
}

View File

@ -0,0 +1,7 @@
return {
{
'nvim-telescope/telescope.nvim',
branch = '0.1.x',
dependencies = { 'nvim-lua/plenary.nvim', 'nvim-tree/nvim-web-devicons' }
}
}