forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
47 lines (39 loc) · 1.58 KB
/
init.lua
File metadata and controls
47 lines (39 loc) · 1.58 KB
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
-- Multi Line Comment Example
--[[
--]]
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
require('custom/core/lazy')
require('custom/core/telescope')
require('custom/core/treesitter')
require('custom/core/lsp')
require('custom/core/toggleterm')
require('custom/core/keymaps')
require('custom/core/enable_light')
require('custom/plugins/markdown')
require('custom/core/markdown')
vim.o.guifont = "AurulentSansM Nerd Font"
-- Setting up Tokyo night color scheme
vim.cmd [[colorscheme tokyonight-moon]]
-- Telescope setup
local builtin = require('telescope.builtin')
vim.opt.hlsearch = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<C-f>', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
vim.opt.cursorline = true
vim.o.guicursor = table.concat({
--"n-v-c:block-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
"i-ci:ver30-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100",
-- "r:hor50-Cursor/lCursor-blinkwait100-blinkon100-blinkoff100"
}, ",")
-- local set = vim.opt -- set options
vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting
vim.o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
vim.opt.expandtab = true -- Use Spaces instead of tabs