mirror of
https://github.com/sadan4/nvim.git
synced 2025-06-09 05:13:01 -04: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
|
-- clangd switch source/header
|
||||||
vim.keymap.set({ "i", "n" }, "<A-o>", vim.cmd.ClangdSwitchSourceHeader, { silent = true })
|
vim.keymap.set({ "i", "n" }, "<A-o>", vim.cmd.ClangdSwitchSourceHeader, { silent = true })
|
||||||
-- goto mappings
|
-- goto mappings
|
||||||
vim.keymap.set({"i", "n"}, "gd", vim.lsp.buf.definition, {})
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
|
||||||
vim.keymap.set({"i", "n"}, "gD", vim.lsp.buf.declaration, {})
|
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, {})
|
||||||
vim.keymap.set({"i", "n"}, "gi", vim.lsp.buf.implementation, {})
|
vim.keymap.set("n", "gi", vim.lsp.buf.implementation, {})
|
||||||
vim.keymap.set({"i", "n"}, "<C-.>", vim.lsp.buf.code_action, {})
|
vim.keymap.set("n", "<C-.>", vim.lsp.buf.code_action, {})
|
||||||
|
|
|
@ -21,11 +21,34 @@ require("formatter").setup({
|
||||||
}
|
}
|
||||||
end,
|
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
|
-- Formatter configurations for filetype "lua" go here
|
||||||
-- and will be executed in order
|
-- and will be executed in order
|
||||||
typescript = {
|
typescript = {
|
||||||
require("formatter.filetypes.typescript").eslint_d,
|
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 = {
|
cpp = {
|
||||||
require("formatter.filetypes.c").clangformat,
|
require("formatter.filetypes.c").clangformat,
|
||||||
|
|
|
@ -26,6 +26,12 @@ require("lspconfig").clangd.setup({
|
||||||
"--header-insertion=iwyu",
|
"--header-insertion=iwyu",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
require("lspconfig").prismals.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
|
require("lspconfig").asm_lsp.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
})
|
||||||
require("lspconfig").pyright.setup({
|
require("lspconfig").pyright.setup({
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue