Compare commits
3 Commits
f14517ada3
...
608b738ea1
Author | SHA1 | Date | |
---|---|---|---|
608b738ea1 | |||
f6dd4078e6 | |||
d878a2cb78 |
@ -116,4 +116,25 @@ if has('python3')
|
||||
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/nvim/ultisnips/']
|
||||
endif
|
||||
|
||||
Plug 'nvim-treesitter/nvim-treesitter'
|
||||
|
||||
call plug#end()
|
||||
|
||||
lua << EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "c", "cpp", "javascript", "python", "vim", "latex" },
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
EOF
|
||||
|
@ -56,8 +56,7 @@ c.statusbar.widgets = [ "keypress", "progress" ]
|
||||
|
||||
# Hints
|
||||
|
||||
c.hints.border = "1px dotted white"
|
||||
c.hints.radius = 10
|
||||
c.hints.border = "1px solid white"
|
||||
c.hints.chars = "asdfghjklweu"
|
||||
|
||||
# Privacy settings
|
||||
|
@ -22,7 +22,7 @@
|
||||
" Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
|
||||
"
|
||||
" " On-demand loading
|
||||
" Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||
" Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||
" Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
|
||||
"
|
||||
" " Using a non-default branch
|
||||
|
Loading…
x
Reference in New Issue
Block a user