forked from neovim/neovim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
47 lines (37 loc) · 1.13 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
-- :set noexpandtab
vim.opt.expandtab=false
-- :set ignorecase
vim.opt.ignorecase=true
-- :set number
vim.opt.number=true
-- " Put your own customizations below
-- " Spot tabs and spaces in a file
-- set list listchars=tab:»·,trail:·,nbsp:·
vim.opt.listchars={tab='»·',trail='·',nbsp='·'}
--" this is for easier tab navigation.
--" I might remap leader to the spacebar with let mapleader = " "
--"
-- Mapping keys can be done in lua with: vim.api.nvim_set_keymap(mode, keys, mapping, options)
--noremap <leader>te :tabedit
vim.api.nvim_set_keymap(
"n",
"<leader>te",
":tabedit",
{noremap=true}
)
--noremap <leader>t. :tabedit .<cr>
--noremap <leader>p :tabp<cr>
--noremap <leader>n :tabn<cr>
--"noremap <leader>p :tabm -1<cr>
--"noremap <leader>n :tabm +1<cr>
--
--noremap <C-n> :tabn<cr>
--noremap <C-p> :tabp<cr>
--
-- This creates the path to the home folder. So it
-- would be ~/.local/share/nvim/lazy/lazy.nvim
-- From here we can install lazy.nvim package manager
-- and use that to install plugins like treesitter.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-- io.write("hello world!")
-- io.write(lazypath)