Update
This commit is contained in:
@@ -10,3 +10,18 @@ profile "with kamwas" {
|
|||||||
|
|
||||||
exec swaymsg focus output DP-2
|
exec swaymsg focus output DP-2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
profile "laptop" {
|
||||||
|
output eDP-1 enable position 0,0
|
||||||
|
|
||||||
|
exec swaymsg focus output eDP-1
|
||||||
|
}
|
||||||
|
|
||||||
|
profile "laptop with kamwas" {
|
||||||
|
output eDP-1 enable position 0,0
|
||||||
|
output HDMI-A-1 enable position 2560,0
|
||||||
|
|
||||||
|
exec swaymsg focus output eDP-1
|
||||||
|
}
|
||||||
|
|||||||
@@ -278,6 +278,7 @@ local servers = {
|
|||||||
'clangd',
|
'clangd',
|
||||||
'erlangls',
|
'erlangls',
|
||||||
'eslint',
|
'eslint',
|
||||||
|
'elixirls',
|
||||||
'gdscript',
|
'gdscript',
|
||||||
-- 'ruby_lsp',
|
-- 'ruby_lsp',
|
||||||
'solargraph',
|
'solargraph',
|
||||||
@@ -291,24 +292,26 @@ local servers = {
|
|||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
|
||||||
|
|
||||||
vim.lsp['*'] = {
|
vim.lsp.config('*', {
|
||||||
flags = {
|
flags = {
|
||||||
debounce_text_changes = 500,
|
debounce_text_changes = 500,
|
||||||
},
|
},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
root_markers = { '.git' },
|
root_markers = { '.git' },
|
||||||
}
|
})
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
vim.lsp.config('elixirls', {
|
||||||
vim.lsp.enable(lsp)
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.lsp['elixirls'] = {
|
|
||||||
cmd = { "elixir-ls" },
|
cmd = { "elixir-ls" },
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
}
|
})
|
||||||
|
|
||||||
|
vim.lsp.config('gdscript', {
|
||||||
|
-- cmd = { "godot", "--editor", "--headless", "--lsp-port", "6005"},
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
-- vim.lsp['rust_analyzer'] = {
|
-- vim.lsp['rust_analyzer'] = {
|
||||||
-- cmd = { "rust-analyzer" },
|
-- cmd = { "rust-analyzer" },
|
||||||
@@ -330,7 +333,7 @@ vim.lsp['elixirls'] = {
|
|||||||
-- }
|
-- }
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
vim.lsp.config['tailwindcss'] = {
|
vim.lsp.config('tailwindcss', {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
@@ -338,7 +341,7 @@ vim.lsp.config['tailwindcss'] = {
|
|||||||
emmetCompletions = true,
|
emmetCompletions = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
-- require('rust-tools').setup({
|
-- require('rust-tools').setup({
|
||||||
-- tools = { -- rust-tools options
|
-- tools = { -- rust-tools options
|
||||||
@@ -371,6 +374,10 @@ vim.lsp.config['tailwindcss'] = {
|
|||||||
-- },
|
-- },
|
||||||
-- })
|
-- })
|
||||||
|
|
||||||
|
for _, lsp in ipairs(servers) do
|
||||||
|
vim.lsp.enable(lsp)
|
||||||
|
end
|
||||||
|
|
||||||
-- textDocument/diagnostic support until 0.10.0 is released
|
-- textDocument/diagnostic support until 0.10.0 is released
|
||||||
_timers = {}
|
_timers = {}
|
||||||
local function setup_diagnostics(client, buffer)
|
local function setup_diagnostics(client, buffer)
|
||||||
|
|||||||
@@ -104,14 +104,14 @@
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: "Iosevka Custom";
|
font-family: "Noto Sans";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The whole bar */
|
/* The whole bar */
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: @bg0_h;
|
background: @bg0_h;
|
||||||
color: @theme_text_color;
|
color: @theme_text_color;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Each module */
|
/* Each module */
|
||||||
@@ -255,7 +255,7 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#custom-taskwarrior {
|
#custom-taskwarrior {
|
||||||
background-color: @warning_color;
|
background-color: @green1;
|
||||||
color: @theme_base_color;
|
color: @theme_base_color;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
@@ -263,7 +263,7 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#custom-playerctl {
|
#custom-playerctl {
|
||||||
background-color: @aqua1;
|
background-color: @blue1;
|
||||||
color: @theme_base_color;
|
color: @theme_base_color;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|||||||
Reference in New Issue
Block a user