-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
30 lines (30 loc) · 770 Bytes
/
init.lua
File metadata and controls
30 lines (30 loc) · 770 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
require("config.lazy")
require("config.keymaps")
require("config.options")
require("module.togglelsp")
require("module.toggle-clangtidy")
require("module.toggle-fold-comments")
require("module.toggle-fold-methods")
vim.api.nvim_create_autocmd("FileType", {
pattern = { "c", "cpp", "h", "hpp", "cc", "cxx", "tpp" },
callback = function()
vim.b.did_ftplugin = true -- Empêche sleuth d'agir
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
vim.opt_local.softtabstop = 4
vim.opt_local.expandtab = true
end,
})
vim.filetype.add({
extension = {
ejs = "html",
},
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "solidity",
callback = function()
vim.b.did_ftplugin = true
vim.opt_local.makeprg = ""
vim.opt_local.errorformat = ""
end,
})