From ad6c1dedfeb543d9e38db97b20413a6f256ea1a5 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 6 Aug 2024 20:25:21 +0200 Subject: [PATCH] Update ansible managed file markers --- templates/nvim/ftplugin/bash.lua.j2 | 2 +- templates/nvim/ftplugin/css.lua.j2 | 2 +- templates/nvim/ftplugin/html.lua.j2 | 2 +- templates/nvim/ftplugin/htmldjango.lua.j2 | 2 +- templates/nvim/ftplugin/javascript.lua.j2 | 2 +- templates/nvim/ftplugin/json.lua.j2 | 2 +- templates/nvim/ftplugin/lua.lua.j2 | 2 +- templates/nvim/ftplugin/python.lua.j2 | 2 +- templates/nvim/ftplugin/scss.lua.j2 | 2 +- templates/nvim/ftplugin/sh.lua.j2 | 2 +- templates/nvim/ftplugin/yaml.lua.j2 | 2 +- templates/nvim/init.lua.j2 | 2 ++ templates/nvim/lua/auto-commands.lua.j2 | 2 ++ templates/nvim/lua/lsp.lua.j2 | 2 ++ templates/nvim/lua/lua-line.lua.j2 | 2 ++ templates/nvim/lua/nvim-cmp.lua.j2 | 2 ++ templates/nvim/lua/options.lua.j2 | 2 ++ templates/nvim/lua/telescope.lua.j2 | 2 ++ templates/nvim/lua/tree-sitter.lua.j2 | 2 ++ 19 files changed, 27 insertions(+), 11 deletions(-) diff --git a/templates/nvim/ftplugin/bash.lua.j2 b/templates/nvim/ftplugin/bash.lua.j2 index 94362da..420fc24 100644 --- a/templates/nvim/ftplugin/bash.lua.j2 +++ b/templates/nvim/ftplugin/bash.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 4 vim.opt.softtabstop = 4 diff --git a/templates/nvim/ftplugin/css.lua.j2 b/templates/nvim/ftplugin/css.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/css.lua.j2 +++ b/templates/nvim/ftplugin/css.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/html.lua.j2 b/templates/nvim/ftplugin/html.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/html.lua.j2 +++ b/templates/nvim/ftplugin/html.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/htmldjango.lua.j2 b/templates/nvim/ftplugin/htmldjango.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/htmldjango.lua.j2 +++ b/templates/nvim/ftplugin/htmldjango.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/javascript.lua.j2 b/templates/nvim/ftplugin/javascript.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/javascript.lua.j2 +++ b/templates/nvim/ftplugin/javascript.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/json.lua.j2 b/templates/nvim/ftplugin/json.lua.j2 index 94362da..420fc24 100644 --- a/templates/nvim/ftplugin/json.lua.j2 +++ b/templates/nvim/ftplugin/json.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 4 vim.opt.softtabstop = 4 diff --git a/templates/nvim/ftplugin/lua.lua.j2 b/templates/nvim/ftplugin/lua.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/lua.lua.j2 +++ b/templates/nvim/ftplugin/lua.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/python.lua.j2 b/templates/nvim/ftplugin/python.lua.j2 index 94362da..420fc24 100644 --- a/templates/nvim/ftplugin/python.lua.j2 +++ b/templates/nvim/ftplugin/python.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 4 vim.opt.softtabstop = 4 diff --git a/templates/nvim/ftplugin/scss.lua.j2 b/templates/nvim/ftplugin/scss.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/scss.lua.j2 +++ b/templates/nvim/ftplugin/scss.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/ftplugin/sh.lua.j2 b/templates/nvim/ftplugin/sh.lua.j2 index 94362da..420fc24 100644 --- a/templates/nvim/ftplugin/sh.lua.j2 +++ b/templates/nvim/ftplugin/sh.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 4 vim.opt.softtabstop = 4 diff --git a/templates/nvim/ftplugin/yaml.lua.j2 b/templates/nvim/ftplugin/yaml.lua.j2 index 1de152e..058970f 100644 --- a/templates/nvim/ftplugin/yaml.lua.j2 +++ b/templates/nvim/ftplugin/yaml.lua.j2 @@ -1,4 +1,4 @@ --- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }} +-- {{ ansible_managed }} vim.opt.tabstop = 2 vim.opt.softtabstop = 2 diff --git a/templates/nvim/init.lua.j2 b/templates/nvim/init.lua.j2 index 398c762..40b25eb 100644 --- a/templates/nvim/init.lua.j2 +++ b/templates/nvim/init.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + require('options') require('lsp') require('nvim-cmp') diff --git a/templates/nvim/lua/auto-commands.lua.j2 b/templates/nvim/lua/auto-commands.lua.j2 index d55530b..a16ab8d 100644 --- a/templates/nvim/lua/auto-commands.lua.j2 +++ b/templates/nvim/lua/auto-commands.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + --colorscheme vim.cmd('colorscheme catppuccin-latte') diff --git a/templates/nvim/lua/lsp.lua.j2 b/templates/nvim/lua/lsp.lua.j2 index fae11d3..812dc2c 100644 --- a/templates/nvim/lua/lsp.lua.j2 +++ b/templates/nvim/lua/lsp.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + --use an on_attach function to only map the following keys --after the language server attaches to the current buffer local on_attach = function(client, bufnr) diff --git a/templates/nvim/lua/lua-line.lua.j2 b/templates/nvim/lua/lua-line.lua.j2 index 6ac78e1..5821a00 100644 --- a/templates/nvim/lua/lua-line.lua.j2 +++ b/templates/nvim/lua/lua-line.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + local lualine = require('lualine'); lualine.setup { diff --git a/templates/nvim/lua/nvim-cmp.lua.j2 b/templates/nvim/lua/nvim-cmp.lua.j2 index 385ac54..b013475 100644 --- a/templates/nvim/lua/nvim-cmp.lua.j2 +++ b/templates/nvim/lua/nvim-cmp.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + local cmp = require('cmp') cmp.setup { diff --git a/templates/nvim/lua/options.lua.j2 b/templates/nvim/lua/options.lua.j2 index 12a7de4..367a04a 100644 --- a/templates/nvim/lua/options.lua.j2 +++ b/templates/nvim/lua/options.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + -- fix different locale settings when ssh'ing vim.o.encoding = 'utf-8' diff --git a/templates/nvim/lua/telescope.lua.j2 b/templates/nvim/lua/telescope.lua.j2 index 414ba44..af27925 100644 --- a/templates/nvim/lua/telescope.lua.j2 +++ b/templates/nvim/lua/telescope.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + local telescope = require('telescope'); telescope.setup({ diff --git a/templates/nvim/lua/tree-sitter.lua.j2 b/templates/nvim/lua/tree-sitter.lua.j2 index c043391..50a0fdc 100644 --- a/templates/nvim/lua/tree-sitter.lua.j2 +++ b/templates/nvim/lua/tree-sitter.lua.j2 @@ -1,3 +1,5 @@ +-- {{ ansible_managed }} + -- Tree sitter language parsers are installed automatically (through `auto_install`). -- To update installed parsers use `:TSUpdate {language}`. -- See https://github.com/nvim-treesitter/nvim-treesitter for more info.