Commit graph

8 commits

Author SHA1 Message Date
b7796e9a5e small refactor to lsp.lua (lsp/setup.lua), rename lsp/language_servers
-> lsp/servers. utils now has a function for "get_file_names_in_dir"
2025-01-11 18:01:15 +01:00
7e4f69c48f Major lsp overhaul. Use new 0.11+ apis, remove lspconfig, remove lots of
mason/lspconfig util plugins. Currently supports following lsps: gopls,
clangd, lua-language-server, cmake-language-server
2025-01-11 00:58:02 +01:00
Martin Larsson
8744c577ae Fix so clang receives the congifured parameters correctly. 2024-10-24 19:07:12 +02:00
Martin Larsson
1e18e2d419 Change to blink over cmp, improve mason so that we don't need configs
for each language server. We only override the set keys in the custom
    lsp config if it exists, otherwise we rely on the default one from
    lspconfig.
2024-10-20 03:40:10 +02:00
Martin Larsson
2b1009e9f3 Change from 'edit' to 'drop' when switching from header/source in clang 2024-09-21 16:49:12 +02:00
Martin Larsson
822d397635 Update clang from lspconfig, fix keybinds for header/source switching
and symbol info. Also start clang with more and different options for
better handling in larger projects:

+            "--background-index",         -- Enables background indexing
+            "--clang-tidy",               -- Enables clang-tidy diagnostics
+            "--completion-style=bundled", -- Simpler completions for faster performance
+            "--rename-file-limit=0",      -- No limit on renaming files
+            "--header-insertion=iwyu",    -- Suggest missing includes based on IWYU
+            "--inlay-hints",              -- Enable inlay hints for parameter and type information
+            "--limit-results=70",         -- Limit autocompletion and symbol results
+            "--suggest-missing-includes", -- Still show missing includes suggestions
+            "--pch-storage=disk",         -- Stores precompiled headers on disk (fixes the issue where system ran out of memory when indexing large projects, not a huge performance hit on fast m2 ssds)
+            "--log=error",                -- Log only errors
2024-09-21 16:45:34 +02:00
Martin Larsson
34585fee74 Revert to default dir for compile-commands-dir, more cross project
friendly to just create a symlink to the root instead as part of the gen
step.
2024-08-28 23:15:23 +02:00
bc87253453 Setup the directory structure to handle both mac and linux, and stowing with only one command, well two, one for the OS specific dir as well. 2024-04-19 01:19:38 +02:00
Renamed from nvim/lua/language_servers/clangd.lua (Browse further)