fix:add missing function in lsp conf
This commit is contained in:
parent
9d6ff51f11
commit
89e4ef3149
@ -65,7 +65,11 @@ lsp.sumneko_lua.setup {
|
||||
}
|
||||
|
||||
-- Ltex Language Server
|
||||
lsp.ltex.setup {}
|
||||
lsp.ltex.setup {
|
||||
ltex = {
|
||||
language = {"de", "en", "es"}
|
||||
}
|
||||
}
|
||||
|
||||
-- Go Language Server
|
||||
lsp.gopls.setup {
|
||||
@ -86,6 +90,15 @@ lsp.svelte.setup {
|
||||
capabilities = lsp_status.capabilities
|
||||
}
|
||||
|
||||
local function organize_imports()
|
||||
local params = {
|
||||
command = "_typescript.organizeImports",
|
||||
arguments = {vim.api.nvim_buf_get_name(0)},
|
||||
title = ""
|
||||
}
|
||||
vim.lsp.buf.execute_command(params)
|
||||
end
|
||||
|
||||
-- Typescript Language Server
|
||||
lsp.tsserver.setup {
|
||||
on_attach = on_attach,
|
||||
|
@ -33,6 +33,7 @@ set $windowshot swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) |
|
||||
# Default Programs
|
||||
set $term alacritty
|
||||
set $explorer nautilus
|
||||
set $mail geary
|
||||
set $browser google-chrome --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
|
||||
set $config_editor ~/.config/sway/config_editor.sh
|
||||
@ -41,6 +42,7 @@ set $toggle_layout ~/.config/sway/toggle_layout.sh
|
||||
set $toggle_gaps ~/.config/sway/toggle_gaps.sh
|
||||
set $web_search $wofi_scripts/web-search.sh
|
||||
set $select_window ~/.config/sway/select_window.sh
|
||||
set $lock_screen ~/.config/sway/lock_screen.sh
|
||||
set $select_emoji $wofi_scripts/wofi-emoji
|
||||
|
||||
# Input configuration
|
||||
@ -70,10 +72,11 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# exec swayidle -w \
|
||||
# timeout 300 'swaylock -f -c 000000' \
|
||||
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep 'swaylock -f -c 000000'
|
||||
exec swayidle -w \
|
||||
timeout 300 '~/.config/sway/lock_screen.sh' \
|
||||
timeout 600 'swaymsg "output \* dpms off"' \
|
||||
timeout 660 'systemctl suspend' \
|
||||
resume 'swaymsg "output \* dpms on"'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
@ -131,7 +134,8 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# bindsym $mod+$right focus right
|
||||
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
@ -224,7 +228,9 @@ output * bg `find ~/.customization/background -type f | shuf -n 1` fill
|
||||
bindsym $mod+s exec $screenshot
|
||||
|
||||
bindsym $mod+i exec $select_emoji
|
||||
bindsym $mod+l exec $lock_screen
|
||||
bindsym $mod+Tab exec $select_window
|
||||
bindsym $mod+m exec $mail
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
@ -262,7 +268,10 @@ mode "resize" {
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Do we need that?
|
||||
exec_always nm-applet --indicator
|
||||
|
||||
# Handles notifications
|
||||
exec_always mako
|
||||
|
||||
#
|
||||
|
13
configs/sway/lock_screen.sh
Executable file
13
configs/sway/lock_screen.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
swaylock \
|
||||
--screenshots \
|
||||
--indicator-radius 500 \
|
||||
--effect-blur 7x5 \
|
||||
--effect-pixelate 7 \
|
||||
--ring-color ffffff \
|
||||
--line-color 000000 \
|
||||
--inside-color ffffff \
|
||||
--separator-color 00000000 \
|
||||
--grace 2 \
|
||||
--fade-in 2
|
Loading…
Reference in New Issue
Block a user