mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-14 09:18:50 +02:00
update nvim config
This commit is contained in:
parent
3e0e403f6a
commit
8274e984f3
|
@ -14,6 +14,7 @@ lspc.eslint.setup { capabilities = caps }
|
|||
lspc.html.setup { capabilities = caps }
|
||||
lspc.jsonls.setup { capabilities = caps }
|
||||
lspc.ocamllsp.setup { capabilities = caps }
|
||||
lspc.prosemd_lsp.setup { capabilities = caps }
|
||||
lspc.rust_analyzer.setup { capabilities = caps }
|
||||
lspc.sumneko_lua.setup {
|
||||
capabilities = caps,
|
||||
|
|
13
.config/nvim/lua/pluginconf/norg.lua
Normal file
13
.config/nvim/lua/pluginconf/norg.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
local norg = require "neorg"
|
||||
|
||||
norg.setup {
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.norg.concealer"] = {},
|
||||
["core.norg.completion"] = {
|
||||
config = {
|
||||
engine = "nvim-cmp",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -36,6 +36,7 @@ cmp.setup {
|
|||
{ name = "buffer" },
|
||||
{ name = "crates" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "neorg" },
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "path" },
|
||||
{ name = "rg", option = { additional_arguments = "--max-depth 4" } },
|
||||
|
|
|
@ -12,8 +12,24 @@ parser_config.haxe = {
|
|||
filetype = "haxe",
|
||||
}
|
||||
|
||||
parser_config.norg_meta = {
|
||||
install_info = {
|
||||
url = "https://github.com/nvim-neorg/tree-sitter-norg-meta",
|
||||
files = { "src/parser.c" },
|
||||
branch = "main",
|
||||
},
|
||||
}
|
||||
|
||||
parser_config.norg_table = {
|
||||
install_info = {
|
||||
url = "https://github.com/nvim-neorg/tree-sitter-norg-table",
|
||||
files = { "src/parser.c" },
|
||||
branch = "main",
|
||||
},
|
||||
}
|
||||
|
||||
configs.setup {
|
||||
ensure_installed = { "haxe" },
|
||||
ensure_installed = { "haxe", "norg", "norg_meta", "norg_table" },
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
|
|
@ -132,5 +132,10 @@ return require("packer").startup(function(use)
|
|||
end,
|
||||
}
|
||||
|
||||
use {
|
||||
"nvim-neorg/neorg",
|
||||
config = pconf "norg",
|
||||
}
|
||||
|
||||
cmp_plugins(use)
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue