-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
43 lines (35 loc) · 1001 Bytes
/
Copy pathinit.lua
File metadata and controls
43 lines (35 loc) · 1001 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
vim.g.mapleader = " "
vim.g.maplocalleader = " "
vim.o.background = "dark"
require "config.lazy"
require "keybindings"
require "diagnostics"
require "options"
require "autocomplete"
require "testing"
vim.g.python3_host_prog = os.getenv "HOME" .. "/.nvim-venv/bin/python3"
require("large-files").setup {
size = 1048576, -- Default size (1 MB)
filetypes = {
json = 1048576,
xml = 2097152,
},
}
-- hide tilde for empty lines
vim.cmd [[hi NonText guifg=bg]]
local in_wsl = os.getenv "WSL_DISTRO_NAME" ~= nil
if in_wsl then
local script_path = vim.fn.stdpath "config" .. "/nvim_paste"
vim.g.clipboard = {
name = "wsl clipboard",
copy = { ["+"] = { "clip.exe" }, ["*"] = { "clip.exe" } },
paste = { ["+"] = { script_path }, ["*"] = { script_path } },
cache_enabled = true,
}
end
if pcall(require, "live_prices") then
require("live_prices").setup()
end
if pcall(require, "pomodoro") then
require("pomodoro").setup()
end