call plug#begin() " List your plugins here Plug 'projekt0n/github-nvim-theme' Plug 'neovim/nvim-lspconfig' call plug#end() colorscheme github_dark highlight Normal guibg=none ctermbg=none highlight NonText guibg=none ctermbg=none highlight NormalNC guibg=none ctermbg=none lua << EOF require('lspconfig').rust_analyzer.setup({ cmd = { "/usr/bin/rust-analyzer" }, on_attach = function(client, bufnr) -- Enable completion triggered by vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') -- Key mappings local opts = { noremap = true, silent = true } vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', 'lua vim.lsp.buf.hover()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'rn', 'lua vim.lsp.buf.rename()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', 'lua vim.lsp.buf.references()', opts) end, settings = { ["rust-analyzer"] = { cargo = { allFeatures = true, }, procMacro = { enable = true, }, }, }, }) EOF