navigator
spike 2 years ago
parent 656729bab5
commit 3bc618ef3f

@ -1,3 +1,4 @@
-- vim: foldmethod=marker foldlevel=0
-- n, v, i, t, c = mode name.s
local function termcodes(str)
@ -6,7 +7,7 @@ end
local M = {}
M.general = {
M.general = {--{{{
i = {
["jk"] = { "<esc>", "escape"},
@ -190,9 +191,9 @@ M.general = {
["cwd"] = {"lcd %:p:h", "change dir to current file"},
["cd."] = {"lcd %:p:h", "change dir to current file"},
}
}
}--}}}
M.tabufline = {
M.tabufline = {--{{{
plugin = true,
n = {
@ -214,9 +215,9 @@ M.tabufline = {
-- pick buffers via numbers
["<Bslash>"] = { "<cmd> TbufPick <CR>", "Pick buffer" },
},
}
}--}}}
M.comment = {
M.comment = {--{{{
plugin = true,
-- toggle comment in both modes
@ -235,9 +236,9 @@ M.comment = {
"toggle comment",
},
},
}
}--}}}
M.lspconfig = {
M.lspconfig = {--{{{
plugin = true,
-- See `<cmd> :help vim.lsp.*` for documentation on any of the below functions
@ -362,18 +363,18 @@ M.lspconfig = {
"list workspace folders",
},
},
}
}--}}}
M.nvimtree = {
M.nvimtree = {--{{{
plugin = true,
n = {
-- toggle
["<Left>"] = { "<cmd> NvimTreeToggle <CR>", "toggle nvimtree" },
},
}
}--}}}
M.fzf_lua = {
M.fzf_lua = {--{{{
plugin = true,
n = {
@ -395,10 +396,9 @@ M.fzf_lua = {
["<leader>tk"] = { "<cmd> lua require'custom.plugins.fzflua'.keymaps() <CR>", "show keymaps" },
}
}
}--}}}
M.telescope = {
M.telescope = {--{{{
plugin = true,
n = {
@ -425,9 +425,9 @@ M.telescope = {
-- theme switcher
["<leader>th"] = { "<cmd> Telescope themes <CR>", "nvchad themes" },
},
}
}--}}}
M.nvterm = {
M.nvterm = {--{{{
plugin = true,
t = {
@ -486,9 +486,9 @@ M.nvterm = {
"new vertical term",
},
},
}
}--}}}
M.whichkey = {
M.whichkey = {--{{{
plugin = true,
n = {
@ -506,9 +506,9 @@ M.whichkey = {
"which-key query lookup",
},
},
}
}--}}}
M.blankline = {
M.blankline = {--{{{
plugin = true,
n = {
@ -528,18 +528,17 @@ M.blankline = {
"Jump to current_context",
},
},
}
}--}}}
-- Tagbar equivalent with LSP
M.vista = {
M.vista = { -- Tagbar equivalent using LSP {{{
plugin = true,
n = {
["<Right>"] = { "<cmd> Vista!! <CR>", "toggle Vista "} ,
},
}
}--}}}
M.asyncrun = {
M.asyncrun = {--{{{
plugin = true,
n = {
@ -549,6 +548,6 @@ M.asyncrun = {
["<leader>pd"] = {"<cmd> AsyncRun lpr -P PDF_PRINT %<CR>", "PDF print file"},
["<leader>pp"] = {"<cmd> AsyncRun lpr %<CR>"},
},
}
}--}}}
return M

@ -1,5 +1,5 @@
-- vim modeline
-- vim: foldmarker={,} foldmethod=marker
-- vim: foldmarker={,} foldmethod=marker foldlevel=0
-- local augroup = vim.api.nvim_create_augroup
-- local autocmd = vim.api.nvim_create_autocmd

@ -2,7 +2,7 @@ vim.cmd "packadd packer.nvim"
local plugins = {
["nvim-lua/plenary.nvim"] = { module = "plenary" },
["nvim-lua/plenary.nvim"] = { module = "plenary", lock = true },
["wbthomason/packer.nvim"] = {
cmd = require("core.lazy_load").packer_cmds,
config = function()
@ -28,15 +28,15 @@ local plugins = {
end,
},
["NvChad/nvterm"] = {
module = "nvterm",
config = function()
require "plugins.configs.nvterm"
end,
setup = function()
require("core.utils").load_mappings "nvterm"
end,
},
-- ["NvChad/nvterm"] = {
-- module = "nvterm",
-- config = function()
-- require "plugins.configs.nvterm"
-- end,
-- setup = function()
-- require("core.utils").load_mappings "nvterm"
-- end,
-- },
["kyazdani42/nvim-web-devicons"] = {
after = "ui",

Loading…
Cancel
Save