Back
This commit is contained in:
parent
765a7645bd
commit
6b5355b370
|
@ -164,6 +164,7 @@ alias dd "dd status=progress"
|
||||||
alias year 'cal (date +%Y)'
|
alias year 'cal (date +%Y)'
|
||||||
alias mount 'sudo -E mount'
|
alias mount 'sudo -E mount'
|
||||||
alias umount 'sudo -E umount'
|
alias umount 'sudo -E umount'
|
||||||
|
alias ip 'ip -color'
|
||||||
|
|
||||||
has_command xdg-open && alias open xdg-open
|
has_command xdg-open && alias open xdg-open
|
||||||
has_command docker && begin
|
has_command docker && begin
|
||||||
|
|
|
@ -9,21 +9,18 @@ set --export --universal TERMINAL kitty
|
||||||
set --export --universal TERMINAL_ARGS '--single-instance'
|
set --export --universal TERMINAL_ARGS '--single-instance'
|
||||||
set --export --universal BROWSER firefox-developer-edition
|
set --export --universal BROWSER firefox-developer-edition
|
||||||
|
|
||||||
set --export --universal PAGER less
|
set --export --universal PAGER "less"
|
||||||
set --export --universal LESS "-r"
|
set --export --universal MANPAGER "less"
|
||||||
|
|
||||||
set --export --universal MANPAGER 'env MANWIDTH="" "$EDITOR"'
|
if command --search --quiet nvim
|
||||||
|
set --export --universal EDITOR nvim
|
||||||
if command --search --quiet helix
|
set --export --universal VISUAL nvim
|
||||||
|
else if command --search --quiet helix
|
||||||
set --export --universal EDITOR helix
|
set --export --universal EDITOR helix
|
||||||
set --export --universal VISUAL helix
|
set --export --universal VISUAL helix
|
||||||
else if command --search --quiet hx
|
else if command --search --quiet hx
|
||||||
set --export --universal EDITOR hx
|
set --export --universal EDITOR hx
|
||||||
set --export --universal VISUAL hx
|
set --export --universal VISUAL hx
|
||||||
else if command --search --quiet nvim
|
|
||||||
set --export --universal MANPAGER 'env MANWIDTH="" nvim --cmd "let g:prosession_on_startup=0" +Man!'
|
|
||||||
set --export --universal EDITOR nvim
|
|
||||||
set --export --universal VISUAL nvim
|
|
||||||
else if command --search --quiet vim
|
else if command --search --quiet vim
|
||||||
set --export --universal EDITOR vim
|
set --export --universal EDITOR vim
|
||||||
set --export --universal VISUAL vim
|
set --export --universal VISUAL vim
|
||||||
|
|
|
@ -5,10 +5,10 @@ auto-pairs = false
|
||||||
scrolloff = 8
|
scrolloff = 8
|
||||||
rulers = [80, 120]
|
rulers = [80, 120]
|
||||||
|
|
||||||
# [editor.cursor-shape]
|
[editor.cursor-shape]
|
||||||
# normal = "block"
|
normal = "block"
|
||||||
# insert = "bar"
|
insert = "bar"
|
||||||
# select = "underline"
|
select = "underline"
|
||||||
|
|
||||||
[editor.file-picker]
|
[editor.file-picker]
|
||||||
hidden = false
|
hidden = false
|
||||||
|
@ -20,17 +20,10 @@ k = { k = "normal_mode", j = "normal_mode", K = "normal_mode", J = "normal_mode"
|
||||||
K = { k = "normal_mode", j = "normal_mode", K = "normal_mode", J = "normal_mode" }
|
K = { k = "normal_mode", j = "normal_mode", K = "normal_mode", J = "normal_mode" }
|
||||||
|
|
||||||
[keys.normal]
|
[keys.normal]
|
||||||
g = { G = "goto_last_line" }
|
|
||||||
D = "kill_to_line_end"
|
D = "kill_to_line_end"
|
||||||
C = ["kill_to_line_end", "insert_mode"]
|
# C = ["kill_to_line_end", "insert_mode"]
|
||||||
"^" = "goto_line_start"
|
"^" = "goto_line_start"
|
||||||
"C-k" = "jump_view_up"
|
"C-k" = "jump_view_up"
|
||||||
"C-j" = "jump_view_down"
|
"C-j" = "jump_view_down"
|
||||||
"C-h" = "jump_view_left"
|
"C-h" = "jump_view_left"
|
||||||
"C-l" = "jump_view_right"
|
"C-l" = "jump_view_right"
|
||||||
|
|
||||||
[keys.select]
|
|
||||||
g = { G = "goto_last_line" }
|
|
||||||
|
|
||||||
# [editor]
|
|
||||||
# mouse = false
|
|
||||||
|
|
|
@ -9,3 +9,16 @@ config = { deno = { enable = true, lint = true } }
|
||||||
comment-token = "//"
|
comment-token = "//"
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
grammar = "javascript"
|
grammar = "javascript"
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "elixir"
|
||||||
|
scope = "source.elixir"
|
||||||
|
injection-regex = "(elixir|ex)"
|
||||||
|
file-types = ["ex", "exs", "mix.lock"]
|
||||||
|
shebangs = ["elixir"]
|
||||||
|
roots = []
|
||||||
|
comment-token = "#"
|
||||||
|
auto-format = true
|
||||||
|
language-server = { command = "elixir-ls" }
|
||||||
|
config = { elixirLS.dialyzerEnabled = true }
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
|
@ -1,7 +1,7 @@
|
||||||
vim.g.vimdir = os.getenv('XDG_CONFIG_HOME') .. '/nvim'
|
vim.g.vimdir = os.getenv('XDG_CONFIG_HOME') .. '/nvim'
|
||||||
|
|
||||||
|
-- ensure our plugin manager plugin is installed
|
||||||
local packer_install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
local packer_install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
||||||
|
|
||||||
if #vim.fn.glob(packer_install_path) == 0 then
|
if #vim.fn.glob(packer_install_path) == 0 then
|
||||||
vim.fn.system { 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', packer_install_path }
|
vim.fn.system { 'git', 'clone', 'https://github.com/wbthomason/packer.nvim', packer_install_path }
|
||||||
vim.cmd 'packadd packer.nvim'
|
vim.cmd 'packadd packer.nvim'
|
||||||
|
|
|
@ -24,8 +24,8 @@ profile desktop-H-2x4kside2 {
|
||||||
# }
|
# }
|
||||||
|
|
||||||
profile desktop-primary {
|
profile desktop-primary {
|
||||||
output "Dell Inc. DELL U2720Q CWTM623" enable mode 3840x2160@60Hz position 0,500 scale 1.5 transform 90
|
output "Dell Inc. DELL U2720Q CWTM623" enable mode 3840x2160@59.997Hz position 0,500 scale 1.5 transform 90
|
||||||
output "Samsung Electric Company SyncMaster H1AK500000" enable mode 3840x2160@60Hz position 1440,0 scale 1.0 transform normal
|
output "Samsung Electric Company SyncMaster H1AK500000" enable mode 3840x2160@59.997Hz position 1440,0 scale 1.0 transform normal
|
||||||
}
|
}
|
||||||
|
|
||||||
profile tv4k {
|
profile tv4k {
|
||||||
|
|
|
@ -49,7 +49,7 @@ bindsym $mod+shift+alt+return exec kitty
|
||||||
bindsym $mod+c kill
|
bindsym $mod+c kill
|
||||||
bindsym $mod+shift+c kill # TODO: kill -9?
|
bindsym $mod+shift+c kill # TODO: kill -9?
|
||||||
bindsym $mod+shift+space exec wofi --show drun
|
bindsym $mod+shift+space exec wofi --show drun
|
||||||
bindsym $mod+space exec app-launcher
|
bindsym $mod+space exec wofi --show drun
|
||||||
bindsym $mod+shift+s exec clipshot
|
bindsym $mod+shift+s exec clipshot
|
||||||
bindsym $mod+e exec thunar
|
bindsym $mod+e exec thunar
|
||||||
bindsym $mod+shift+r reload
|
bindsym $mod+shift+r reload
|
||||||
|
|
14
todo.md
14
todo.md
|
@ -17,3 +17,17 @@
|
||||||
the browser.
|
the browser.
|
||||||
- This goes for navigating "into" a file in `nnn`
|
- This goes for navigating "into" a file in `nnn`
|
||||||
- Investigate systemd services that may help with various tasks (homed, etc.)
|
- Investigate systemd services that may help with various tasks (homed, etc.)
|
||||||
|
|
||||||
|
## Helix
|
||||||
|
|
||||||
|
Here are some things Helix doesn't do well that are common use cases for my
|
||||||
|
Neovim setup:
|
||||||
|
|
||||||
|
- Session management: https://github.com/helix-editor/helix/issues/401
|
||||||
|
- "Infinite" undo persistence
|
||||||
|
- I want to be able to open a file, make changes, save it, close helix, re-
|
||||||
|
open that same file and still be able to undo all the changes I made - one
|
||||||
|
might argue that I should just use git better, and you would be right, but this
|
||||||
|
is something I've come to rely on for the time being
|
||||||
|
- Usable as PAGER, VISUAL, MANPAGER, GIT_PAGER, etc: https://github.com/helix-editor/helix/issues/1074
|
||||||
|
- The ability to `:reflow` with indentation taken into account?
|
||||||
|
|
Reference in New Issue