broken, somewhata

This commit is contained in:
sadanslargehole 2024-03-21 15:49:14 -04:00
parent f5c8df2248
commit 297db60cf3
No known key found for this signature in database
GPG key ID: B2E2F4A5161A7800
3 changed files with 34 additions and 5 deletions

View file

@ -45,7 +45,7 @@ vim.keymap.set("n", "<C-]>", "zo", {})
-- clangd switch source/header
vim.keymap.set({ "i", "n" }, "<A-o>", vim.cmd.ClangdSwitchSourceHeader, { silent = true })
-- goto mappings
vim.keymap.set({"i", "n"}, "gd", vim.lsp.buf.definition, {})
vim.keymap.set({"i", "n"}, "gD", vim.lsp.buf.declaration, {})
vim.keymap.set({"i", "n"}, "gi", vim.lsp.buf.implementation, {})
vim.keymap.set({"i", "n"}, "<C-.>", vim.lsp.buf.code_action, {})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, {})
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, {})
vim.keymap.set("n", "<C-.>", vim.lsp.buf.code_action, {})

View file

@ -21,11 +21,34 @@ require("formatter").setup({
}
end,
},
java = {
require("formatter.filetypes.java").clangformat,
function()
return {
exe = "clang-format",
args = {
"--style=Google",
"--assume-filename=.java",
},
stdin = true,
}
end,
},
-- Formatter configurations for filetype "lua" go here
-- and will be executed in order
typescript = {
require("formatter.filetypes.typescript").eslint_d,
util.copyf(defaults.eslint_d),
function()
return {
args = {
"--stdin",
"--fix-to-stdout",
},
exe = "eslint_d",
stdin = true,
try_node_modules = true,
}
end,
},
cpp = {
require("formatter.filetypes.c").clangformat,

View file

@ -26,6 +26,12 @@ require("lspconfig").clangd.setup({
"--header-insertion=iwyu",
},
})
require("lspconfig").prismals.setup({
capabilities = capabilities,
})
require("lspconfig").asm_lsp.setup({
capabilities = capabilities,
})
require("lspconfig").pyright.setup({
capabilities = capabilities,
})