diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-06-04 15:25:48 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-06-04 18:38:00 +0800 |
| commit | c3cdc6e002eec05be3bcaa4fb14e5dff06e975da (patch) | |
| tree | a7f8e4865c814a998b1396b6afa9e2c345c1b158 /store/home/config/nvim/lua/setup/lsp/clangd.lua | |
| parent | 4390f309aee8dea8014714d3ef6539f40e10ebd3 (diff) | |
| download | crupest-c3cdc6e002eec05be3bcaa4fb14e5dff06e975da.tar.gz crupest-c3cdc6e002eec05be3bcaa4fb14e5dff06e975da.tar.bz2 crupest-c3cdc6e002eec05be3bcaa4fb14e5dff06e975da.zip | |
config(nvim): new lsp config and use neo-tree.
Diffstat (limited to 'store/home/config/nvim/lua/setup/lsp/clangd.lua')
| -rw-r--r-- | store/home/config/nvim/lua/setup/lsp/clangd.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/store/home/config/nvim/lua/setup/lsp/clangd.lua b/store/home/config/nvim/lua/setup/lsp/clangd.lua deleted file mode 100644 index 6080510..0000000 --- a/store/home/config/nvim/lua/setup/lsp/clangd.lua +++ /dev/null @@ -1,25 +0,0 @@ -local lspconfig = require("lspconfig") - -local brew_clangd_path = "/usr/local/opt/llvm/bin/clangd" - -local function setup() - local clangd = "clangd" - - if vim.uv.fs_stat(brew_clangd_path) ~= nil then - clangd = brew_clangd_path - end - - -- setup lsp clangd - lspconfig.clangd.setup { - cmd = { clangd }, - on_attach = function(_, bufnr) - vim.keymap.set('n', 'grs', "<cmd>ClangdSwitchSourceHeader<cr>", { - buffer = bufnr - }) - end - } -end - -return { - setup = setup -} |
