Skip to content

Commit

Permalink
kajdskf
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Dec 11, 2024
1 parent 2186574 commit eebf4c9
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 62 deletions.
3 changes: 3 additions & 0 deletions bashrc_files/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ alias free='free -h'
alias pacman='pacman --color="auto"'
alias yay='yay --color="auto"'
#--------------------------------------------------ls------------------------------------#
alias nd=' NVIM_APPNAME="NVIM_CHAD" nvim'
alias rgf=' source "${HOME}/bin/rg_fzf.sh"'
alias L=' ls++'
alias n=' lsd --group-directories-first -t -r --icon="never" --permission="octal" --date=+" %l:%M%P %y %m %_d " --blocks="permission,user,date,size,name"'
Expand Down Expand Up @@ -121,6 +122,7 @@ alias nv=' nvim'
alias nvgr=' fd . -tf "${XDG_CONFIG_HOME}/nvim/" -x grep --color="always" -Pi'
alias full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" "${HOME}/.local/share/nvim/site/ftplugin/" -X nvim -c "Buffers"'
alias ednv=' nvim -c "Buffers" "${XDG_CONFIG_HOME}/nvim/lua/"*.lua "${XDG_CONFIG_HOME}/nvim/"*.vim'
alias echad=' cd "${XDG_CONFIG_HOME}/NVIM_CHAD/"; nd; cd -'
alias nva=' fd . --exact-depth 1 -tf -0 -X nvim -c "Buffers"'
alias nvcpp=' fd . --exact-depth 1 -e cpp -e h -tf -0 -X nvim -c "Buffers"'
#--------------------------------------------------zathura-------------------------------#
Expand Down Expand Up @@ -169,6 +171,7 @@ alias pifs=' printf "\n_%q_\n\n" "${IFS}"'
alias getfont=' fc-list -v | grep -i '
alias gital=' git log --source --all -S'
alias gitig=' git status --ignored'
alias pp=' procs'
alias git_mt=' git log --pretty=format:"%h %s" --graph'
alias gport=' netstat -lntu | grep -Pi'
alias gd=' xclip -selection "clipboard" <<< "${PWD}"'
Expand Down
4 changes: 2 additions & 2 deletions bashrc_files/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export BEMENU_OPTS=''
export EMACS_SOCKET_NAME="${USER}_emacs_daemon"
export DOOMDIR="${HOME}/.config/doom"
export SUDO_EDITOR='nvim'
export TERM='st-256color'
export TERMINAL='/usr/local/bin/st'
export TERM='kitty'
export TERMINAL='/usr/bin/kitty'
export EDITOR='nvim'
export ERL_AFLAGS="-kernel shell_history enabled"
#------------------MINE----------------#
Expand Down
4 changes: 2 additions & 2 deletions gtk/gtk-3.0/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
Expand Down
2 changes: 1 addition & 1 deletion i3wm/regular_bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $Br o $_ fullscreen
$Br p $_ exec dunstctl close-all
$Br r $_ exec $xmsg_script "Resize"; mode resize
$Br s $_ layout stacking
$Br t $B1 [class="Tor Browser"] scratchpad show
$Br t $B1 [class="Zathura"] scratchpad show
$Br u $B1 [title="i3s_kitty_term"] scratchpad show
$Br v $_ split v
$Br w $_ layout tabbed
Expand Down
93 changes: 46 additions & 47 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
inactive_tab_background #000
inactive_tab_font_style normal
# Windows
enabled_layouts tall, grid, vertical, fat
enabled_layouts tall, grid, vertical, fat, horizontal, stack
window_margin_width 5
window_padding_width 5
inactive_border_color #555
Expand Down Expand Up @@ -99,62 +99,61 @@
map ctrl+j scroll_page_down
map ctrl+k scroll_page_up
map ctrl+q copy_to_clipboard
map ctrl+minus change_font_size all -2.0
map ctrl+plus change_font_size all +2.0
map ctrl+shift+minus change_font_size all -2.0
map ctrl+minus change_font_size all -1.0
map ctrl+plus change_font_size all +1.0
map ctrl+shift+minus change_font_size all -1.0
# F1-F12 Keys --------------------------------------
map f1 launch_tab nvim
map f2 show_kitty_doc overview
# Kitty_mod ----------------------------------------
map kitty_mod+f1 load_config_file
map kitty_mod+= set_background_opacity +0.02
map kitty_mod+- set_background_opacity -0.02
map kitty_mod+< move_tab_backward
map kitty_mod+= set_background_opacity +0.02
map kitty_mod+[ previous_tab
map kitty_mod+] next_tab
map kitty_mod+{ move_tab_forward
map kitty_mod+} move_tab_backward

# Tabs -----------------------------------------
map kitty_mod+t new_tab_with_cwd
map kitty_mod+shift+t new_tab
map kitty_mod+shift+q close_tab
map kitty_mod+[ previous_tab
map kitty_mod+] next_tab
# Using "Shift+." instead of ">" to avoid overlap with combined
# keymapping use of ">".
map kitty_mod+shift+. move_tab_forward
map kitty_mod+< move_tab_backward
# Alt
map kitty_mod+{ move_tab_forward
map kitty_mod+} move_tab_backward
# Goto Tab
map kitty_mod+0 goto_tab 99999
map kitty_mod+1 goto_tab 1
map kitty_mod+2 goto_tab 2
map kitty_mod+3 goto_tab 3
map kitty_mod+4 goto_tab 4
map kitty_mod+5 goto_tab 5
map kitty_mod+6 goto_tab 6
map kitty_mod+7 goto_tab 7
map kitty_mod+8 goto_tab 8
map kitty_mod+9 goto_tab 9
#-------------------------------------------
map kitty_mod+0 goto_tab 99999
map kitty_mod+1 goto_tab 1
map kitty_mod+2 goto_tab 2
map kitty_mod+3 goto_tab 3
map kitty_mod+4 goto_tab 4
map kitty_mod+5 goto_tab 5
map kitty_mod+6 goto_tab 6
map kitty_mod+7 goto_tab 7
map kitty_mod+8 goto_tab 8
map kitty_mod+9 goto_tab 9

# Windows --------------------------------------
map kitty_mod+n new_window_with_cwd
map kitty_mod+shift+n new_window
map kitty_mod+shift+h move_window left
map kitty_mod+shift+j move_window down
map kitty_mod+shift+k move_window up
map kitty_mod+shift+l move_window right
map kitty_mod+h neighboring_window left
map kitty_mod+j neighboring_window down
map kitty_mod+k neighboring_window up
map kitty_mod+l neighboring_window right
map kitty_mod+q close_window
map kitty_mod+i next_layout
map kitty_mod+d detach_tab
map kitty_mod+a detach_tab ask

map kitty_mod+o open_url_with_hints
map kitty_mod+d detach_tab ask
map kitty_mod+e edit_config_file
map kitty_mod+g open_url_with_hints
map kitty_mod+h neighboring_window left
map kitty_mod+i next_layout
map kitty_mod+j neighboring_window down
map kitty_mod+k neighboring_window up
map kitty_mod+l neighboring_window right
map kitty_mod+n new_window_with_cwd
map kitty_mod+o toggle_layout stack
map kitty_mod+p kitten hints --type path
map kitty_mod+q close_window
map kitty_mod+s show_scrollback
map kitty_mod+t new_tab_with_cwd

map kitty_mod+shift+. move_tab_forward
map kitty_mod+shift+d detach_tab
map kitty_mod+shift+h move_window left
map kitty_mod+shift+i last_used_layout
map kitty_mod+shift+j move_window down
map kitty_mod+shift+k move_window up
map kitty_mod+shift+l move_window right
map kitty_mod+shift+n new_window
map kitty_mod+shift+q close_tab
map kitty_mod+shift+t new_tab

map kitty_mod+f1 load_config_file
map kitty_mod+Shift+p kitten hints --type word --program -


# BEGIN_KITTY_FONTS
Expand Down
12 changes: 11 additions & 1 deletion mimeapps.list
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ application/mobi=zathura.desktop;
application/pdf=zathura.desktop;
application/schema+json=nvim.desktop;
application/toml=nvim.desktop
application/vnd.ms-publisher=nvim.desktop
application/vnd.ms-publisher=nvim.desktop
application/x-ankiaddon=anki.desktop;
application/x-apkg=anki.desktop;
application/x-bittorrent=deluge.desktop;
application/x-bittorrent=transmission-qt.desktop
application/x-colpkg=anki.desktop;
application/x-compressed-tar=org.gnome.FileRoller.desktop;
application/x-desktop=nvim.desktop;
Expand All @@ -29,6 +31,8 @@ application/x-mimearchive=nvim.desktop;
application/x-mobipocket-ebook=zathura.desktop;
application/x-openzim=zim.desktop;
application/x-shellscript=nvim.desktop;
application/x-trash=nvim.desktop
application/x-trash=nvim.desktop
application/x-wine-extension-ini=nvim.desktop;
application/x-xz-compressed-tar=org.gnome.FileRoller.desktop;
application/xhtml+xml=nvim.desktop;
Expand Down Expand Up @@ -86,6 +90,11 @@ text/csv=visidata.desktop
text/html=nvim.desktop;
text/javascript=nvim.desktop;
text/markdown=nvim.desktop;
text/plain=nvim.desktop
text/plain=nvim.desktop
text/plain=nvim.desktop
text/plain=nvim.desktop
text/plain=nvim.desktop
text/plain=nvim.desktop;
text/python=nvim.desktop;
text/spreadsheet=nvim.desktop;
Expand All @@ -96,6 +105,7 @@ text/vnd.trolltech.linguist=nvim.desktop;
text/x-c++hdr=nvim.desktop;
text/x-c++src=nvim.desktop;
text/x-chdr=nvim.desktop;
text/x-cmake=nvim.desktop;
text/x-common-lisp=nvim.desktop
text/x-copying=nvim.desktop;
text/x-csrc=nvim.desktop;
Expand Down
1 change: 1 addition & 0 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ set undofile
set undolevels=10000
set undoreload=10000
set updatetime=400
let NERDTreeIgnore = ['\.o$']
"set dir=~/.mynvim/swapfiles
"set backupdir=~/.mynvim/backupfiles
" [Retain undo history if file is edited outside of Vim](https://stackoverflow.com/a/75553217)
Expand Down
9 changes: 7 additions & 2 deletions nvim/lua/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,13 @@ lspconfig.pyright.setup({
on_attach = lsp_status.on_attach,
capabilities = cmp_capabilities,
})
lspconfig.ccls.setup({
filetypes = {"c", "cpp"},
-- lspconfig.ccls.setup({
-- filetypes = {"c", "cpp", "h", "cc", "hpp"},
-- })
lspconfig.clangd.setup({
init_options = {
fallbackFlags = {'--std=c++20'}
},
})
-- lspconfig.elixirls.setup{
-- credo = { enable = false },
Expand Down
5 changes: 4 additions & 1 deletion nvim/lua/functions.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

local va = vim.api;
local va = vim.api
local vauto = vim.api.nvim_create_autocmd
local vc = vim.cmd

Expand All @@ -25,3 +25,6 @@ function Contains(t, v)
end
return false
end
-- function SearchBuffers(s)
-- vc( {cmd="vimgrep", args={s, "##"} } )
-- end
23 changes: 17 additions & 6 deletions nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,25 @@ local v = 'v';


local regular_mappings={
{ i, F, '', '<C-K>', '<esc>lC' },
{ i, F, '', '<C-\\>', '<esc>ui' },
{ i, F, '', '<C-a>', '<esc>I' },
{ i, F, '', '<C-S-t>', '<C-d>' },
{ i, F, '', '<C-S-k>', '<C-o>C' },
{ i, F, '', '<C-\\>', '<C-o>u' },
{ i, F, '', '<C-S-\\>', '<C-o><C-r>' },
{ i, F, '', '<C-a>', '<C-o>I' },
{ i, F, '', '<C-b>', '<left>' },
{ i, F, '', '<C-e>', '<esc>A' },
{ i, F, '', '<C-e>', '<C-o>A' },
{ i, F, '', '<C-f>', '<right>' },
{ i, F, '', '<C-w>', '<S-right>' },
{ i, F, '', '<C-S-w>', '<S-left>' },
{ i, F, '', '<C-w>', '<S-right>' },
{ i, F, '', '<C-S-w>', '<S-left>' },

{ i, F, '', 'jk', '<esc>' },

{ '', T, '', '+', 'g_' },
{ '', T, '', ',', '<leader>' },

{ n, F, '', '<C-S-e>', 'be' },
{ n, F, '', '/', '/\\v\\c' },
{ n, F, '', '<C-S-h>', '<C-w>h' },
{ n, F, '', '<C-S-j>', '<C-w>j' },
Expand All @@ -52,6 +62,7 @@ local regular_mappings={
{ t, T, '', '<C-w>', '<C-\\><C-n>' },
{ v, F, 'Sub char insensitive', '<C-s>', ':s/\\V\\v\\c' },
{ v, F, 'Sub char sensitive', '<C-S-s>', ':s/\\V\\v' },
{ n, F, '', '<C-n>' , ':NERDTreeToggle<CR>' },
{ v, F, '', '`', 'zf' },
}

Expand Down Expand Up @@ -94,8 +105,8 @@ local leader_mappings={
{ n, F, '', 'ob' , ':silent !"${BROWSER:-"brave"}" %<CR>' },
{ n, F, '', 'oq' , ':silent !"qutebrowser" %<CR>' },
{ n, F, '', 'q' , ':bd' },
{ n, F, '', 's' , ':NERDTreeToggle<CR>' },
{ n, F, '', 'S' , ':source ~/.config/nvim/init.vim<esc>' },
{ n, F, '', 's' , '<C-w><C-p>' },
-- { n, F, '', 'S' , ':source ~/.config/nvim/init.vim<esc>' },
{ n, F, '', 'T' , ':term<esc>' },
{ n, F, '', 'u' , ':Lf<esc>' },
{ n, F, '', 'vv' , ':call TogVE()<CR>' },
Expand Down

0 comments on commit eebf4c9

Please sign in to comment.