moving stuff around

main
Zynh0722 2023-04-07 01:14:43 -07:00
parent d28872f045
commit 8b5764579a
5 changed files with 47 additions and 27 deletions

View File

@ -4,7 +4,7 @@ local ui = require("harpoon.ui")
vim.keymap.set("n", "<leader>a", mark.add_file) vim.keymap.set("n", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu) vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end) vim.keymap.set("n", "<C-q>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end) vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end) vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end) vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)

View File

@ -1,3 +1,3 @@
require'treesj'.setup({ -- require'treesj'.setup({
--
}) -- })

View File

@ -1,5 +1,5 @@
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.g.netrw_list_hide = ".DS_Store"
vim.api.nvim_create_autocmd('TextYankPost', { vim.api.nvim_create_autocmd('TextYankPost', {
callback = function() callback = function()
vim.highlight.on_yank() vim.highlight.on_yank()
@ -7,3 +7,11 @@ vim.api.nvim_create_autocmd('TextYankPost', {
group = highlight_group, group = highlight_group,
pattern = '*', pattern = '*',
}) })
-- vim.cmd [[
-- autocmd TermOpen * startinsert
-- ]]
vim.api.nvim_create_autocmd("TermOpen", {
command = "startinsert"
})

View File

@ -35,3 +35,8 @@ vim.keymap.set("n", "<leader>r", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><
-- make current file executable -- make current file executable
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true }) vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
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")

View File

@ -1,36 +1,43 @@
vim.opt.nu = true local opt = vim.opt
vim.opt.relativenumber = true
vim.opt.tabstop = 4 opt.nu = true
vim.opt.softtabstop = 4 opt.relativenumber = true
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
opt.smartindent = true
-- Mouse mode -- Mouse mode
vim.o.mouse = 'a' opt.mouse = 'a'
vim.opt.wrap = false -- Make splitting more natural
opt.splitright = true
opt.splitbelow = true
vim.opt.swapfile = false opt.wrap = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false opt.swapfile = false
vim.opt.incsearch = true opt.backup = false
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
opt.undofile = true
vim.opt.termguicolors = true opt.hlsearch = false
opt.incsearch = true
vim.opt.scrolloff = 8 opt.termguicolors = true
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50 opt.scrolloff = 8
opt.signcolumn = "yes"
opt.isfname:append("@-@")
vim.opt.colorcolumn = "80,120" opt.updatetime = 50
vim.opt.conceallevel = 2 opt.colorcolumn = "80,120"
opt.conceallevel = 2
vim.g.netrw_list_hide = ".DS_Store" vim.g.netrw_list_hide = ".DS_Store"