diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 701c688..94394dd 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -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"] = { "", "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 [""] = { " TbufPick ", "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 ` :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 [""] = { " NvimTreeToggle ", "toggle nvimtree" }, }, -} +}--}}} -M.fzf_lua = { +M.fzf_lua = {--{{{ plugin = true, n = { @@ -395,10 +396,9 @@ M.fzf_lua = { ["tk"] = { " lua require'custom.plugins.fzflua'.keymaps() ", "show keymaps" }, } -} +}--}}} - -M.telescope = { +M.telescope = {--{{{ plugin = true, n = { @@ -425,9 +425,9 @@ M.telescope = { -- theme switcher ["th"] = { " Telescope themes ", "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 = { [""] = { " Vista!! ", "toggle Vista "} , }, -} +}--}}} -M.asyncrun = { +M.asyncrun = {--{{{ plugin = true, n = { @@ -549,6 +548,6 @@ M.asyncrun = { ["pd"] = {" AsyncRun lpr -P PDF_PRINT %", "PDF print file"}, ["pp"] = {" AsyncRun lpr %"}, }, -} +}--}}} return M diff --git a/lua/custom/init.lua b/lua/custom/init.lua index 5b840de..9ee1d55 100644 --- a/lua/custom/init.lua +++ b/lua/custom/init.lua @@ -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 diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 823654d..6db5463 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -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",