-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
33 lines (27 loc) · 897 Bytes
/
init.lua
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
-- ~/.config/nvim/init.lua
-- https://neovim.io/doc/user/nvim.html#nvim-from-vim ,
vim.opt.runtimepath:prepend("~/.vim")
vim.opt.runtimepath:append("~/.vim/after")
vim.opt.packpath = vim.opt.runtimepath:get()
vim.cmd("source ~/.vimrc")
-- auto format on save by :w ,
--vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = "*",
-- callback = function()
-- vim.lsp.buf.format({ async = false })
-- end
--})
-- ~/.config/nvim/pack/nvim/start/nvim-lspconfig/lua/lspconfig/
--require'lspconfig'.clangd.setup{}
-- ~/.config/nvim/pack/nvim/start/aerial.nvim/lua/aerial/
--require("aerial").setup({
-- layout = {
-- width = 25,
-- },
-- autojump = true,
--})
-- leader key is backslash \ so use \a in normal mode
--vim.keymap.set("n", "<leader>a", "<cmd>AerialToggle<CR>")
-- ~/.config/nvim/pack/nvim/start/nvim-treesitter/lua/nvim-treesitter/
--require'nvim-treesitter'.setup{}
--