enable = true;
mapExpression = {
Caps_Lock = "Escape";
- Super_L = "Alt_L|F1";
};
};
in lib.mkOptionDefault
{
# "${mod}+d" = "exec --no-startup-id krunner";
- "${mod}+Shift+p" = "exec --no-startup-id set-wallpaper";
+ # "${mod}+Shift+p" = "exec --no-startup-id set-wallpaper";
"${mod}+Shift+Return" = "exec --no-startup-id ${pkgs.kitty}/bin/kitty -d $(${pkgs.xcwd}/bin/xcwd)";
"${mod}+BackSpace" = "kill";
"${mod}+Prior" = "workspace prev_on_output";
"${mod}+Ctrl+Left" = "move workspace to output left";
"${mod}+Ctrl+Right" = "move workspace to output right";
"${mod}+y" = "exec --no-startup-id mirror-phone";
- "${mod}+n" = "exec ${pkgs.kitty}/bin/kitty ${pkgs.helix}/bin/hx -w ~/sync/txt ~/sync/txt";
+ "${mod}+n" = "exec ${pkgs.kitty}/bin/kitty -d ~/sync/txt $EDITOR .";
"${mod}+m" = "exec --no-startup-id i3-msg $(${i3-max})";
"${mod}+Shift+m" = "exec --no-startup-id i3-msg $(${i3-move-max})";
+ "${mod}+Shift+p" = "exec --no-startup-id ${pkgs.autorandr}/bin/autorandr --match-edid -c -f";
};
};
extraConfig = ''
+ exec ${pkgs.xfce.xfce4-panel}/bin/xfce4-panel
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
# for_window [workspace="0"] floating enable
snrs = "sudo nixos-rebuild switch --flake /etc/nixos#default";
snrt = "sudo nixos-rebuild test --flake /etc/nixos#default";
snrb = "sudo nixos-rebuild boot --flake /etc/nixos#default";
- senc = "sudo ${pkgs.helix}/bin/hx /etc/nixos/configuration.nix";
- senh = "sudo ${pkgs.helix}/bin/hx /etc/nixos/home.nix";
+ senc = "sudo $EDITOR /etc/nixos/configuration.nix";
+ senh = "sudo $EDITOR /etc/nixos/home.nix";
+ senf = "sudo $EDITOR /etc/nixos/flake.nix";
flakerun = "nix run --override-input nixpkgs nixpkgs";
+ n = "nvim";
};
};
nvim-lspconfig
blink-cmp
telescope-nvim
- trouble-nvim
+ undotree
+ which-key-nvim
+ guess-indent-nvim
];
extraConfig = ''
set number
set relativenumber
set tabstop=4
set shiftwidth=4
+ set expandtab
set foldmethod=marker
+ set autoindent
+ set smartindent
+ filetype plugin indent on
+ set signcolumn=yes
+
colorscheme habamax
nnoremap <Down> gj
inoremap <Down> <C-o>gj
inoremap <Up> <C-o>gk
tnoremap <Esc> <C-\><C-n>
+ map <Space> <Leader>
+ nnoremap <Esc> :noh<CR>
+ nnoremap <leader>u :UndotreeToggle<CR> :UndotreeFocus<CR>
+ nnoremap <leader>f :Telescope find_files<CR>
+ nnoremap <leader>b :Telescope buffers<CR>
+ nnoremap <leader>e :Telescope diagnostics<CR>
+ nnoremap <leader>g :Telescope live_grep<CR>
+ nnoremap <leader>s :Telescope lsp_document_symbols<CR>
+ nnoremap <leader>r :Telescope lsp_references<CR>
+ nnoremap <leader><S-r> :Telescope lsp_references<CR><C-q>
+ nnoremap <leader>d :Telescope lsp_definitions<CR>
+ noremap <leader>y "+y"<CR>
+ noremap <leader>p "+p"<CR>
+
+ " augroup FormatAutogroup
+ " autocmd!
+ " autocmd BufWritePost * FormatWrite
+ " augroup END
+
+ autocmd BufReadPost *
+ \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+ \ | exe "normal! g`\""
+ \ | endif
'';
extraLuaConfig = ''
require('lspconfig').zls.setup{}
+ require('lspconfig').clangd.setup{}
+ local util = require('formatter.util')
require('formatter').setup {
-
+ logging = true,
+ log_level = vim.log.levels.WARN,
+ filetype = {
+ c = { require("formatter.filetypes.c").clangformat },
+ cpp = { require("formatter.filetypes.cpp").clangformat },
+ zig = { require("formatter.filetypes.zig").zigfmt },
+ }
+ }
+ require('blink.cmp').setup {
+ keymap = {
+ preset = 'none',
+
+ ['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
+ ['<C-e>'] = { 'hide', 'fallback' },
+ ['<CR>'] = { 'accept', 'fallback' },
+
+ ['<Tab>'] = { 'select_next', 'fallback_to_mappings' },
+ ['<S-Tab>'] = { 'select_prev', 'fallback_to_mappings' },
+
+ ['<C-p>'] = { 'scroll_documentation_up', 'fallback' },
+ ['<C-n'] = { 'scroll_documentation_down', 'fallback' },
+
+ ['<C-k>'] = { 'show_signature', 'hide_signature', 'fallback' },
+ },
+ completion = {
+ list = { selection = { preselect = false, } },
+ },
}
'';
};
xarchiver
tig lazygit gitui
thunderbird
+ aerc
libreoffice
gimp
guvcview