mirror of https://github.com/zpl-zak/nvimrc
config autoload
parent
6a54d52c34
commit
f9487a7f9a
8
init.lua
8
init.lua
|
@ -1,12 +1,6 @@
|
|||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
require("zak.lazy")
|
||||
require("zak.options")
|
||||
require("zak.keymap")
|
||||
require("zak.treesitter")
|
||||
require("zak.lsp")
|
||||
require("zak.ale")
|
||||
require("zak.ocaml")
|
||||
require("zak")
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
vim.keymap.set('n', '<leader>gs', vim.cmd.Git)
|
|
@ -0,0 +1,10 @@
|
|||
local mark = require('harpoon.mark')
|
||||
local ui = require('harpoon.ui')
|
||||
|
||||
vim.keymap.set('n', '<leader>a', mark.add_file)
|
||||
vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu)
|
||||
|
||||
vim.keymap.set('n', '<C-h>', function () ui.nav_file(1) end)
|
||||
vim.keymap.set('n', '<C-t>', function () ui.nav_file(2) end)
|
||||
vim.keymap.set('n', '<C-n>', function () ui.nav_file(3) end)
|
||||
vim.keymap.set('n', '<C-s>', function () ui.nav_file(4) end)
|
|
@ -0,0 +1 @@
|
|||
vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle)
|
|
@ -0,0 +1,12 @@
|
|||
-- load options
|
||||
require('configs.lazy')
|
||||
require('options')
|
||||
require('keymap')
|
||||
|
||||
-- load configs
|
||||
local config_path = vim.fn.stdpath("config") .. "/lua/zak/configs"
|
||||
for _, file in ipairs(vim.fn.readdir(config_path, [[v:val =~ '\.lua$']])) do
|
||||
if file ~= "lazy.lua" then
|
||||
require("configs."..file:gsub("%.lua$", ""))
|
||||
end
|
||||
end
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'theprimeagen/harpoon'
|
||||
}
|
|
@ -123,4 +123,8 @@ return {
|
|||
'dense-analysis/ale'
|
||||
},
|
||||
|
||||
{
|
||||
'mbbill/undotree'
|
||||
},
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue