From d3d284c972783c33e0e8e8be1437dbdefa4601f9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 17 Aug 2022 19:13:25 +0200 Subject: [PATCH] nvim: fix some variable names --- .config/nvim/lua/my/net.lua | 18 +++++++++--------- .config/nvim/lua/my/tools.lua | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.config/nvim/lua/my/net.lua b/.config/nvim/lua/my/net.lua index 164f013..57de253 100644 --- a/.config/nvim/lua/my/net.lua +++ b/.config/nvim/lua/my/net.lua @@ -22,21 +22,21 @@ if vim.g.started_by_firenvim then vim.o.guifont = 'Source_Code_Pro:h10' vim.o.textwidth = 0 - local FV_fileprefix = vim.env['XDG_RUNTIME_DIR'] .. '/firenvim/' + local fv_fileprefix = vim.env['XDG_RUNTIME_DIR'] .. '/firenvim/' vim.api.nvim_create_augroup('firenvim', { clear = true }) vim.api.nvim_create_autocmd( { 'BufEnter' }, { group = 'firenvim', pattern = { - FV_fileprefix .. 'schlomp\\.space_*', - FV_fileprefix .. 'codeberg\\.org_*', - FV_fileprefix .. 'gitlab\\.com_*', - FV_fileprefix .. 'github\\.com_*', - FV_fileprefix .. 'very\\.tastytea\\.de_*', - FV_fileprefix .. 'bookwyrm\\.social_*', - FV_fileprefix .. 'openlibrary\\.org_*', - FV_fileprefix .. 'bugs\\.gentoo\\.org_*', + fv_fileprefix .. 'schlomp\\.space_*', + fv_fileprefix .. 'codeberg\\.org_*', + fv_fileprefix .. 'gitlab\\.com_*', + fv_fileprefix .. 'github\\.com_*', + fv_fileprefix .. 'very\\.tastytea\\.de_*', + fv_fileprefix .. 'bookwyrm\\.social_*', + fv_fileprefix .. 'openlibrary\\.org_*', + fv_fileprefix .. 'bugs\\.gentoo\\.org_*', }, command = [[set filetype=markdown | set tw=0]] }) diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index fe66eda..2c57bc3 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -21,19 +21,19 @@ require('telescope').setup { } } -local builtin = require('telescope.builtin') +local t_builtin = require('telescope.builtin') local my = require('my.functions') -map('n', 'tb', builtin.buffers, 'Buffers') +map('n', 'tb', t_builtin.buffers, 'Buffers') map('n', 'tf', function() - builtin.find_files({ cwd = my.get_project_root() }) + t_builtin.find_files({ cwd = my.get_project_root() }) end, 'Files') -map('n', 'tF', builtin.find_files, 'Files in this directory') -map('n', 'to', builtin.oldfiles, 'Recently opened files') +map('n', 'tF', t_builtin.find_files, 'Files in this directory') +map('n', 'to', t_builtin.oldfiles, 'Recently opened files') map('n', 'tg', function() - builtin.live_grep({ cwd = my.get_project_root() }) + t_builtin.live_grep({ cwd = my.get_project_root() }) end, 'Live-grep') -map('n', 'tm', builtin.man_pages, 'Man pages') -map('n', 'tr', builtin.registers, 'Registers') +map('n', 'tm', t_builtin.man_pages, 'Man pages') +map('n', 'tr', t_builtin.registers, 'Registers') require("nvim-tree").setup({ filters = {