forked from chen2073/nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
38 lines (31 loc) · 734 Bytes
/
init.lua
File metadata and controls
38 lines (31 loc) · 734 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
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
vim.o.timeoutlen = 2000
vim.filetype.add({
filename = {
["docker-compose.yml"] = "yaml.docker-compose",
["docker-compose.yaml"] = "yaml.docker-compose",
},
pattern = {
[".*compose.*%.ya?ml"] = "yaml.docker-compose",
},
})
vim.filetype.add({
extension = {
["http"] = "http",
},
})
-- Undercurl
vim.cmd([[let &t_Cs = "\e[4:3m"]])
vim.cmd([[let &t_Ce = "\e[4:0m"]])
require("james.lazy")
require("james.lsp")
require("common")
require("keymaps")
require("commands")
-- right click menu
-- vim.cmd("aunmenu PopUp")
vim.cmd([[
amenu PopUp.Copy\ abs\ Filepath <cmd>let @+ = expand('%:p')<cr>
amenu PopUp.Go\ to\ Definition <cmd>lua vim.lsp.buf.definition()<CR>
]])