1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-22 14:52:47 +00:00

nvim: switch to lua config

This commit is contained in:
Phantop 2022-05-27 14:05:57 -04:00
parent 0b81246177
commit be3d47070d
3 changed files with 51 additions and 44 deletions

View file

@ -21,6 +21,7 @@ ln -s ~/.config/gtk-3.0/gtkrc ~/.gtkrc-2.0
wget https://github.com/dracula/kitty/raw/master/dracula.conf -P ~/.config/kitty
wget https://github.com/dracula/rofi/raw/master/theme/config2.rasi -P ~/.config/rofi
wget https://github.com/savq/paq-nvim/raw/master/lua/paq.lua -P ~/.config/nvim/lua
wget https://source.netsurf-browser.org/netsurf.git/plain/resources/adblock.css\
https://nitter.it/css/themes/dracula.css -P ~/.config/qutebrowser
un(){ F=$(mktemp); mkdir -p "$2"; curl https://api.github.com/repos/"$1"/releases |\
@ -39,8 +40,7 @@ g g p:appdwarf ~/.appdwarf
g g p:solus-stuff ~/.solus
g g p:phantop.github.io ~/.site
g g p:haiku-icons ~/.local/share/icons/Haiku
g g h:junegunn/vim-plug ~/.config/nvim/autoload
nvim +PlugUpdate +q +q
nvim +PaqInstall +q
parallel gsettings set org.gnome.desktop.interface {}-theme Haiku ::: cursor icon
gsettings set org.gnome.desktop.interface gtk-theme Ant-Dracula

49
nvim/init.lua Executable file
View file

@ -0,0 +1,49 @@
require "paq" {
'ackyshake/vimcompletesme';
'ctrlpvim/ctrlp.vim';
'dense-analysis/ale';
'dracula/vim';
'easymotion/vim-easymotion';
'godlygeek/tabular';
'lervag/vimtex';
'lewis6991/gitsigns.nvim';
'lukas-reineke/indent-blankline.nvim';
'luukvbaal/nnn.nvim';
'RobertAudi/fish.vim';
'tpope/vim-commentary';
'tpope/vim-sensible';
'tpope/vim-surround';
'vim-airline/vim-airline';
}
require("nnn").setup()
require("gitsigns").setup()
vim.opt.background = "dark"
vim.opt.clipboard = "unnamedplus"
vim.opt.colorcolumn = "85"
vim.opt.mouse = "a"
vim.opt.shiftwidth = 4
vim.opt.textwidth = 0
vim.opt.wrapmargin = 0
vim.opt.cursorline = true
vim.opt.expandtab = true
vim.opt.ignorecase = true
vim.opt.linebreak = true
vim.opt.number = true
vim.opt.smartcase = true
vim.opt.smartindent = true
vim.opt.termguicolors = true
vim.opt.wrap = false
vim.keymap.set('', '<F7>', 'mzgg=G`z')
vim.keymap.set('', 'r', '"_d')
vim.cmd [[
autocmd FileType * se tw=0
colorscheme dracula
command Q q!
filetype plugin indent on
syntax enable
PaqClean
]]

View file

@ -1,42 +0,0 @@
call plug#begin('~/.local/share/nvim/plugged')
Plug 'ackyshake/vimcompletesme'
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'dense-analysis/ale'
Plug 'dracula/vim'
Plug 'easymotion/vim-easymotion'
Plug 'godlygeek/tabular'
Plug 'lervag/vimtex'
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'RobertAudi/fish.vim'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'
call plug#end()
se background=dark
se clipboard=unnamedplus
se colorcolumn=85
se cursorline
se expandtab
se formatoptions+=j
se ignorecase
se linebreak
se mouse=a
se nowrap
se number
se shiftwidth=4
se smartcase
se smartindent
se termguicolors
se textwidth=0
se wrapmargin=0
autocmd FileType * se tw=0
colorscheme dracula
command Q q!
filetype plugin indent on
syntax enable
map <F7> mzgg=G`z
map r "_d