summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-09-04 17:26:58 -0700
committerGitHub <noreply@github.com>2024-09-04 17:26:58 -0700
commitce15124bb35606c219df336fdb162bed2772303b (patch)
tree154c24ef8800e9b22a9a0167c853036d921a6dea
parentcc90f326b4cc62a693bb6d4e2ddf7d0c3da53321 (diff)
Add files via upload
-rw-r--r--vimrc260
-rw-r--r--zshrc131
2 files changed, 391 insertions, 0 deletions
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..0259cbe
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,260 @@
+set autoindent expandtab tabstop=2 shiftwidth=2 number
+set mouse=a
+set noshowmode
+set termguicolors
+set title
+set smartcase
+filetype plugin on
+
+let g:lightline = {
+ \ 'colorscheme': 'landscape',
+ \ }
+
+call plug#begin()
+
+Plug 'chriskempson/base16-vim'
+Plug 'neovim/nvim-lspconfig'
+Plug 'hrsh7th/cmp-nvim-lsp'
+Plug 'hrsh7th/cmp-buffer'
+Plug 'hrsh7th/cmp-path'
+Plug 'hrsh7th/cmp-cmdline'
+Plug 'hrsh7th/nvim-cmp'
+Plug 'itchyny/lightline.vim'
+Plug 'shawnohare/hadalized.nvim'
+Plug 'preservim/nerdtree'
+Plug 'bignimbus/pop-punk.vim'
+Plug 'romgrk/barbar.nvim'
+Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
+Plug 'nvim-lua/plenary.nvim'
+Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.8' }
+Plug 'hrsh7th/cmp-vsnip'
+Plug 'hrsh7th/vim-vsnip'
+Plug 'TabbyML/vim-tabby'
+Plug 'Yggdroot/indentLine'
+Plug 'johnfrankmorgan/whitespace.nvim'
+
+let g:tabby_keybinding_accept = '<Tab>'
+
+call plug#end()
+
+function! SW()
+ if winnr('$') > 1
+ wincmd w
+ else
+ BufferNext
+ endif
+endfunction
+
+function! Q()
+ if exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1
+ NERDTreeClose
+ else
+ if winnr('$') > 1
+ q
+ else
+ let buffers = filter(range(1, bufnr('$')), 'buflisted(v:val)')
+ if len(buffers) > 1
+ BufferClose
+ else
+ call feedkeys(':q')
+ endif
+ endif
+ endif
+endfunction
+
+nnoremap <C-e> :NERDTree<CR>
+inoremap <C-e> <Esc>:NERDTree<CR>
+vnoremap <C-e> <Esc>:NERDTree<CR>
+
+nnoremap <Esc> :call Q()<CR>
+nnoremap <Tab> :call SW()<CR>
+nnoremap <C-Tab> :BufferNext<CR>
+
+nnoremap <F1> :BufferPick<CR>
+inoremap <F1> <ESC>:BufferPick<CR>
+vnoremap <F1> <ESC>:BufferPick<CR>
+
+nnoremap <F2> :Telescope live_grep<CR>
+nnoremap <C-f> :Telescope current_buffer_fuzzy_find<CR>
+
+nnoremap <F4> :lua ToggleDiagnostics()<CR>
+
+vnoremap <Tab> >gv
+nnoremap <S-Tab> <gv
+inoremap <S-Tab> <C-d>
+vnoremap <S-Tab> <gv
+
+colorscheme base16-synth-midnight-dark
+highlight LineNr guibg=#000000
+highlight Identifier ctermfg=1 guifg=#06ea61
+highlight String ctermfg=1 guifg=#ea5971
+highlight Character ctermfg=1 guifg=#dddddd
+highlight CmpItemKindDefault guifg=#7cede9 guibg=#222222
+highlight Variable guifg=#00FF00 ctermfg=Green
+highlight javaScriptIdentifier guifg=#ff40ff ctermfg=Blue
+highlight Delimiter ctermfg=14 guifg=#f77440
+let g:vim_json_conceal=0
+let g:markdown_syntax_conceal=0
+let g:indentLine_color_term=239
+let g:indentLine_color_gui='#141414'
+
+let NERDTreeQuitOnOpen=1
+
+lua <<EOF
+ -- Set up nvim-cmp.
+ local cmp = require'cmp'
+
+ local diagnostics_enabled = true
+ function ToggleDiagnostics()
+ diagnostics_enabled = not diagnostics_enabled
+ if diagnostics_enabled then
+ vim.diagnostic.enable()
+ print("diagnostics: on")
+ else
+ vim.diagnostic.disable()
+ print("diagnostics: off")
+ end
+ end
+
+ cmp.setup({
+ snippet = {
+ -- REQUIRED - you must specify a snippet engine
+ expand = function(args)
+ vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
+ -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
+ -- require('snippy').expand_snippet(args.body) -- For `snippy` users.
+ -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users.
+ end,
+ },
+ window = {
+ -- completion = cmp.config.window.bordered(),
+ -- documentation = cmp.config.window.bordered(),
+ },
+ mapping = cmp.mapping.preset.insert({
+ -- ['<C-b>'] = cmp.mapping.scroll_docs(-4),
+ -- ['<C-f>'] = cmp.mapping.scroll_docs(4),
+ ['<C-Space>'] = cmp.mapping.abort(),
+ ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
+ }),
+ sources = cmp.config.sources({
+ { name = 'nvim_lsp' },
+ { name = 'vsnip' }, -- For vsnip users.
+ -- { name = 'luasnip' }, -- For luasnip users.
+ -- { name = 'ultisnips' }, -- For ultisnips users.
+ -- { name = 'snippy' }, -- For snippy users.
+ }, {
+ { name = 'buffer' },
+ })
+ })
+
+ -- Set configuration for specific filetype.
+ cmp.setup.filetype('gitcommit', {
+ sources = cmp.config.sources({
+ { name = 'git' }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
+ }, {
+ { name = 'buffer' },
+ })
+ })
+
+ -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
+ cmp.setup.cmdline({ '/', '?' }, {
+ mapping = cmp.mapping.preset.cmdline(),
+ sources = {
+ { name = 'buffer' }
+ }
+ })
+
+ -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
+ cmp.setup.cmdline(':', {
+ mapping = cmp.mapping.preset.cmdline(),
+ sources = cmp.config.sources({
+ { name = 'path' }
+ }, {
+ { name = 'cmdline' }
+ })
+ })
+
+
+ -- Set up lspconfig.
+ local capabilities = require('cmp_nvim_lsp').default_capabilities()
+ -- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
+ require('lspconfig')['clangd'].setup {
+ capabilities = capabilities
+ }
+
+ require('lspconfig')['tsserver'].setup {
+ capabilities = capabilities
+ }
+
+ require('lspconfig')['intelephense'].setup {
+ capabilities = capabilities
+ }
+
+ require('lspconfig')['jdtls'].setup {
+ capabilities = capabilities
+ }
+
+ require('barbar').setup {
+ animation = false,
+ icons = {
+ filetype = {
+ enabled = false
+ }
+ },
+ minimum_padding = 1,
+ maximum_padding = 1,
+ }
+
+ vim.diagnostic.config({
+ signs = false
+ })
+
+ require('whitespace-nvim').setup({
+ highlight = 'Underlined',
+ ignored_filetypes = { 'TelescopePrompt', 'Trouble', 'help', 'dashboard' },
+ -- `ignore_terminal` configures whether to ignore terminal buffers
+ ignore_terminal = true,
+ })
+
+ require'nvim-treesitter.configs'.setup {
+ -- A list of parser names, or "all" (the listed parsers MUST always be installed)
+ ensure_installed = { "c", "cpp", "javascript", "lua", "vim", "vimdoc", "java", "query", "markdown", "markdown_inline" },
+
+ -- Install parsers synchronously (only applied to `ensure_installed`)
+ sync_install = false,
+
+ -- Automatically install missing parsers when entering buffer
+ -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
+ auto_install = true,
+
+ -- List of parsers to ignore installing (or "all")
+
+ ---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
+ -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
+
+ highlight = {
+ enable = true,
+
+ -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
+ -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
+ -- the name of the parser)
+ -- list of language that will be disabled
+ -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
+ disable = function(lang, buf)
+ local max_filesize = 100 * 1024 -- 100 KB
+ local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
+ if ok and stats and stats.size > max_filesize then
+ return true
+ end
+ end,
+
+ -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
+ -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
+ -- Using this option may slow down your editor, and you may see some duplicate highlights.
+ -- Instead of true it can also be a list of languages
+ additional_vim_regex_highlighting = false,
+ },
+ }
+
+
+EOF
diff --git a/zshrc b/zshrc
new file mode 100644
index 0000000..9da119e
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,131 @@
+# If you come from bash you might have to change your $PATH.
+export PATH=$HOME/bin:/usr/local/bin:/home/aurelia/.cargo/bin:$PATH
+
+# Path to your oh-my-zsh installation.
+export ZSH="$HOME/.oh-my-zsh"
+
+# Set name of the theme to load --- if set to "random", it will
+# load a random theme each time oh-my-zsh is loaded, in which case,
+# to know which specific one was loaded, run: echo $RANDOM_THEME
+# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
+ZSH_THEME="evan"
+
+# Set list of themes to pick from when loading at random
+# Setting this variable when ZSH_THEME=random will cause zsh to load
+# a theme from this variable instead of looking in $ZSH/themes/
+# If set to an empty array, this variable will have no effect.
+# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
+
+# Uncomment the following line to use case-sensitive completion.
+# CASE_SENSITIVE="true"
+
+# Uncomment the following line to use hyphen-insensitive completion.
+# Case-sensitive completion must be off. _ and - will be interchangeable.
+# HYPHEN_INSENSITIVE="true"
+
+# Uncomment one of the following lines to change the auto-update behavior
+# zstyle ':omz:update' mode disabled # disable automatic updates
+# zstyle ':omz:update' mode auto # update automatically without asking
+# zstyle ':omz:update' mode reminder # just remind me to update when it's time
+
+# Uncomment the following line to change how often to auto-update (in days).
+# zstyle ':omz:update' frequency 13
+
+# Uncomment the following line if pasting URLs and other text is messed up.
+# DISABLE_MAGIC_FUNCTIONS="true"
+
+# Uncomment the following line to disable colors in ls.
+# DISABLE_LS_COLORS="true"
+
+# Uncomment the following line to disable auto-setting terminal title.
+# DISABLE_AUTO_TITLE="true"
+
+# Uncomment the following line to enable command auto-correction.
+# ENABLE_CORRECTION="true"
+
+# Uncomment the following line to display red dots whilst waiting for completion.
+# You can also set it to another string to have that shown instead of the default red dots.
+# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
+# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
+# COMPLETION_WAITING_DOTS="true"
+
+# Uncomment the following line if you want to disable marking untracked files
+# under VCS as dirty. This makes repository status check for large repositories
+# much, much faster.
+# DISABLE_UNTRACKED_FILES_DIRTY="true"
+
+# Uncomment the following line if you want to change the command execution time
+# stamp shown in the history command output.
+# You can set one of the optional three formats:
+# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
+# or set a custom format using the strftime function format specifications,
+# see 'man strftime' for details.
+# HIST_STAMPS="mm/dd/yyyy"
+
+# Would you like to use another custom folder than $ZSH/custom?
+# ZSH_CUSTOM=/path/to/new-custom-folder
+
+# Which plugins would you like to load?
+# Standard plugins can be found in $ZSH/plugins/
+# Custom plugins may be added to $ZSH_CUSTOM/plugins/
+# Example format: plugins=(rails git textmate ruby lighthouse)
+# Add wisely, as too many plugins slow down shell startup.
+plugins=(
+ git
+ zsh-syntax-highlighting
+ zsh-autosuggestions
+ zsh-colorls
+)
+
+source $ZSH/oh-my-zsh.sh
+
+# User configuration
+
+autoload -Uz compinit && compinit
+autoload -Uz bashcompinit && bashcompinit
+alias vim=nvim
+alias vi=nvim
+alias mpa="mpv --no-video"
+
+alias l='ls'
+alias lg='lazygit'
+alias gpt='node "/media/aurelia/sda0 [dev]/gpt.js"'
+
+export ANDROID_HOME=/media/aurelia/data/android-projects
+
+# export MANPATH="/usr/local/man:$MANPATH"
+
+# You may need to manually set your language environment
+# export LANG=en_US.UTF-8
+
+# Preferred editor for local and remote sessions
+# if [[ -n $SSH_CONNECTION ]]; then
+export EDITOR='nvim'
+# else
+# export EDITOR='mvim'
+# fi
+
+# Compilation flags
+# export ARCHFLAGS="-arch x86_64"
+
+# Set personal aliases, overriding those provided by oh-my-zsh libs,
+# plugins, and themes. Aliases can be placed here, though oh-my-zsh
+# users are encouraged to define aliases within the ZSH_CUSTOM folder.
+# For a full list of active aliases, run `alias`.
+#
+# Example aliases
+# alias zshconfig="mate ~/.zshrc"
+# alias ohmyzsh="mate ~/.oh-my-zsh"
+
+OLLAMA_HOME="/media/aurelia/dev/ollama"
+OLLAMA_MODELS="/media/aurelia/dev/ollama/models"
+export OLLAMA_HOME
+export OLLAMA_MODELS
+
+EMSDK_QUIET=1 source /home/aurelia/code/emsdk/emsdk_env.sh
+
+# The next line updates PATH for the Google Cloud SDK.
+if [ -f '/home/aurelia/google-cloud-sdk/path.zsh.inc' ]; then . '/home/aurelia/google-cloud-sdk/path.zsh.inc'; fi
+
+# The next line enables shell command completion for gcloud.
+if [ -f '/home/aurelia/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/aurelia/google-cloud-sdk/completion.zsh.inc'; fi