Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9bd8611e5 | ||
|
|
c0d0bd3d30 |
No files matched your search
@@ -4,19 +4,14 @@ window-rule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="steam"
|
match app-id="steam" title=r#"^Steam$"#
|
||||||
exclude title=r#"^[Ss]team$"#
|
open-maximized true
|
||||||
open-floating true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"qalculate-qt$"#
|
match app-id="steam"
|
||||||
|
exclude title=r#"^[Ss]team$"#
|
||||||
open-floating true
|
open-floating true
|
||||||
open-fullscreen false
|
|
||||||
|
|
||||||
default-column-width { proportion 0.2; }
|
|
||||||
default-window-height { proportion 0.2; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
@@ -42,6 +37,16 @@ window-rule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"qalculate-qt$"#
|
||||||
|
|
||||||
|
open-floating true
|
||||||
|
open-fullscreen false
|
||||||
|
|
||||||
|
default-column-width { proportion 0.2; }
|
||||||
|
default-window-height { proportion 0.2; }
|
||||||
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="librewolf" title="Picture-in-Picture"
|
match app-id="librewolf" title="Picture-in-Picture"
|
||||||
|
|
||||||
|
|||||||
@@ -1,43 +1,44 @@
|
|||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = {
|
virtual_text = false,
|
||||||
spacing = 2,
|
virtual_lines = {
|
||||||
source = "if_many",
|
spacing = 2,
|
||||||
prefix = "●",
|
source = "if_many",
|
||||||
},
|
prefix = "●",
|
||||||
signs = true,
|
},
|
||||||
update_in_insert = true,
|
signs = true,
|
||||||
severity_sort = true,
|
update_in_insert = true,
|
||||||
float = {
|
severity_sort = true,
|
||||||
border = "rounded",
|
float = {
|
||||||
source = true,
|
border = "rounded",
|
||||||
},
|
source = true,
|
||||||
jump = {
|
},
|
||||||
wrap = true,
|
jump = {
|
||||||
on_jump = function(_, bufnr)
|
wrap = true,
|
||||||
vim.diagnostic.open_float({
|
on_jump = function(_, bufnr)
|
||||||
bufnr = bufnr,
|
vim.diagnostic.open_float({
|
||||||
scope = "cursor",
|
bufnr = bufnr,
|
||||||
focus = false,
|
scope = "cursor",
|
||||||
})
|
focus = false,
|
||||||
end,
|
})
|
||||||
},
|
end,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.fn.sign_define('DapBreakpoint', {
|
vim.fn.sign_define('DapBreakpoint', {
|
||||||
text = '⚪',
|
text = '⚪',
|
||||||
texthl = 'DapBreakpointSymbol',
|
texthl = 'DapBreakpointSymbol',
|
||||||
linehl = 'DapBreakpoint',
|
linehl = 'DapBreakpoint',
|
||||||
numhl = 'DapBreakpoint'
|
numhl = 'DapBreakpoint'
|
||||||
})
|
})
|
||||||
vim.fn.sign_define('DapStopped', {
|
vim.fn.sign_define('DapStopped', {
|
||||||
text = '🔴',
|
text = '🔴',
|
||||||
texthl = 'yellow',
|
texthl = 'yellow',
|
||||||
linehl = 'DapBreakpoint',
|
linehl = 'DapBreakpoint',
|
||||||
numhl = 'DapBreakpoint'
|
numhl = 'DapBreakpoint'
|
||||||
})
|
})
|
||||||
vim.fn.sign_define('DapBreakpointRejected', {
|
vim.fn.sign_define('DapBreakpointRejected', {
|
||||||
text = '⭕',
|
text = '⭕',
|
||||||
texthl = 'DapStoppedSymbol',
|
texthl = 'DapStoppedSymbol',
|
||||||
linehl = 'DapBreakpoint',
|
linehl = 'DapBreakpoint',
|
||||||
numhl = 'DapBreakpoint'
|
numhl = 'DapBreakpoint'
|
||||||
})
|
})
|
||||||
@@ -56,6 +56,14 @@ vim.keymap.set("n", "<C-w>-", "<cmd>split<cr>", { desc = "Split window horizonta
|
|||||||
vim.keymap.set("n", "<C-w>|", "<cmd>vsplit<cr>", { desc = "Split window vertically" })
|
vim.keymap.set("n", "<C-w>|", "<cmd>vsplit<cr>", { desc = "Split window vertically" })
|
||||||
|
|
||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
|
vim.keymap.del("n", "<C-w>d") -- remove default
|
||||||
|
vim.keymap.del("n", "<C-w><C-d>") -- remove default
|
||||||
|
vim.keymap.set("n", "<leader>bvl",
|
||||||
|
function()
|
||||||
|
local new_config = not vim.diagnostic.config().virtual_lines
|
||||||
|
vim.diagnostic.config({ virtual_lines = new_config })
|
||||||
|
end,
|
||||||
|
{ desc = "Toggle diagnostic virtual_lines for buffer" })
|
||||||
vim.keymap.set("n", "<leader>ld", vim.diagnostic.open_float, { desc = "Show line diagnostics" })
|
vim.keymap.set("n", "<leader>ld", vim.diagnostic.open_float, { desc = "Show line diagnostics" })
|
||||||
vim.keymap.set("n", "]d", function() vim.diagnostic.jump({ count = vim.v.count1 }) end, { desc = "Next diagnostic" })
|
vim.keymap.set("n", "]d", function() vim.diagnostic.jump({ count = vim.v.count1 }) end, { desc = "Next diagnostic" })
|
||||||
vim.keymap.set("n", "[d", function() vim.diagnostic.jump({ count = -vim.v.count1 }) end, { desc = "Previous diagnostic" })
|
vim.keymap.set("n", "[d", function() vim.diagnostic.jump({ count = -vim.v.count1 }) end, { desc = "Previous diagnostic" })
|
||||||
|
|||||||
Reference in new issue
Block a user