Compare commits

...

6 Commits

Author SHA1 Message Date
1d3bc14db3 sway stuff 2023-03-25 11:06:42 +01:00
0effa44f7e nvim: Remove duplicate plugin 2023-03-25 11:06:17 +01:00
6273769734 nvim: Add python lsp config 2023-03-25 11:05:33 +01:00
42f770a3d7 Fix oops in fish session config 2023-03-25 11:05:15 +01:00
1f932481ca sway: Enable custom file portal in firefox 2023-03-25 11:05:03 +01:00
0716666322 Update nu scripts 2023-03-25 11:04:31 +01:00
6 changed files with 76 additions and 6 deletions

View File

@ -11,6 +11,9 @@ set -x QT_STYLE_OVERRIDE Oxygen
{% if hostname == "buran" %} {% if hostname == "buran" %}
set -x QT_QPA_PLATFORMTHEME qt5ct set -x QT_QPA_PLATFORMTHEME qt5ct
# enable custom file picker in e.g. firefox
set -x GTK_USE_PORTAL 1
{% end %} {% end %}
{% if username == "u0_a213" %} {% if username == "u0_a213" %}
@ -60,7 +63,7 @@ starship init fish | source
if status is-login if status is-login
and set -q XDG_SESSION_TYPE XDG_VTNR and set -q XDG_SESSION_TYPE XDG_VTNR
and test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1" and test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1"
set -x XDG_SESSION_TYPE sway set -x XDG_CURRENT_DESKTOP sway
exec sway exec sway
end end
{% end %} {% end %}

View File

@ -62,5 +62,5 @@ let-env NU_PLUGIN_DIRS = [
# let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') # let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
mkdir ~/.cache/starship mkdir ~/.cache/starship
starship init nu | save ~/.cache/starship/init.nu starship init nu | save -f ~/.cache/starship/init.nu
zoxide init nushell | save ~/.cache/zoxide.nu zoxide init nushell | save -f ~/.cache/zoxide.nu

View File

@ -5,6 +5,72 @@
"command": "rust-analyzer", "command": "rust-analyzer",
"filetypes": ["rust"], "filetypes": ["rust"],
"rootPatterns": ["Cargo.toml"] "rootPatterns": ["Cargo.toml"]
},
"python": {
"command": "pylsp",
"args": [
"-vv",
"--log-file",
"/tmp/lsp_python.log"
],
"trace.server": "verbose",
"filetypes": [
"python"
],
"settings": {
"pyls": {
"enable": true,
"trace": {
"server": "verbose"
},
"commandPath": "",
"configurationSources": [
"pycodestyle"
],
"plugins": {
"jedi_completion": {
"enabled": true
},
"jedi_hover": {
"enabled": true
},
"jedi_references": {
"enabled": true
},
"jedi_signature_help": {
"enabled": true
},
"jedi_symbols": {
"enabled": true,
"all_scopes": true
},
"mccabe": {
"enabled": true,
"threshold": 15
},
"preload": {
"enabled": true
},
"pycodestyle": {
"enabled": true
},
"pydocstyle": {
"enabled": false,
"match": "(?!test_).*\\.py",
"matchDir": "[^\\.].*"
},
"pyflakes": {
"enabled": true
},
"rope_completion": {
"enabled": true
},
"yapf": {
"enabled": true
}
}
}
}
} }
} }
} }

View File

@ -8,7 +8,6 @@ endif
" plugins " plugins
call plug#begin('~/.local/share/nvim/plugged') call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'easymotion/vim-easymotion' Plug 'easymotion/vim-easymotion'
Plug 'roxma/vim-hug-neovim-rpc' Plug 'roxma/vim-hug-neovim-rpc'
Plug 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'

View File

@ -311,11 +311,13 @@ bar {
# use `swaymsg -t get_tree | grep "app_id"` to list window ids. can also grep for "name" # use `swaymsg -t get_tree | grep "app_id"` to list window ids. can also grep for "name"
for_window [app_id=".*"] border pixel 2 for_window [app_id=".*"] border pixel 2
for_window [app_id="^volume_indicator$"] border pixel 0; floating enable; resize set 300 80; position center for_window [app_id="^volume_indicator$"] border pixel 0; floating enable; resize set 300 80; position center
for_window [app_id="file_picker"] floating enable
for_window [app_id="zoom"] floating enable for_window [app_id="zoom"] floating enable
for_window [app_id="org.keepassxc.KeePassXC"] floating enable
#for_window [name="Firefox - Delningsindikator"] floating enable #for_window [name="Firefox - Delningsindikator"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
include /etc/sway/config.d/* include /etc/sway/config.d/*
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

View File

@ -31,6 +31,6 @@ def elf-symbols [
let section_start = ($section | get addr) let section_start = ($section | get addr)
let section_end = ($section_start + ($section | get size)) let section_end = ($section_start + ($section | get size))
$symbols | where addr >= $section_start && addr < $section_end $symbols | where addr >= $section_start and addr < $section_end
} }
} }