Compare commits

...

5 Commits

3 changed files with 18 additions and 6 deletions

View File

@@ -9,12 +9,16 @@ return {
{ enabled = true, import = "astrocommunity.pack.cpp" }, { enabled = true, import = "astrocommunity.pack.cpp" },
{ enabled = true, import = "astrocommunity.pack.lua" }, { enabled = true, import = "astrocommunity.pack.lua" },
{ enabled = true, import = "astrocommunity.pack.markdown" }, { enabled = true, import = "astrocommunity.pack.markdown" },
{ enabled = home, import = "astrocommunity.pack.rust" },
{ enabled = home, import = "astrocommunity.pack.bash" }, { enabled = home, import = "astrocommunity.pack.bash" },
{ enabled = home, import = "astrocommunity.pack.rust" },
{ enabled = work, import = "astrocommunity.pack.cs" }, { enabled = work, import = "astrocommunity.pack.cs" },
{ enabled = work, import = "astrocommunity.pack.ps1" }, { enabled = work, import = "astrocommunity.pack.ps1" },
{ enabled = false, import = "astrocommunity.pack.html-css" }, { enabled = false, import = "astrocommunity.pack.html-css" },
{ enabled = false, import = "astrocommunity.pack.java" }, { enabled = false, import = "astrocommunity.pack.java" },
{ enabled = false, import = "astrocommunity.pack.proto" },
{ enabled = false, import = "astrocommunity.pack.wgsl" }, -- WebGLShaderLanguage { enabled = false, import = "astrocommunity.pack.wgsl" }, -- WebGLShaderLanguage
-- DAP -- DAP
@@ -25,7 +29,10 @@ return {
-- Others -- Others
-- { import = "astrocommunity.debugging.nvim-bqf" }, -- { import = "astrocommunity.debugging.nvim-bqf" },
{ import = "astrocommunity.motion.mini-surround" }, -- Surround { import = "astrocommunity.motion.nvim-surround" }, -- Surround
{ import = "astrocommunity.motion.nvim-spider" }, -- Move in subwords
{ import = "astrocommunity.lsp.lsp-signature-nvim" }, -- Support for lsp signatureHelp
{ import = "astrocommunity.lsp.lsplinks-nvim" }, -- Support for document links (needed?)
-- CVS -- CVS
{ import = "astrocommunity.git.diffview-nvim" }, -- Diff { import = "astrocommunity.git.diffview-nvim" }, -- Diff

View File

@@ -5,7 +5,7 @@ return {
opts = { opts = {
features = { features = {
autoformat = false, autoformat = false,
inlay_hints = true, inlay_hints = false, -- BUG: upstream https://github.com/neovim/neovim/issues/27645
}, },
formatting = { formatting = {
format_on_save = { format_on_save = {
@@ -16,7 +16,7 @@ return {
mappings = { mappings = {
n = { n = {
gh = { gh = {
require("clangd_extensions.switch_source_header").switch_source_header, function() require("clangd_extensions.switch_source_header").switch_source_header() end,
desc = "Switch to matching source or header file", desc = "Switch to matching source or header file",
cond = "textDocument/switchSourceHeader", cond = "textDocument/switchSourceHeader",
}, },
@@ -25,7 +25,12 @@ return {
---@diagnostic disable: missing-fields ---@diagnostic disable: missing-fields
config = { config = {
clangd = { clangd = {
cmd = { "clangd", "--header-insertion=never" }, -- Disable auto includes filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
cmd = {
"clangd",
"--header-insertion=never", -- Disable auto includes
"--enable-config", -- Enable .clangd and clangd.yaml files
},
}, },
}, },
}, },

View File

@@ -1,5 +1,5 @@
---@type LazySpec ---@type LazySpec
return { return {
{ "echasnovski/mini.align", event = "User AstroFile" }, -- { "echasnovski/mini.align", event = "User AstroFile" },
{ "tpope/vim-abolish", event = "User AstroFile" }, { "tpope/vim-abolish", event = "User AstroFile" },
} }