nvim: misc
This commit is contained in:
parent
fe4fde864f
commit
0c8e55320e
3 changed files with 18 additions and 10 deletions
dot_config/nvim/lua/configs
|
@ -22,9 +22,9 @@ function M.setup()
|
|||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_c = { { 'filename', path = 1 } },
|
||||
lualine_x = { 'location' },
|
||||
lualine_y = {},
|
||||
lualine_z = {}
|
||||
lualine_x = { 'encoding', 'fileformat', 'filetype' },
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
tabline = {},
|
||||
winbar = {
|
||||
|
|
|
@ -4,7 +4,7 @@ local aug = vim.api.nvim_create_augroup('laya', {})
|
|||
|
||||
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
|
||||
group = aug,
|
||||
pattern = '~/jopixel/**/*.php',
|
||||
pattern = '**/jopixel/**/*.php',
|
||||
callback = function()
|
||||
vim.cmd.iabbrev({ args = { '<buffer>', 'TR', '$this->obtainer()->translator()->t();<Left><Left>' } })
|
||||
vim.cmd.iabbrev({ args = { '<buffer>', 'TI', '$this->obtainer()->translator()->t()<Left>' } })
|
||||
|
@ -32,3 +32,17 @@ vim.api.nvim_create_autocmd('TermOpen', {
|
|||
end
|
||||
})
|
||||
--}}}
|
||||
|
||||
-- Buffer {{{
|
||||
vim.cmd([[
|
||||
augroup forceRecheck
|
||||
au FocusGained,BufEnter * :silent! !
|
||||
augroup END
|
||||
]])
|
||||
-- }}}
|
||||
|
||||
--- Keys {{{
|
||||
-- scroll up and down with shift+arrow
|
||||
vim.keymap.set('n', '<S-Down>', '<C-E>')
|
||||
vim.keymap.set('n', '<S-Up>', '<C-Y>')
|
||||
--}}}
|
||||
|
|
|
@ -40,12 +40,6 @@ function M.setup()
|
|||
vim.o.grepprg = 'rg --vimgrep --no-ignore --smart-case $*'
|
||||
vim.o.grepformat = '%f:%l:%c:%m'
|
||||
|
||||
-- Buffer
|
||||
vim.cmd([[
|
||||
augroup forceRecheck
|
||||
au FocusGained,BufEnter * :silent! !
|
||||
augroup END
|
||||
]])
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Reference in a new issue