blob: 3dea148de32391442e453198c5a2b63b8ff4d1a0 (
plain)
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
48
49
50
51
52
53
54
55
|
-- local autocmd = vim.api.nvim_create_autocmd
-- Auto resize panes when resizing nvim window
-- autocmd("VimResized", {
-- pattern = "*",
-- command = "tabdo wincmd =",
-- })
-- Visual Studio Code
if vim.g.vscode then
-- Plug 'asvetliakov/vim-easymotion', has('nvim') ? {} : { 'on': [] }
vim.cmd [[source $HOME/.config/nvim/vscode/settings.vim]]
vim.cmd [[source $HOME/.config/nvim/vscode/easymotion-config.vim]]
end
vim.g.python3_host_prog = "/usr/bin/python3"
-- vim.g.loaded_python3_provider = 1
local opt = vim.opt
local api = vim.api
-- Background
-- opt.background = "dark"
-- Backspace
opt.backspace = "indent,eol,start"
-- Clipboard
opt.clipboard:append "unnamedplus"
-- Column
opt.colorcolumn = "110"
-- Disable persistent undo for files in /private directory
api.nvim_create_autocmd("BufReadPre", { pattern = "/private/*", command = "set noundofile" })
-- Indenting
opt.autoindent = true
-- line numbers
opt.number = true -- shows absolute line number on cursor line (when relative number is on)local
opt.relativenumber = true -- show relative line numbers
opt.scrolloff = 9
-- Swap file disable
opt.swapfile = false
-- Words
-- opt.iskeyword:append "-" -- consider string-string as whole word
-- Wrap
opt.wrap = false
-- Undo persistent enable for other files
opt.undofile = true
|