Not using versioning on your configuration files and editing them with Vim?
Use Vim’s backup option to automatically keep a copy of past versions. To put in your ~/.vimrc:
"Turn on backup option
set backup| -- Returns a string with a list of attached LSP clients, including | |
| -- formatters and linters from null-ls, nvim-lint and formatter.nvim | |
| local function get_attached_clients() | |
| local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 }) | |
| if #buf_clients == 0 then | |
| return "LSP Inactive" | |
| end | |
| local buf_ft = vim.bo.filetype |
| $.ajax({ | |
| url: "path/to/csvData", | |
| type: "GET", | |
| dataType: "text", | |
| success: function (data) { | |
| csvData = 'data:application/csv;charset=utf-8,' + encodeURIComponent(data); | |
| $("#exportsags").attr({ | |
| "href": csvData, | |
| "download": "sag_data.csv" |
| $estadosBrasileiros = array( | |
| 'AC'=>'Acre', | |
| 'AL'=>'Alagoas', | |
| 'AP'=>'Amapá', | |
| 'AM'=>'Amazonas', | |
| 'BA'=>'Bahia', | |
| 'CE'=>'Ceará', | |
| 'DF'=>'Distrito Federal', | |
| 'ES'=>'Espírito Santo', | |
| 'GO'=>'Goiás', |
| - Arts: | |
| - Design | |
| - Fashion & Beauty | |
| - Food | |
| - Literature | |
| - Performing Arts | |
| - Spoken Word | |
| - Visual Arts | |
| - Business: | |
| - Business News |