nvim: cleanup

This commit is contained in:
tastytea 2022-08-13 01:34:38 +02:00
parent 2f02c47ef0
commit e36365b4e8
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 14 additions and 16 deletions

View File

@ -16,7 +16,6 @@ packer.use {
end
}
-- org
packer.use {
'https://github.com/nvim-orgmode/orgmode',
requires = 'https://github.com/nvim-treesitter/nvim-treesitter',

View File

@ -13,7 +13,7 @@ for key, cmd in pairs({ Left = 'bprevious', Right = 'bnext' }) do
map('n', format('<M-%s>', key), format(':%s<cr>', cmd))
map('i', format('<M-%s>', key), format('<esc>:%s<cr>', cmd))
end
-- move buffer without moving cursor
---- move buffer without moving cursor
map({ 'n', 'v' }, '<M-Up>', '<C-y>')
map({ 'n', 'v' }, '<M-Down>', '<C-e>')

View File

@ -8,7 +8,7 @@ vim.o.linebreak = true -- break on word boundaries
vim.o.cursorline = true -- highlight row with cursor
vim.o.scrolloff = 5 -- show 5 lines below/above cursor
vim.o.sidescrolloff = 5 -- same fore left/right
vim.o.sidescrolloff = 5 -- same for left/right
vim.o.expandtab = true -- indent using spaces
vim.o.tabstop = 4 -- 1 tab = 4 spaces
vim.o.shiftwidth = 4 -- 1 indentation = 4 spaces
@ -16,11 +16,10 @@ vim.o.completeopt = 'menu,menuone,noselect' -- completion popup
vim.o.autochdir = true -- change workir to current file dir
vim.o.updatetime = 500 -- fire CursorHold autocommand event
vim.o.cmdheight = 2 -- message area size
-- vim.o.mouse = 'nv' -- make use of mouse in these modes
vim.o.mouse = '' -- make use of mouse in these modes
vim.o.pumheight = 10 -- maximum entries in popup menu
vim.o.smartindent = true -- indent after { and so on
-- theme
vim.o.termguicolors = true -- 24 bit colours
packer.use {