nvim: fix some variable names
This commit is contained in:
parent
0f50628209
commit
d3d284c972
|
@ -22,21 +22,21 @@ if vim.g.started_by_firenvim then
|
||||||
vim.o.guifont = 'Source_Code_Pro:h10'
|
vim.o.guifont = 'Source_Code_Pro:h10'
|
||||||
vim.o.textwidth = 0
|
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_augroup('firenvim', { clear = true })
|
||||||
vim.api.nvim_create_autocmd(
|
vim.api.nvim_create_autocmd(
|
||||||
{ 'BufEnter' },
|
{ 'BufEnter' },
|
||||||
{
|
{
|
||||||
group = 'firenvim',
|
group = 'firenvim',
|
||||||
pattern = {
|
pattern = {
|
||||||
FV_fileprefix .. 'schlomp\\.space_*',
|
fv_fileprefix .. 'schlomp\\.space_*',
|
||||||
FV_fileprefix .. 'codeberg\\.org_*',
|
fv_fileprefix .. 'codeberg\\.org_*',
|
||||||
FV_fileprefix .. 'gitlab\\.com_*',
|
fv_fileprefix .. 'gitlab\\.com_*',
|
||||||
FV_fileprefix .. 'github\\.com_*',
|
fv_fileprefix .. 'github\\.com_*',
|
||||||
FV_fileprefix .. 'very\\.tastytea\\.de_*',
|
fv_fileprefix .. 'very\\.tastytea\\.de_*',
|
||||||
FV_fileprefix .. 'bookwyrm\\.social_*',
|
fv_fileprefix .. 'bookwyrm\\.social_*',
|
||||||
FV_fileprefix .. 'openlibrary\\.org_*',
|
fv_fileprefix .. 'openlibrary\\.org_*',
|
||||||
FV_fileprefix .. 'bugs\\.gentoo\\.org_*',
|
fv_fileprefix .. 'bugs\\.gentoo\\.org_*',
|
||||||
},
|
},
|
||||||
command = [[set filetype=markdown | set tw=0]]
|
command = [[set filetype=markdown | set tw=0]]
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,19 +21,19 @@ require('telescope').setup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local builtin = require('telescope.builtin')
|
local t_builtin = require('telescope.builtin')
|
||||||
local my = require('my.functions')
|
local my = require('my.functions')
|
||||||
map('n', '<Leader>tb', builtin.buffers, 'Buffers')
|
map('n', '<Leader>tb', t_builtin.buffers, 'Buffers')
|
||||||
map('n', '<Leader>tf', function()
|
map('n', '<Leader>tf', function()
|
||||||
builtin.find_files({ cwd = my.get_project_root() })
|
t_builtin.find_files({ cwd = my.get_project_root() })
|
||||||
end, 'Files')
|
end, 'Files')
|
||||||
map('n', '<Leader>tF', builtin.find_files, 'Files in this directory')
|
map('n', '<Leader>tF', t_builtin.find_files, 'Files in this directory')
|
||||||
map('n', '<Leader>to', builtin.oldfiles, 'Recently opened files')
|
map('n', '<Leader>to', t_builtin.oldfiles, 'Recently opened files')
|
||||||
map('n', '<Leader>tg', function()
|
map('n', '<Leader>tg', function()
|
||||||
builtin.live_grep({ cwd = my.get_project_root() })
|
t_builtin.live_grep({ cwd = my.get_project_root() })
|
||||||
end, 'Live-grep')
|
end, 'Live-grep')
|
||||||
map('n', '<Leader>tm', builtin.man_pages, 'Man pages')
|
map('n', '<Leader>tm', t_builtin.man_pages, 'Man pages')
|
||||||
map('n', '<Leader>tr', builtin.registers, 'Registers')
|
map('n', '<Leader>tr', t_builtin.registers, 'Registers')
|
||||||
|
|
||||||
require("nvim-tree").setup({
|
require("nvim-tree").setup({
|
||||||
filters = {
|
filters = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user