-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
44 lines (36 loc) · 1.24 KB
/
init.lua
File metadata and controls
44 lines (36 loc) · 1.24 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
-- Default Options --
-- Numbers
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.numberwidth = 4 -- set number column width to 2 {default 4}
-- Split
vim.o.splitbelow = true
vim.o.splitright = true
vim.opt.backup = false -- creates a backup file
vim.opt.clipboard = 'unnamedplus' -- allows neovim to access the system clipboard
vim.opt.mouse = 'a' -- allow the mouse to be used in neovim
-- UI
-- vim.opt.showtabline = 2
vim.o.ls = 0 -- last status
-- vim.o.ch = 0 -- command height
-- vim.o.winbar = "%f"
vim.opt.cursorline = true -- highlight the current line
vim.opt.showmode = false
vim.opt.wrap = true -- display lines as one long line
-- Tab behavior
vim.opt.tabstop = 4 -- insert 2 spaces for a tab
vim.opt.shiftwidth = 4
vim.opt.expandtab = true -- convert tabs to spaces
vim.opt.ignorecase = true -- ignore case in search patterns
vim.opt.smartcase = true -- smart case
vim.g.mapleader = ' '
vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
vim.opt.foldenable = false
vim.opt.guifont = "monospace:h17"
vim.keymap.set('n', '<leader>fa', function()
local api = vim.api
local current_window = api.nvim_get_current_win()
api.nvim_win_set_option(current_window, 'foldenable', true)
end)
require('plugins')