Skip to content

Commit 0b0e39a

Browse files
added c++ and pythong LSP's
1 parent 34e7d29 commit 0b0e39a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

init.lua

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,9 +658,28 @@ require('lazy').setup({
658658
-- - settings (table): Override the default settings passed when initializing the server.
659659
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
660660
local servers = {
661-
-- clangd = {},
661+
clangd = {
662+
cmd = {
663+
'clangd',
664+
'--background-index', -- build a background index for faster navigation
665+
'--clang-tidy', -- run clang-tidy for linting (if you have clang-tidy installed)
666+
'--completion-style=detailed', -- more detailed auto-completion suggestions
667+
'--header-insertion=never', -- adjust header insertion behavior if needed
668+
},
669+
},
662670
-- gopls = {},
663-
-- pyright = {},
671+
pyright = {
672+
settings = {
673+
python = {
674+
analysis = {
675+
autoSearchPaths = true,
676+
useLibraryCodeForTypes = true,
677+
diagnosticMode = 'workspace', -- or "openFilesOnly" if you prefer less noise
678+
typeCheckingMode = 'basic', -- options: off, basic, strict
679+
},
680+
},
681+
},
682+
},
664683
-- rust_analyzer = {},
665684
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
666685
--

0 commit comments

Comments
 (0)