Compare commits

...

4 Commits

Author SHA1 Message Date
randomuser 96fdd5cfcc enable linebreak option neovim 2023-04-11 17:06:15 -05:00
randomuser 89c4530d2e do the things to init.lua 2023-04-10 08:58:48 -05:00
randomuser 3ea9e3389b bashrc 2023-04-10 08:58:18 -05:00
randomuser bda6135dad refactor sxrc 2023-04-10 08:57:54 -05:00
3 changed files with 36 additions and 42 deletions

View File

@ -16,6 +16,7 @@ alias cal="rem -cl"
alias shutdown="sudo shutdown -h now"
alias ls="ls --color=auto"
alias ll="ls -lah --color=auto"
alias irssi="irssi --home=$HOME/.config/irssi"
PS1="\w\$ "

View File

@ -21,7 +21,6 @@ end
function tnoremap(l, r)
keymapper.set('t', l, r)
end
-- }}}
-- custom mappings {{{
@ -51,6 +50,34 @@ inoremap('zz', '<Esc>:w!<CR>a')
tnoremap('<Esc>', '<C-\\><C-n>')
-- }}}
-- vim options {{{
opt.compatible = false
opt.number = true
opt.foldmethod = 'marker'
opt.encoding = 'utf8'
opt.list = true
opt.lcs = 'tab:->,trail:_,eol:^'
opt.clipboard = 'unnamedplus'
opt.spell = true
opt.spelllang = "en_us"
opt.title = true
opt.ts = 2
opt.sw = 2
opt.hlsearch = true
opt.incsearch = true
opt.ignorecase = true
opt.smartcase = true
opt.inccommand = 'nosplit'
opt.hidden = true
opt.linebreak = true
opt.path = '.,/usr/include,**'
vim.cmd.colorscheme('earth')
opt.statusline="%f %r%m%q%h%=%y 0x%02B %04l:%03c:%03p"
vim.api.nvim_exec("let &titlestring='%{expand(\"%:p\")}'", true)
globals.vimtex_view_method = 'zathura'
-- }}}
-- autocommands {{{
-- swapfile handler
vim.api.nvim_create_autocmd({"SwapExists"}, {
@ -82,16 +109,6 @@ vim.api.nvim_create_autocmd({"BufWrite"}, {
end
})
-- autocmds for python
-- vim.api.nvim_create_autocmd({"Filetype"}, {
-- pattern = {"python"},
-- callback = function()
-- vim.bo.expandtab = true
-- vim.bo.tabstop = 4
-- vim.bo.shiftwidth = 4
-- end
-- })
function setTabbing(lang, width)
vim.api.nvim_create_autocmd({"Filetype"}, {
pattern = {lang},
@ -105,33 +122,13 @@ end
setTabbing("python", 4)
setTabbing("javascript", 2)
-- }}}
-- vim options {{{
opt.compatible = false
opt.number = true
opt.foldmethod = 'marker'
opt.encoding = 'utf8'
opt.list = true
opt.lcs = 'tab:->,trail:_,eol:^'
opt.clipboard = 'unnamedplus'
opt.spell = true
opt.spelllang = "en_us"
opt.title = true
opt.ts = 2
opt.sw = 2
opt.hlsearch = true
opt.incsearch = true
opt.ignorecase = true
opt.smartcase = true
opt.inccommand = 'nosplit'
opt.hidden = true
opt.path = '.,/usr/include,**'
vim.cmd.colorscheme('earth')
opt.statusline="%f %r%m%q%h%=%y 0x%02B %04l:%03c:%03p"
vim.api.nvim_exec("let &titlestring='%{expand(\"%:p\")}'", true)
globals.vimtex_view_method = 'zathura'
vim.api.nvim_create_autocmd({"TermOpen"}, {
pattern = {"*"},
callback = function()
vim.wo.number = false
end
})
-- }}}
-- netrw options {{{

View File

@ -1,9 +1,5 @@
# adjust some keybindings
setxkbmap -option caps:super
killall xcape
xcape -e 'Super_L=Escape'
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
xset r rate 200 40
keyboard
# start the wm
sxhkd &