-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
43 lines (36 loc) · 1020 Bytes
/
Copy pathinit.lua
File metadata and controls
43 lines (36 loc) · 1020 Bytes
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
-- Terminal integration
vim.g.have_nerd_font = true
vim.opt.termguicolors = true
-- Line numbers (relative)
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.cursorlineopt = "number"
vim.opt.cursorline = true
-- Indentation
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.smarttab = true
vim.opt.smartindent = true
-- Folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false
vim.opt.foldlevel = 99
vim.opt.conceallevel = 2
-- Shell
vim.opt.shell = "fish"
-- Annoying QOL fixes
vim.opt.fillchars:append { eob = " " }
vim.opt.signcolumn = "yes" -- prevents text shifting
vim.opt.showmode = false
vim.opt.cmdheight = 0
-- The one terminal issue
local function SaveAndExit()
vim.api.nvim_command ":wa"
vim.api.nvim_command ":qa"
end
vim.api.nvim_create_user_command("Wqa", SaveAndExit, {})
vim.api.nvim_set_keymap("c", "wqa", "Wqa", { noremap = true, silent = false })
require "config.mappings"
require "config.lazy"