I have no idea
This commit is contained in:
1 parent
c4f2a1e4cb
commit
d069cc3ac0
15 files changed
+176
-75
No files matched your search
+6
-46
@@ -1,12 +1,15 @@
|
||||
local u = require 'config.utils'
|
||||
local o = vim.o
|
||||
local g = vim.g
|
||||
|
||||
-- basic stuff
|
||||
o.number = true
|
||||
o.relativenumber = true
|
||||
o.showmode = false
|
||||
o.clipboard = 'unnamedplus'
|
||||
|
||||
g.mapleader = ' '
|
||||
vim.cmd('filetype plugin on')
|
||||
vim.cmd('syntax on')
|
||||
o.cmdheight = 2
|
||||
vim.g.mapleader = ' '
|
||||
|
||||
-- line break (wrapping) settings
|
||||
o.linebreak = true
|
||||
@@ -39,46 +42,3 @@ vim.diagnostic.config({
|
||||
virtual_text = { prefix = '●' };
|
||||
})
|
||||
|
||||
-- terminal
|
||||
local m = u.mapping
|
||||
m.map('t', '<esc>', '<C-\\><C-n>')
|
||||
m.map('t', '<C-n>', '<C-\\><C-n><C-w>h')
|
||||
m.map('t', '<C-e>', '<C-\\><C-n><C-w>j')
|
||||
m.map('t', '<C-i>', '<C-\\><C-n><C-w>k')
|
||||
m.map('t', '<C-o>', '<C-\\><C-n><C-w>l')
|
||||
m.nmap('<leader>tm', '<cmd>belowright 7sp<cr><cmd>term<cr><cmd>setlocal nonu<cr>A')
|
||||
|
||||
-- off search highlight when escape is pressed
|
||||
m.nmap('<esc>', '<cmd>noh<cr><esc>')
|
||||
|
||||
-- yank to clipboard
|
||||
m.map('v', '<leader>y', '"+y')
|
||||
|
||||
-- spell checking
|
||||
m.cmd('<leader>sp', 'setlocal spell spelllang=en_us')
|
||||
m.cmd('<leader>nsp', 'setlocal nospell')
|
||||
|
||||
-- colemak-dh
|
||||
local l = u.layout
|
||||
l.swap('n', 'h')
|
||||
l.swap('e', 'j')
|
||||
l.swap('i', 'k')
|
||||
l.swap('o', 'l')
|
||||
|
||||
l.swap('<C-w>n', '<C-w>h')
|
||||
l.swap('<C-w>e', '<C-w>j')
|
||||
l.swap('<C-w>i', '<C-w>k')
|
||||
l.swap('<C-w>o', '<C-w>l')
|
||||
l.swap('<C-w>N', '<C-w>H')
|
||||
l.swap('<C-w>E', '<C-w>J')
|
||||
l.swap('<C-w>I', '<C-w>K')
|
||||
l.swap('<C-w>O', '<C-w>L')
|
||||
|
||||
l.swap('N', 'H')
|
||||
l.swap('O', 'L')
|
||||
|
||||
l.swap('<C-n>', '<C-w>h')
|
||||
l.swap('<C-e>', '<C-w>j')
|
||||
l.swap('<C-i>', '<C-w>k')
|
||||
l.swap('<C-o>', '<C-w>l')
|
||||
|
||||
Reference in new issue
Block a user