-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
34 lines (27 loc) · 790 Bytes
/
init.lua
File metadata and controls
34 lines (27 loc) · 790 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
-- Begin init.vim for Visual Studio Code
-- -- --------------------------------------------------
local fn = vim.fn
local opt = vim.opt
local api = vim.api
-- Basic settings
--using different Shada file for vscode neovim
opt.shadafile = "NONE"
local vscnvim_dir = fn.expand("~/.config/nvim_vscode")
opt.runtimepath:append(vscnvim_dir)
opt.runtimepath:append(vscnvim_dir .. "/lua")
-- Load configs
local configs = {
"vsc_options_base_before",
"vsc_plugins",
"vsc_options_base_after",
"vsc_options_editting",
"vsc_keymaps",
}
for _, config in ipairs(configs) do
require(config)
end
--manage IME
api.nvim_create_autocmd({ "InsertLeave", "FocusGained" }, {
pattern = { "*" },
command = "silent! !" .. fn.expand("~/bin/zenhan.exe") .. " 0",
})