Compare commits
4 commits
0a7160878a
...
35f124b329
Author | SHA1 | Date | |
---|---|---|---|
35f124b329 | |||
baceab2173 | |||
14bf4411ce | |||
de58407231 |
9 changed files with 34 additions and 23 deletions
symlinks
1
symlinks/config/btop/.gitignore
vendored
Normal file
1
symlinks/config/btop/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
btop.log
|
|
@ -56,8 +56,8 @@ require("lint").linters_by_ft = {
|
|||
python = { "flake8" },
|
||||
kotlin = { "ktlint" },
|
||||
clojure = { "clj_kondo" },
|
||||
c = { "clang_check" },
|
||||
cpp = { "clang_check" },
|
||||
c = { "clangtidy" },
|
||||
cpp = { "clangtidy" },
|
||||
lua = { "luacheck" },
|
||||
gdscript = { "gdlint" },
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ require("mason-lspconfig").setup()
|
|||
local common_config = require("esensar.lsp.server_config")
|
||||
|
||||
-- Language specific LSP config overrides
|
||||
local zig_loc = vim.api.nvim_exec2("!mise where zig", { output = true }).output
|
||||
local configuration_overrides = {
|
||||
gdscript = {
|
||||
flags = {
|
||||
|
@ -44,6 +45,12 @@ local configuration_overrides = {
|
|||
},
|
||||
},
|
||||
},
|
||||
zls = {
|
||||
settings = {
|
||||
zig_exe_path = zig_loc .. "/zig",
|
||||
zig_lib_path = zig_loc .. "/lib",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- Lsp default language servers
|
||||
|
@ -86,18 +93,8 @@ require("flutter-tools").setup({
|
|||
})
|
||||
|
||||
-- Rust tools
|
||||
vim.g.rustaceanvim = {
|
||||
vim.g.rustaceanvim = vim.tbl_deep_extend("force", vim.g.rustaceanvim or {}, {
|
||||
server = vim.tbl_extend("force", common_config, {
|
||||
capabilities = vim.tbl_extend("force", common_config.capabilities, {
|
||||
-- TODO wait for nvim-cmp fix
|
||||
textDocument = {
|
||||
completion = {
|
||||
completionItem = {
|
||||
snippetSupport = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
on_attach = function(client, bufnr)
|
||||
common_config.on_attach(client, bufnr)
|
||||
end,
|
||||
|
@ -117,13 +114,12 @@ vim.g.rustaceanvim = {
|
|||
enable = false,
|
||||
},
|
||||
cargo = {
|
||||
loadOutDirsFromCheck = true,
|
||||
features = "all",
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
}
|
||||
})
|
||||
|
||||
require("crates").setup({
|
||||
lsp = {
|
||||
|
|
|
@ -160,7 +160,7 @@ require("luasnip").filetype_extend("java", { "javadoc", "java-tests" })
|
|||
|
||||
luasnip.add_snippets("rust", {
|
||||
s("tests", {
|
||||
t({ "#[cfg(test)]", "mod tests {", " use super:*;", " " }),
|
||||
t({ "#[cfg(test)]", "mod tests {", " use super::*;", " " }),
|
||||
i(0),
|
||||
t({ "", "}" }),
|
||||
}),
|
||||
|
|
|
@ -14,6 +14,8 @@ assign [app_id="eclipse"] $ide_workspace
|
|||
assign [class="octave-gui"] $ide_workspace
|
||||
assign [instance="vim"] $editor_workspace
|
||||
assign [instance="download"] $ongoing_operations
|
||||
assign [class="steam"] $ongoing_operations
|
||||
assign [class="steam_app_*"] $ongoing_operations
|
||||
assign [class="Godot"] $ide_workspace
|
||||
assign [class="FreeTube"] $music_workspace
|
||||
|
||||
|
|
|
@ -2,9 +2,4 @@
|
|||
bindsym $alt+L exec 'swaylock'
|
||||
|
||||
# IDLE CONFIG
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock' \
|
||||
timeout 330 'swaymsg "output * power off"' \
|
||||
resume 'swaymsg "output * power on"; openrgb -p ~/.config/OpenRGB/full_cyan.orp' \
|
||||
timeout 600 'openrgb -b 0 -m off; systemctl suspend' \
|
||||
before-sleep 'swaylock; playerctl pause'
|
||||
exec swayidle -w
|
||||
|
|
3
symlinks/config/sway/conf.d/98_idle_apps
Normal file
3
symlinks/config/sway/conf.d/98_idle_apps
Normal file
|
@ -0,0 +1,3 @@
|
|||
for_window [title="Steam Big Picture Mode"] inhibit_idle fullscreen
|
||||
for_window [app_id="firefox"] inhibit_idle fullscreen
|
||||
for_window [class="steam_app_*"] inhibit_idle fullscreen
|
10
symlinks/config/systemd/user/openrgb-default-profile.service
Normal file
10
symlinks/config/systemd/user/openrgb-default-profile.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Set openrgb to default profile
|
||||
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/openrgb -p %h/.config/OpenRGB/full_cyan.orp
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
|
|
@ -11,11 +11,15 @@
|
|||
[diff]
|
||||
tool = nvimdiff
|
||||
[difftool]
|
||||
prompt = true
|
||||
prompt = false
|
||||
[difftool "nvimdiff"]
|
||||
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
|
||||
[merge]
|
||||
tool = nvimdiff
|
||||
[mergetool]
|
||||
keepBackup = false
|
||||
[mergetool "nvimdiff"]
|
||||
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\" \"$MERGED\""
|
||||
[guitool "Add to .gitignore"]
|
||||
cmd = echo \"\n$FILENAME\" >> .gitignore & git add .gitignore
|
||||
needsfile = yes
|
||||
|
|
Loading…
Add table
Reference in a new issue