Skip to content

Commit

Permalink
nvim: rust support
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Aug 12, 2024
1 parent 8a59f79 commit bfebbca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/nvim/lua/plugins/nvim-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ return {
})
end

local default_capabilities = require("cmp_nvim_lsp").default_capabilities()
lspconfig["rust_analyzer"].setup({
on_attach = on_attach,
flags = flags,
capabilities = default_capabilities,
})

lspconfig["clangd"].setup({
on_attach = on_attach,
flags = flags,
Expand Down
1 change: 1 addition & 0 deletions packages/pkglist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ ripgrep
rofi
rsync
ruby
rust-analyzer
rustup
s-nail
sd
Expand Down

0 comments on commit bfebbca

Please sign in to comment.