Compare commits
No commits in common. "e40bc60628e4bcbef14508a7583d4e747f8934db" and "9cd17eea5f4a43011dc10118ceacbd71f032f742" have entirely different histories.
e40bc60628
...
9cd17eea5f
|
@ -13,17 +13,17 @@
|
||||||
local data_dir = vim.fn.stdpath('data')
|
local data_dir = vim.fn.stdpath('data')
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||||
let plug_path = data_dir . '/autoload/plug.vim'
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||||
if empty(glob(plug_path))
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
execute '!curl -fLo '.plug_path.' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
||||||
execute 'so '.plug_path
|
|
||||||
endif
|
endif
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
]])
|
]])
|
||||||
|
--
|
||||||
-- vim-plug
|
-- vim-plug
|
||||||
local Plug = vim.fn['plug#']
|
local Plug = vim.fn['plug#']
|
||||||
|
|
||||||
vim.call('plug#begin')
|
-- TODO: Change this to relative datadir
|
||||||
|
vim.call('plug#begin', '~/.config/nvim/plugged')
|
||||||
|
|
||||||
-- libs and dependencies
|
-- libs and dependencies
|
||||||
Plug('nvim-lua/plenary.nvim')
|
Plug('nvim-lua/plenary.nvim')
|
||||||
|
@ -76,6 +76,7 @@ Plug('lukas-reineke/indent-blankline.nvim') -- identation lines on blank lines
|
||||||
Plug('kyazdani42/nvim-web-devicons') -- icons for folder and filetypes
|
Plug('kyazdani42/nvim-web-devicons') -- icons for folder and filetypes
|
||||||
Plug('m-demare/hlargs.nvim') -- highlights arguments; great for func prog
|
Plug('m-demare/hlargs.nvim') -- highlights arguments; great for func prog
|
||||||
Plug('folke/todo-comments.nvim') -- Highlights TODO
|
Plug('folke/todo-comments.nvim') -- Highlights TODO
|
||||||
|
Plug('TaDaa/vimade') -- shade alternative
|
||||||
|
|
||||||
-- other utilities
|
-- other utilities
|
||||||
Plug('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
Plug('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
||||||
|
@ -86,11 +87,7 @@ Plug('mickael-menu/zk-nvim') -- Zettelkasten
|
||||||
---------
|
---------
|
||||||
vim.call('plug#end')
|
vim.call('plug#end')
|
||||||
|
|
||||||
vim.cmd([[
|
|
||||||
if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|
||||||
\| PlugInstall --sync | autocmd VimEnter * so $MYVIMRC
|
|
||||||
\| endif
|
|
||||||
]])
|
|
||||||
|
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
set number relativenumber
|
set number relativenumber
|
||||||
|
@ -104,6 +101,7 @@ set scrolloff=30
|
||||||
set signcolumn=yes
|
set signcolumn=yes
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
set background=light
|
set background=light
|
||||||
|
|
||||||
]])
|
]])
|
||||||
vim.opt.lazyredraw = true
|
vim.opt.lazyredraw = true
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
@ -376,12 +374,6 @@ remap('n', '<leader>gs', function() require('neogit').open({}) end);
|
||||||
|
|
||||||
-- LSP settings
|
-- LSP settings
|
||||||
-- This function gets run when an LSP connects to a particular buffer.
|
-- This function gets run when an LSP connects to a particular buffer.
|
||||||
require("inlay-hints").setup {
|
|
||||||
only_current_line = true,
|
|
||||||
eol = {
|
|
||||||
right_align = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
-- NOTE: Remember that lua is a real programming language, and as such it is possible
|
-- NOTE: Remember that lua is a real programming language, and as such it is possible
|
||||||
-- to define small helper and utility functions so you don't have to repeat yourself
|
-- to define small helper and utility functions so you don't have to repeat yourself
|
||||||
|
@ -897,3 +889,4 @@ vim.cmd([[
|
||||||
let g:conjure#mapping#doc_word = v:false
|
let g:conjure#mapping#doc_word = v:false
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue