FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
dotfiles/nvimrc/.nvimrc_0 at master · statquant/dotfiles · GitHub
statquant
dotfiles
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
dotfiles
/
nvimrc
/
.nvimrc_0
Copy path
More file actions
More file actions
Latest commit
History
History
History
79 lines (74 loc) · 2.72 KB
Breadcrumbs
dotfiles
/
nvimrc
/
.nvimrc_0
Copy path
File metadata and controls
79 lines (74 loc) · 2.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
" Specify a directory for plugins
" At the time of writing vim-plug must be install doing
" bash) curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" You cannot use ${XDG_CONFIG_HOME} in place of ~/.config
call plug#begin("~/.config/nvim/plugged")
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'
" For vsnip users.
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
" Nvim-R: https://github.com/jalvesaq/Nvim-R
Plug 'jalvesaq/Nvim-R', {'branch': 'stable', 'for': ['r', 'R', 'rmd', 'Rmd', 'qmd', 'rmarkdown']}
Plug 'jalvesaq/cmp-nvim-r'
Plug 'onsails/lspkind.nvim'
" Patched fonts for Powerline: https://github.com/powerline/fonts
" Plug 'powerline/fonts', {'do': './install.sh'}
" Lean & mean status/tabline for vim: https://github.com/vim-airline/vim-airline
" Plug 'vim-airline/vim-airline'
" Plug 'vim-airline/vim-airline-themes'
" Colorscheme pack: https://github.com/flazz/vim-colorschemes
" Plug 'flazz/vim-colorschemes'
" Done for all plugins
call plug#end()
" configuration needs to be after plug#end because rtp is not set within begin/#end
"source ${HOME}/.dotfiles/.nvimrc_base
source ${HOME}/.dotfiles/.nvimrc_nvimr
"source ${HOME}/.dotfiles/.nvimrc_coc
"source ${HOME}/.dotfiles/.nvimrc_devtools
"source ${HOME}/.dotfiles/.nvimrc_vimcmdline
"source ${HOME}/.dotfiles/.nvimrc_airline
"source ${HOME}/.dotfiles/.nvimrc_colorscheme
"source ${HOME}/.dotfiles/.nvimrc_jupytext.vim
" unused plugin configurations
"source ~/.dotfiles/.nvimrc_nerd
"source ~/.dotfiles/.nvimrc_ctrlp
lua <<EOF
-- Set up nvim-cmp.
local cmp = require('cmp')
local lspkind = require('lspkind')
cmp.setup({
formatting = {
fields = {'abbr', 'kind', 'menu'},
format = lspkind.cmp_format({
mode = 'symbol', -- show only symbol annotations
maxwidth = 50, -- prevent the popup from showing more than provided characters
ellipsis_char = '...', -- the truncated part when popup menu exceed maxwidth
before = function(entry, item)
local menu_icon = {
nvim_lsp = '',
vsnip = '',
path = '',
cmp_nvim_r = 'R'
}
item.menu = menu_icon[entry.source.name]
return item
end,
})
},
sources = cmp.config.sources({
{ name = 'vsnip' },
{ name = 'cmp_nvim_r' },
{ name = 'nvim_lsp' },
{ name = 'path', option = { trailing_slash = true } },
}),
})
require'cmp_nvim_r'.setup({
filetypes = {'r', 'rmd', 'quarto'},
doc_width = 58
})
EOF
Back
|
FazBrowse Home
|
New Git URL