merge: work
This commit is contained in:
parent
8ae1d86817
commit
dabb11eb27
@ -1,8 +0,0 @@
|
||||
update_check_interval 0
|
||||
|
||||
font_family DejaVuSansMono Nerd Font Mono
|
||||
font_size 14.0
|
||||
|
||||
background_opacity 0.8
|
||||
|
||||
enable_audio_bell no
|
@ -3,7 +3,6 @@ vim.cmd("packadd nvim-treesitter")
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
auto_install = true,
|
||||
highlight = {enable = true},
|
||||
indent = {enable = true},
|
||||
}
|
||||
|
||||
vim.cmd("packadd black")
|
||||
@ -19,10 +18,11 @@ vim.cmd("packadd nvim-lspconfig")
|
||||
vim.cmd("packadd vim-dirdiff")
|
||||
|
||||
vim.cmd("packadd vim-easy-align")
|
||||
vim.keymap.set("n", "ga", "<Plug>(EasyAlign)<C-x>")
|
||||
vim.keymap.set("n", "ga", "<Plug>(EasyAlign)")
|
||||
vim.keymap.set("x", "ga", "<Plug>(EasyAlign)<C-x>")
|
||||
|
||||
-- variables
|
||||
vim.g.mapleader = " "
|
||||
vim.o.path = vim.o.path .. ",**"
|
||||
vim.o.expandtab = true
|
||||
vim.o.smartindent = true
|
||||
@ -37,17 +37,22 @@ vim.o.mouse = "a"
|
||||
vim.o.suffixes = vim.o.suffixes .. ",.pyc"
|
||||
vim.o.foldmethod = "indent"
|
||||
vim.o.foldlevel = 99
|
||||
vim.o.grepprg = "grep -rn $*"
|
||||
vim.wo.cc = "80"
|
||||
|
||||
vim.cmd("au BufWrite * :%s/\\s\\+$//e")
|
||||
|
||||
-- keybindings
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
|
||||
-- (mode, key, command )
|
||||
|
||||
-- terminal escape key
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>" )
|
||||
|
||||
-- movement keys
|
||||
vim.keymap.set("n", "<C-h>", "<C-w>h" )
|
||||
vim.keymap.set("n", "<C-j>", "<C-w>j" )
|
||||
vim.keymap.set("n", "<C-k>", "<C-w>k" )
|
||||
vim.keymap.set("n", "<C-l>", "<C-w>l" )
|
||||
|
||||
-- go to file:line instead of just file
|
||||
vim.keymap.set("n", "gf", "gF" )
|
||||
|
||||
-- remove trailing whitespaces
|
||||
vim.keymap.set("n", "<Leader>w", ":%s/\\s\\+$//e<CR>")
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit f3c53d225ada93a99bfd818e1c40012400e2dc55
|
||||
Subproject commit f0c9a186eab06d7e4dcd78c973dcb60b702ac5d2
|
Loading…
Reference in New Issue
Block a user