Repository navigation
Expand file tree
/
Copy pathinit.lua
More file actions
46 lines (40 loc) · 1.34 KB
/
Copy pathinit.lua
File metadata and controls
46 lines (40 loc) · 1.34 KB
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
vim.loader.enable()
if vim.fn.has("nvim-0.12") == 1 and true then
require("vim._core.ui2").enable({})
else
require("modules.router")
end
vim.keymap.set("", "<Space>", "<Nop>")
vim.g.mapleader = " "
vim.g.maplocalleader = "["
vim.g.python3_host_prog = vim.fn.expand("~/.virtualenvs/neovim/bin/python3")
local orig_getcharstr = vim.fn.getcharstr
vim.fn.getcharstr = function(...) ---@diagnostic disable-line: duplicate-set-field
-- I don't know why, but if send unpacked args, the default behavior is not working
local char = orig_getcharstr(unpack({ ... }))
-- local char = orig_getcharstr()
local u = require("utils")
local ok, lm = pcall(require, "langmapper.utils")
local _, opts = unpack({ ... })
-- keep_layout is custom field for langmapper
if not ok or u.layout.is_en() or (opts and opts.keep_layout) then
return char
end
return lm.translate_keycode(char, "default", "ru")
end
require("user_settings")
require("options")
require("plugins")
require("config.colorscheme")
require("mappings")
require("autocmd")
require("filetype")
require("modules.thincc")
require("modules.git_watcher")
require("modules.progress")
require("modules.autoimport").run()
require("modules.fftt").setup()
require("modules.marks").setup()
require("modules.improve-visual-block").setup()
require("modules.punto-switcher")
require("modules.devcontainer").start()