delete old vim file

This commit is contained in:
Stachelbeere1248 2025-07-13 18:39:05 +02:00
parent a50a16e10e
commit 14be66dc2c
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -1,40 +0,0 @@
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 <C-x><C-o>
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', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>rn', '<Cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<Cmd>lua vim.lsp.buf.references()<CR>', opts)
end,
settings = {
["rust-analyzer"] = {
cargo = {
allFeatures = true,
},
procMacro = {
enable = true,
},
},
},
})
EOF