GithubHelp home page GithubHelp logo

anurag3301 / my-linux-setup Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 8.0 5.55 MB

Here I store all the Linux dotfiles and installation stuff.

Shell 58.57% Python 18.01% Lua 23.41%
config linux neovim zsh

my-linux-setup's Introduction

PGP: [ E46B6F176910EA41,
      'https://meta.sr.ht/~anurag3301.pgp']

contact: 
    email : [email protected]
    discord : anurag3301#4544
    instagram : anurag.3301
    reddit : anurag3301
    twitter : anurag3301
    linkedIN: /in/anurag3301
    matrix: @anurag3301:matrix.org
    
engg-profiles:
    codeforces : anurag3301
    codeforces-rating: 980(newbie)
    codechef : anurag3301
    codechef-rating: 1520(2 star)

dev-env: 
    editor : neovim
    operating-system : arch linux
    terminal : kitty

stuff-I-know-and-learning: 
    software: [
                'python',
                'C/C++',
                'bash',
                'lua'
              ]
    
    hardware:
        arduino: ['UNO', 'Mega', 'ProMicro', 'Nano']
        esp: ['NodeMCU', 'ESP8266', 'BoltIOT']
        RPi: ['Pi3 b+', 'Pi4 4GB', 'Pico MCU']
        STM32: ['STM32F401CCU6']

@anurag3301's Holopin board

my-linux-setup's People

Contributors

anurag3301 avatar bhushan avatar fiercearyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

my-linux-setup's Issues

Hide extra text on top of the prompt while using runner.lua

I pasted the codes related to runner.lua to my config file but it shows some extra text at the top of the prompt. How to hide it ?

local run_command_table = {
  ['cpp'] = 'g++ % -o %:r && ./%:r',
  ['c'] = 'gcc % -o %:r && ./%:r',
  ['python'] = 'python %',
  ['lua'] = 'lua %',
  ['java'] = 'javac % && java %:r',
  ['zsh'] = 'zsh %',
  ['sh'] = 'sh %',
  ['rust'] = 'rustc % && ./%:r',
  ['go'] = 'go run %',
  ['javascript'] = 'node %'
}

local extra = 'echo \"\\\\n\\\\033[0;33mPlease Press ENTER to continue \\\\033[0m\"; read; exit;'

function run_code()
  if (run_command_table[vim.bo.filetype]) then
    vim.cmd("2TermExec cmd='" .. run_command_table[vim.bo.filetype] .. "; " .. extra .. "' direction=float")
  else
    print("\nFileType not supported\n")
  end
end

-- Use the following function to update the execution command of a filetype temporarly
-- Usage :lua update_command_table(filetype) --OR-- :RunUpdate filetype
-- Example :RunUpdate python
function update_command_table(filetype)
  local command

  if (run_command_table[filetype]) then
    command = vim.fn.input(string.format("Update run command of filetype (%s): ", filetype),
      run_command_table[filetype], 'file')
  else
    command = vim.fn.input(string.format("Add new run command of filetype (%s): ", filetype))
  end

  if (#command ~= 0) then
    run_command_table[filetype] = command
    print("  Updated!")
  end
end

vim.cmd('command! Run :lua run_code()')

vim.cmd('command! -nargs=1 RunUpdate :lua update_command_table(<f-args>)')

vim.api.nvim_set_keymap('n', '<F5>', ':Run<CR>', { noremap = true, silent = true })
g++ hw.cpp -o hw && ./hw; echo "\n\033[0;33mPlease Press ENTER to continue \033[0m"; read; exit;
โžœ  ~ g++ hw.cpp -o hw && ./hw; echo "\n\033[0;33mPlease Press ENTER to continue \033[0m"; read; exit;

Turn of creation of .ccls-cache

The project file gets cluttered with .ccls-cache directory, Either turn it off or store it in somewhere else rather than the project root directory.

Nvim-Tree problems

When configuring the neovim config, it shows this error.
300322121843
How would I go about fixing this. Thanks again

Dashboard config not loading correctly

Hi, I've just installed your nvim configs and run PackerClean, PackerInstall, and PackerSync.

Though the dashboard seems to be default with the config not being loaded.

Screenshot_20220728_153400

When I run :lua print(vim.g.dashboard_default_executive), it prints telescope. And :lua print(vim.g.dashboard_custom_header[2]) seems to also be correct, so I'm not sure why the dashboard might not be using these settings, any ideas?

ModKey

Hi, What is the default modkey? I'm assuming it would be the windows key but none of the provided keybinds work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.