Skip to content

Commit

Permalink
fix:removed old whichkey mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
v4zha committed Jul 31, 2023
1 parent a1b5baa commit bbb9135
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 65 deletions.
17 changes: 1 addition & 16 deletions .config/nvim/lua/v4zha/keymaps/whichmap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,14 @@ local whichmap = {
name = "Debugger",
b = { "<CMD> lua require('dap').toggle_breakpoint()<CR>", "Toggle BreakPoint" },
c = { "<CMD> lua require('dap').clear_breakpoints()<CR>", "Clear BreakPoints" },
n = { "<CMD> lua require('dap').step_next()<CR>", "Step Next" },
i = { "<CMD> lua require('dap').step_into()<CR>", "Step Into" },
o = { "<CMD> lua require('dap').step_out()<CR>", "Step Out" },
r = { "<CMD> lua require('dap').repl.open()<CR>", "Open Repl" },
k = { "<CMD> lua require('dap').continue()<CR>", "Continue" },
l = { "<CMD> lua require('dap').run_last()<CR>", "Run Last" },
e = { "<CMD> lua require('dap').terminate()<CR>", "terminate Debugger" },

},
p = {
name = "Packer",
c = { "<CMD>PackerCompile<CR>", "Compile" },
i = { "<CMD>PackerInstall<CR>", "Install" },
s = { "<CMD>PackerSync<CR>", "Sync" },
S = { "<CMD>PackerStatus<CR>", "Status" },
u = { "<CMD>PackerUpdate<CR>", "Update" }
},

h = {
name = "Hexokinase",
t = { "<CMD>HexokinaseToggle<CR>", "Toggle Hexokinase" },
f = { "<CMD>HexokinaseTurnOn<CR>", "Turn On Hexokinase" },
g = { "<CMD>HexokinaseTurnOff<CR>", "Turn Off Hexokinase" },
},
l = {
name = "LSP",
a = { "<CMD>lua vim.lsp.buf.code_action()<CR>", "Code Action" },
Expand Down
20 changes: 10 additions & 10 deletions .config/nvim/lua/v4zha/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local plugins = {
{ "nvim-lualine/lualine.nvim" },
{ "nvim-telescope/telescope.nvim" },
{ "MunifTanjim/nui.nvim" },
{ "rcarriga/nvim-notify"},
{ "rcarriga/nvim-notify" },
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v2.x",
Expand Down Expand Up @@ -64,17 +64,17 @@ local plugins = {
},
-- haskell
{ "itchyny/vim-haskell-indent" },
--ui
--ui
-- {"stevearc/dressing.nvim" },
{
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
{
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
}
}
}

}

require("lazy").setup({ plugins })
40 changes: 1 addition & 39 deletions .config/nvim/lua/v4zha/plugins/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,45 +63,7 @@ dap.configurations.rust = {
}
}
local dapui = require('dapui')
dapui.setup({
icons = { expanded = "", collapsed = "" },
mappings = {
open = "o",
remove = "d",
edit = "e",
repl = "r",
toggle = "t",
},
layouts = {
{
elements = {
"scopes",
},
size = 0.3,
position = "right"
},
{
elements = {
"repl",
"breakpoints"
},
size = 0.3,
position = "bottom",
},
},
floating = {
max_height = nil,
max_width = nil,
border = "single",
mappings = {
close = { "q", "<Esc>" },
},
},
windows = { indent = 1 },
render = {
max_type_length = nil,
},
})
dapui.setup({});

vim.fn.sign_define('DapBreakpoint', { text = '', texthl = "DapBreakpoint" })
vim.fn.sign_define('DapStopped', { text = '', texthl = "DapStopped" })
Expand Down

0 comments on commit bbb9135

Please sign in to comment.