Compare commits
4 Commits
cbe2ac12ef
...
67bf866434
| Author | SHA1 | Date | |
|---|---|---|---|
| 67bf866434 | |||
| 02f9153d13 | |||
| 40bdbd29d0 | |||
| 62f2d0b543 |
@@ -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 = '(%${)().+(})()$',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
15
after/ftplugin/yaml_ansible.lua
Normal file
15
after/ftplugin/yaml_ansible.lua
Normal 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+}})()$',
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user