Skip to content

Commit

Permalink
Added new workflow png and borders to the windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BitInByte committed Mar 24, 2023
1 parent 7274dcb commit 6ebc11d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
7 changes: 3 additions & 4 deletions nvim/lua/core/cmp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ local lspkind = require("lspkind")
-- return
-- end

local luasnip_loaders = require("luasnip.loaders.from_vscode")

local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
Expand Down Expand Up @@ -104,11 +102,11 @@ cmp.setup({
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "nvim_lua" },
{ name = "luasnip" }, -- For luasnip users.
{ name = "nvim_lsp_signature_help" },
{ name = "nvim_lua" },
{ name = "path" },
{ name = "calc" },
{ name = "nvim_lsp_signature_help" },
-- { name = "buffer" },
}, {
{
Expand Down Expand Up @@ -171,4 +169,5 @@ cmp.setup.cmdline(":", {
}),
})

local luasnip_loaders = require("luasnip.loaders.from_vscode")
luasnip_loaders.lazy_load()
2 changes: 1 addition & 1 deletion nvim/lua/core/mason/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "tsserver", "jdtls", "angularls" },
ensure_installed = { "lua_ls", "tsserver", "jdtls", "angularls", "bashls" },
automatic_installation = true,
})
require("mason-nvim-dap").setup({
Expand Down
4 changes: 3 additions & 1 deletion skhd/skhdrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ alt - h : yabai -m window --focus west
alt - l : yabai -m window --focus east

alt - tab : yabai -m window --focus next || yabai -m window --focus prev
alt + shift - tab : yabai -m window --focus prev || yabai -m window --focus next
# alt - tab : yabai -m window --focus "$(yabai -m query --windows | jq -re "sort_by(.display, .space, .frame.x, .frame.y, .id) | map(select(.\"is-visible\" == true and .role != \"AXUnknown\")) | reverse | nth(index(map(select(.\"has-focus\" == true))) - 1).id")"
# alt - tab : yabai -m window --focus "$(yabai -m query --windows --space | jq -re "[sort_by(.id, .frame) | reverse | .[] | select(.role == \"AXWindow\" and .subrole == \"AXStandardWindow\") | .id] | nth(index($(yabai -m query --windows --window | jq -re ".id")) - 1)")"
# alt + shift - tab : yabai -m window --focus prev || yabai -m window --focus next

# change focus between external displays (left and right)
alt - H : yabai -m display --focus west
Expand Down
Binary file modified workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions yabai/yabairc
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/usr/bin/env sh
# bsp, stack or float
yabai -m config layout bsp

yabai -m config window_placement second_child

# yabai -m config window_shadow on
yabai -m config window_border on
yabai -m config window_border_width 4
# yabai -m config active_window_opacity 1.0
# yabai -m config normal_window_opacity 0.90

# padding
yabai -m config top_padding 8
yabai -m config bottom_padding 8
Expand All @@ -29,6 +36,8 @@ yabai -m rule --add app="^Discord$" manage=off
yabai -m rule --add app="^App Store$" manage=off
yabai -m rule --add app="^Finder$" manage=off
yabai -m rule --add app="^Music$" manage=off
yabai -m rule --add app="^OpenVPN Connect$" manage=off
# yabai -m rule --add app="^Karabiner-Elements$" manage=off


echo 'yabai configuration loaded...'

0 comments on commit 6ebc11d

Please sign in to comment.