Repository navigation
Expand file tree
/
Copy pathexample-config.lua
More file actions
58 lines (50 loc) · 1.58 KB
/
Copy pathexample-config.lua
File metadata and controls
58 lines (50 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
-- Example configuration for ps.nvim
-- Add this to your init.lua or plugins configuration
return {
"jugarpeupv/ps.nvim",
config = function()
require("ps").setup({
-- Optional: customize the ps command
-- ps_cmd = "ps aux",
-- Optional: customize the kill command
-- kill_cmd = "kill -9", -- Use SIGKILL (force kill)
-- kill_cmd = "kill -15", -- Use SIGTERM (graceful termination)
-- Optional: customize PID extraction regex
-- regex_rule = [[\w\+\s\+\zs\d\+\ze]],
-- Optional: customize default sorting ("mem", "cpu", or nil)
-- default_sort = "mem",
-- Optional: customize keymaps for the ps buffer
-- ps_buffer_keymaps = {
-- refresh = "R",
-- kill = "X",
-- inspect = "K",
-- open_proc = "p",
-- quit = "q",
-- filter = "F",
-- pin = "P",
-- port = "O",
-- sort_cpu = "gC",
-- sort_mem = "gm",
-- auto_reload = "gl",
-- help = "g?",
-- },
-- Optional: customize keymaps for the lsof buffer
-- lsof_keymaps = {
-- refresh = "R",
-- kill = "X",
-- inspect = "K",
-- filter = "f",
-- quit = "q",
-- },
-- Optional: customize keymaps for the process inspector buffer
-- inspector_keymaps = {
-- kill = "X",
-- refresh = "R",
-- quit = "q",
-- open_url = "gx",
-- },
})
-- Optional: Create a keybinding to open PS
vim.keymap.set("n", "<leader>ps", "<cmd>PS<cr>", { desc = "Open process viewer" })
end,
}