forked from sauloperez/neovim_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
32 lines (26 loc) · 749 Bytes
/
init.lua
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
-- local autocmd = vim.api.nvim_create_autocmd
-- Auto resize panes when resizing nvim window
-- autocmd("VimResized", {
-- pattern = "*",
-- command = "tabdo wincmd =",
-- })
--
local enable_providers = {
"python3",
}
-- Enabling providers
for _, plugin in pairs(enable_providers) do
local provider = plugin .. "_provider"
vim.g["loaded_" .. provider] = nil
vim.cmd("runtime " .. provider)
end
vim.g.python3_host_prog = vim.env.HOME .. "/.local/share/pynvim/bin/python"
-- Disabling mouse
vim.opt.clipboard = ""
-- vim.g.loaded_clipboard_provider = "1"
vim.opt.mouse = ""
-- code folding with treesitter
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevel = 99
vim.opt.colorcolumn = "80"