Switch package manager to packer

This commit is contained in:
ItsDrike 2021-12-06 13:18:36 +01:00
parent c5baadf07f
commit dce7dd58d0
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843
10 changed files with 116 additions and 84 deletions

View file

@ -2,15 +2,9 @@ local vim = require("vim")
local g = vim.g
local cmd = vim.cmd
cmd[[
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
]]
-- Airline specific theming settings
g.airline_theme = 'codedark' -- Use codedark theme from vim-airline-themes
g.airline_right_sep = "" -- Don't use special separators (<)
g.airline_left_sep = "" -- Don't use special separators (>)
-- Don't use special separators
g.airline_right_sep = "" -- (default: <)
g.airline_left_sep = "" -- (default: >)
-- Tabline setup
-- TODO: Figure out how to set # separated variables in lua (open for PRs)

View file

@ -6,9 +6,6 @@
" however if anyone knows how to completely reproduce everything here in lua,
" this is open to pull requests
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'antoinemadec/coc-fzf'
let g:coc_global_extensions = [
\ 'coc-pyright', 'coc-json', 'coc-git', 'coc-html', 'coc-css',
\ 'coc-clangd', 'coc-cmake', 'coc-java', 'coc-sh', 'coc-toml',

View file

@ -1,9 +1,9 @@
local vim = require("vim")
local cmd = vim.cmd
cmd[[Plug 'tpope/vim-commentary']]
-- Set up shortcuts to quickly comment some code
Keymap("n", "<A-/>", ":Commentary<CR>")
Keymap("v", "<A-/>", ":Commentary<CR>")
-- Set up comments for unhandled file types
cmd[[autocmd FileType apache setlocal commentstring=#\ %s]]

View file

@ -11,7 +11,7 @@ local fn = vim.fn
-- when I access something as an attribute, but it would be neat to see what that
-- attribute actually holds, is it a class or a fucntion. But from my searching,
-- I wasn't able to find anything like this. This is open to pull requests.
cmd[[Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }]]
-- Plugin: numirias/semshi
if (fn.has("python3")) then
fn.system({"pip", "install", "nvim", "--upgrade"})

View file

@ -2,10 +2,6 @@ local vim = require("vim")
local cmd = vim.cmd
local g = vim.g
cmd[[Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }]]
cmd[[Plug 'junegunn/fzf.vim']]
cmd[[Plug 'stsewd/fzf-checkout.vim']]
g.fzf_layout = {
up = '~90%',
window = {

View file

@ -3,12 +3,6 @@ local g = vim.g
local fn = vim.fn
local cmd = vim.cmd
cmd[[
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
]]
-- Implement manual NERDTreeToggle, but use NERDTreeFind for openning.
-- This makes NERDTree open with the current file pre-selected
Keymap("n", "<C-n>", "g:NERDTree.IsOpen() ? ':NERDTreeClose<CR>' : @% == '' ? ':NERDTree<CR>' : ':NERDTreeFind<CR>'", {expr=true})

View file

@ -2,8 +2,6 @@ local vim = require("vim")
local cmd = vim.cmd
local g = vim.g
cmd[[Plug 'sheerun/vim-polyglot']]
-- Disable polyglot's "sensible" settings, while there are some nice things it
-- does, I set these manually in my default config and I don't like depending
-- on single plugin for so many things, doing it manually doing it manually is

View file

@ -1,12 +1,4 @@
local vim = require("vim")
local cmd = vim.cmd
cmd[[Plug 'tomasiser/vim-code-dark']]
-- Set vim-code-dark as colortheme after plugin loading was finished
cmd[[
augroup VimCodeDark
autocmd!
autocmd User PlugLoaded ++nested colorscheme codedark
augroup end
]]
cmd[[colorscheme codedark]]

View file

@ -2,8 +2,6 @@ local vim = require("vim")
local cmd = vim.cmd
local g = vim.g
cmd[[Plug 'vimwiki/vimwiki']]
local wiki_conf = {}
wiki_conf["path"] = "~/Personal/vimwiki"
wiki_conf["path_html"] = "~/Personal/vimwiki-html"