mirror of
https://github.com/sadan4/nvim.git
synced 2024-11-16 22:34:39 -05:00
broken, somewhata
This commit is contained in:
parent
f5c8df2248
commit
297db60cf3
3 changed files with 34 additions and 5 deletions
|
@ -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, {})
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue