4 Commits

Author SHA1 Message Date
67bf866434 feat(tabline): cleanup looks 2026-02-16 11:35:37 +02:00
02f9153d13 feat(ftplugin): add terraform surround 2026-02-16 11:35:24 +02:00
40bdbd29d0 feat(surround): add surround for ansible variables 2026-02-13 16:26:03 +02:00
62f2d0b543 feat(blink): upgrade to 1.9x 2026-02-13 16:25:50 +02:00
4 changed files with 56 additions and 7 deletions

View File

@@ -4,3 +4,15 @@ vim.opt.tabstop = 2
vim.opt.expandtab = true
vim.bo.commentstring = '# %s'
local surround = require('nvim-surround')
surround.buffer_setup({
surrounds = {
['v'] = {
add = { '${', '}' },
find = '%${[^}]-}',
delete = '(%${)().+(})()$',
}
}
})

View File

@@ -0,0 +1,15 @@
-- update this configuration of nvim-surround
-- to handle {{ }} structure in ansible
-- I want to be able to add and delete those braces
local surround = require('nvim-surround')
surround.buffer_setup({
surrounds = {
['v'] = {
add = { '{{ ', ' }}' },
find = '{{[^}]-}}',
delete = '({{%s+)().+(%s+}})()$',
}
}
})

View File

@@ -7,7 +7,7 @@ return {
{ 'L3MON4D3/LuaSnip', version = 'v2.*' }
},
-- use a release tag to download pre-built binaries
version = 'v1.8.*',
version = 'v1.9.*',
---@module 'blink-cmp'
---@type blink.cmp.Config

View File

@@ -1,3 +1,11 @@
local theme = {
fill = 'TabLineFill',
head = 'TabLine',
current_tab = 'TabLineSel',
tab = 'TabLine',
win = 'TabLine',
tail = 'TabLine',
}
-- I literally need this for Dadbod for a nicer name in tabs. I don't use tabs
-- in any other way
return {
@@ -5,7 +13,21 @@ return {
---@module 'tabby'
---@type TabbyConfig
opts = {
-- configs...
line = function(line)
return {
line.tabs().foreach(function(tab)
local hl = tab.is_current() and theme.current_tab or theme.tab
return {
line.sep('', hl, theme.head),
tab.number(),
tab.name(),
hl = hl,
margin = ' ',
}
end),
hl = theme.fill,
}
end,
},
}