nvim: remove deprecated config

This commit is contained in:
FollieHiyuki 2021-08-29 21:20:21 +07:00
parent e22bcbdec6
commit 7958d3e2c5
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
4 changed files with 9 additions and 22 deletions

View File

@ -88,17 +88,6 @@ wk.register({
K = {name = 'Hover'}, K = {name = 'Hover'},
z = {name = 'Misc utils'}, z = {name = 'Misc utils'},
-- Don't need to show bufferline numbers
['<leader>1'] = 'which_key_ignore',
['<leader>2'] = 'which_key_ignore',
['<leader>3'] = 'which_key_ignore',
['<leader>4'] = 'which_key_ignore',
['<leader>5'] = 'which_key_ignore',
['<leader>6'] = 'which_key_ignore',
['<leader>7'] = 'which_key_ignore',
['<leader>8'] = 'which_key_ignore',
['<leader>9'] = 'which_key_ignore',
-- Move between tabs -- Move between tabs
['<TAB>'] = {'<Cmd>BufferLineCycleNext<CR>', 'Next buffer'}, ['<TAB>'] = {'<Cmd>BufferLineCycleNext<CR>', 'Next buffer'},
['<S-TAB>'] = {'<Cmd>BufferLineCyclePrev<CR>', 'Previous buffer'}, ['<S-TAB>'] = {'<Cmd>BufferLineCyclePrev<CR>', 'Previous buffer'},
@ -218,13 +207,6 @@ wk.register({
n = {':NnnPicker %:p:h<CR>', 'File picker'}, n = {':NnnPicker %:p:h<CR>', 'File picker'},
-- orgmode.nvim
o = {
name = 'Org',
a = 'Agenda',
c = 'Capture'
},
-- Tab related -- Tab related
t = { t = {
name = 'Tab', name = 'Tab',
@ -268,7 +250,10 @@ autocmd FileType html lua whichkeyHtml()
_G.whichkeyOrg = function() _G.whichkeyOrg = function()
wk.register({ wk.register({
['<leader>o'] = { ['<leader>o'] = {
name = 'Org',
a = 'Agenda',
A = 'Toggle ARCHIVE', A = 'Toggle ARCHIVE',
c = 'Capture',
e = 'Export', e = 'Export',
i = { i = {
name = 'Insert', name = 'Insert',

View File

@ -1,7 +1,6 @@
return require('bufferline').setup { return require('bufferline').setup {
options = { options = {
numbers = 'none', numbers = 'none',
mappings = true,
max_name_length = 16, max_name_length = 16,
max_prefix_length = 14, max_prefix_length = 14,
tab_size = 20, tab_size = 20,

View File

@ -29,12 +29,14 @@ return require('gitsigns').setup {
follow_files = true follow_files = true
}, },
current_line_blame = false, current_line_blame = false,
current_line_blame_delay = 1000, current_line_blame_opts = {
current_line_blame_position = 'eol', delay = 1000,
virt_text = true,
virt_text_pos = 'eol'
},
sign_priority = 6, sign_priority = 6,
update_debounce = 100, update_debounce = 100,
status_formatter = nil, -- Use default status_formatter = nil, -- Use default
word_diff = false, word_diff = false,
use_decoration_api = true,
use_internal_diff = true -- If luajit is present use_internal_diff = true -- If luajit is present
} }

View File

@ -323,6 +323,7 @@ return require('packer').startup(
} }
use { use {
'kristijanhusak/orgmode.nvim', -- shouldn't be lazy-loaded (otherwise bindings don't work) 'kristijanhusak/orgmode.nvim', -- shouldn't be lazy-loaded (otherwise bindings don't work)
ft = 'org',
config = function() config = function()
require('modules.org') require('modules.org')
end end