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 | 166bdbc8bfb89b007b1a9ede885af5582074481c (patch) | |
tree | 1fce9604b083d0e13d3b64815642f40639ba8546 /store/home/config/nvim/lua/setup/lsp/clangd.lua | |
parent | 447b2d7b59333766ddc434e7a48320ed555bb8fd (diff) | |
download | crupest-166bdbc8bfb89b007b1a9ede885af5582074481c.tar.gz crupest-166bdbc8bfb89b007b1a9ede885af5582074481c.tar.bz2 crupest-166bdbc8bfb89b007b1a9ede885af5582074481c.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 -} |