]> apps.delaporte.us Git - dotfiles.git/blob - files/neovim/init.lua
Add functions for quick journal access
[dotfiles.git] / files / neovim / init.lua
1 local nvjournal = require("plugins.nvjournal")
2 nvjournal.setup()
3
4 vim.print("Setup Vundle")
5
6 -- Ensure Vundle is installed
7 local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/Vundle.vim'
8 if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
9 vim.fn.system({'git', 'clone', 'https://github.com/VundleVim/Vundle.vim.git', install_path})
10 end
11
12 -- Initialize Vundle
13 vim.cmd [[
14 set nocompatible " Be iMproved, required
15 filetype off " Required
16
17 " Set the runtime path to include Vundle and initialize
18 set rtp+=~/.vim/bundle/Vundle.vim
19 call vundle#begin()
20
21 " Let Vundle manage Vundle, required
22 Plugin 'VundleVim/Vundle.vim'
23
24 " Add plugins here
25 " For example, to add vim-fugitive:
26 " Plugin 'tpope/vim-fugitive'
27 Plugin 'vim-pandoc/vim-pandoc-syntax'
28
29 call vundle#end() " Required
30 filetype plugin indent on " Required
31
32 augroup pandoc_syntax
33 au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
34 augroup END
35
36
37 let g:pandoc#syntax#conceal#use = 0
38
39 ]]
40
41
42 -- vim.print("what?")
43 vim.opt.number = true
44 vim.g.mapleader = ' '
45
46 vim.api.nvim_set_keymap("n", "<leader>j", ":Note<CR>", { noremap = true, silent = true })
47 vim.api.nvim_set_keymap("n", "<leader>d", ":Note<CR>daily<CR>", { noremap = true, silent = true })
48
49