mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-13 16:59:38 +02:00
update nvim config
This commit is contained in:
parent
e9621eee2f
commit
9ca0b19b6d
|
@ -34,4 +34,9 @@ require("jdtls").start_or_attach {
|
|||
init_options = {
|
||||
bundles = bundle_info.bundles,
|
||||
},
|
||||
|
||||
on_attach = function(client, _)
|
||||
-- formatting is handled by clang-format
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -6,11 +6,18 @@ caps.textDocument.foldingRange = {
|
|||
lineFoldingOnly = true,
|
||||
}
|
||||
|
||||
local function disableFormatter(client, _)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
end
|
||||
|
||||
local lua_runtime_path = vim.split(package.path, ";")
|
||||
table.insert(lua_runtime_path, "lua/?.lua")
|
||||
table.insert(lua_runtime_path, "lua/?/init.lua")
|
||||
|
||||
lspc.clangd.setup { capabilities = caps }
|
||||
lspc.clangd.setup {
|
||||
capabilities = caps,
|
||||
on_attach = disableFormatter,
|
||||
}
|
||||
lspc.cssls.setup { capabilities = caps }
|
||||
lspc.elixirls.setup {
|
||||
capabilities = caps,
|
||||
|
@ -55,4 +62,3 @@ lspc.sumneko_lua.setup {
|
|||
lspc.taplo.setup { capabilities = caps }
|
||||
lspc.yamlls.setup { capabilities = caps }
|
||||
lspc.zls.setup { capabilities = caps }
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ aerial.setup {
|
|||
backends = { "lsp", "treesitter", "markdown", "man" },
|
||||
}
|
||||
|
||||
map("n", "-a", "<cmd>AerialToggle<CR>", { noremap = true, silent = true })
|
||||
map("n", "-o", "<cmd>AerialToggle<CR>", { noremap = true, silent = true })
|
||||
|
|
Loading…
Reference in a new issue