Improvements

This commit is contained in:
Lavender 2021-04-28 20:09:02 -07:00
parent cc50f4ce09
commit b402b22a75
Signed by: endie
GPG key ID: CC5162D7C2146F01
4 changed files with 58 additions and 19 deletions

View file

@ -1,16 +1,14 @@
require("packer").startup({{
-- plugin manager
"wbthomason/packer.nvim",
-- {
-- "lukas-reineke/indent-blankline.nvim",
-- branch = "lua",
-- },
-- colors
{
"olimorris/onedark.nvim",
requires = "rktjmp/lush.nvim",
},
-- syntax parsing
{
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
@ -39,8 +37,10 @@ require("packer").startup({{
end,
},
-- underlines all words that match the word under the cursor
"yamatsum/nvim-cursorline",
-- helps to find cursor when it jumps a far distance
{
"edluffy/specs.nvim",
config = function()
@ -64,13 +64,15 @@ require("packer").startup({{
end,
},
{
-- highlights color codes with their color
{
"norcalli/nvim-colorizer.lua",
config = function()
require("colorizer").setup()
end,
},
-- automatically adds matching brackets, quotation marks, etc
{
"windwp/nvim-autopairs",
config = function()
@ -80,20 +82,19 @@ require("packer").startup({{
end,
},
-- finds errors & warnings in code
"vim-syntastic/syntastic",
-- tools for rust programming
"rust-lang/rust.vim",
-- python formatter
{
"psf/black",
run = ":BlackUpgrade",
},
{
"Vimjas/vim-python-pep8-indent",
ft = "python",
},
-- discord rich presence
"andweeb/presence.nvim",
}})
@ -129,6 +130,3 @@ vim.g.syntastic_check_on_wq = 1
-- rust.vim
vim.g.rustfmt_autosave = 1
-- vim-python-pep8-indent
vim.g.python_pep8_indent_multiline_string = -2

View file

@ -0,0 +1,13 @@
#!/usr/bin/env xdg-open
# Desktop entry modified by Endie
# Original by Goneovim AUR package maintainers
[Desktop Entry]
Version=1.0
Type=Application
Name=Goneovim
Comment=Neovim GUI written in Golang, using a Golang qt backend
Exec=/usr/bin/goneovim --nvim=/usr/bin/nvim %F
Icon=vim
Terminal=false
StartupNotify=false
Categories=Application;

2
.zshrc
View file

@ -45,7 +45,7 @@ PROMPT="%F{5}%d%f%F{3}  %f "
RPROMPT="%F{2}(%f%F{1}%?%f%F{2})"
alias back="cd \$OLDPWD"
alias dots="git --git-dir=$HOME/Dotfiles --work-tree=$HOME"
alias dots="git --git-dir=$HOME/dotfiles --work-tree=$HOME"
alias update="yay -Syu && nvim -c PackerUpdate"
sys

View file

@ -1,6 +1,34 @@
# Dotfiles
You can clone directly into your home directory to use these.\
I use the method described here https://www.anand-iyer.com/blog/2018/a-simpler-way-to-manage-your-dotfiles.html.
My configurations for programs.
The Neovim dots (.config/nvim) require Neovim 0.5.0 or greater.\
The system info script & .zshrc requires a nerd font (https://www.nerdfonts.com/).
## Requirements
The Neovim dots (.config/nvim) require Neovim 0.5.0 or greater, with packer installed.\
The system info script & .zshrc requires a nerd font (https://www.nerdfonts.com/).
## Installation
`git clone https://gitdab.com/endie/dotfiles.git`, then move/symlink the files you want to the
correct places relative to your home directory\
Alternatively, you can clone these directly into your home directory with
`git clone --separate-git-dir=$HOME/dotfiles https://gitdab.com/endie/dotfiles.git ~`,
but that will not work if the files are already in your home directory
## Help
### None of the Neovim configuration is working / errors when starting Neovim
* Make sure your Neovim meets the requirements
> * Currently 0.5.0 is not released yet, so you will have to use a prerelease build
> * Install packer by running
`git clone https://github.com/wbthomason/packer.nvim
~/.local/share/nvim/site/pack/packer/start/packer.nvim`
* If your Neovim meets the requirements, try running `:PackerSync` in Neovim
### The presence.nvim Neovim plugin is not working
* You might have to add Neovim as a game in your Discord client (settings > game activity)
### The Materia GTK theme looks wrong when generated with the oomox colors
* Run `find /path/to/generated_theme -name "*.css" -print | xargs sed -i "s/230000/242424/g"`,
replacing `/path/to/generated_theme` with the location of the theme you generated
(by default ~/.themes/oomox-Pastls).
## Credits
Method for storing dotfiles:
https://www.anand-iyer.com/blog/2018/a-simpler-way-to-manage-your-dotfiles.html