blob: bae20d218378e4b0a6fbdb558b011aa411521560 (
plain)
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
|
local on_attach = require('myConfig.exports').on_attach
require("rust-tools").setup {
server = {
cmd = { vim.g.rust_analyzer_path },
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
},
experimental = {
procAttrMacros = true,
},
},
},
on_attach = on_attach,
},
}
-- TODO: setup nvim-cmp completion score
require("clangd_extensions").setup {
server = {
cmd = { vim.g.clangd_path },
}
}
require("neodev").setup({})
-- Refactoring
require("refactoring").setup {}
-- Vim Pandoc
vim.g["pandoc#formatting#equalprg"] = "pandoc -t markdown --wrap=preserve"
vim.g["pandoc#formatting#extra_equalprg"] = "--reference-links --reference-location=section"
-- Actions preview
require("actions-preview").setup()
|