tree sitter
This commit is contained in:
parent
61bf2534a6
commit
21d93a0a7b
1 changed files with 33 additions and 21 deletions
|
@ -88,6 +88,7 @@ call plug#begin('~/.config/nvim/autoload/plugged')
|
||||||
Plug 'VonHeikemen/lsp-zero.nvim'
|
Plug 'VonHeikemen/lsp-zero.nvim'
|
||||||
|
|
||||||
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' }
|
Plug 'nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' }
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
|
||||||
Plug 'nvim-telescope/telescope.nvim'
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
|
@ -208,9 +209,6 @@ nnoremap <leader>a :AsyncRun -mode=term -pos=floaterm
|
||||||
nnoremap <leader>ga <cmd>:AsyncRun -mode=term -pos=floaterm git add -p<cr>
|
nnoremap <leader>ga <cmd>:AsyncRun -mode=term -pos=floaterm git add -p<cr>
|
||||||
nnoremap <leader>gc :AsyncRun -mode=term -pos=floaterm git commit -m ""
|
nnoremap <leader>gc :AsyncRun -mode=term -pos=floaterm git commit -m ""
|
||||||
|
|
||||||
" Comment italics
|
|
||||||
highlight Comment cterm=italic gui=italic
|
|
||||||
|
|
||||||
" LSP Zero
|
" LSP Zero
|
||||||
lua << EOF
|
lua << EOF
|
||||||
require'lspconfig'.pyright.setup{}
|
require'lspconfig'.pyright.setup{}
|
||||||
|
@ -258,24 +256,38 @@ EOF
|
||||||
|
|
||||||
" indent-blankline
|
" indent-blankline
|
||||||
lua << EOF
|
lua << EOF
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#56B6C2 gui=nocombine]]
|
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#56B6C2 gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#61AFEF gui=nocombine]]
|
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#61AFEF gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#C678DD gui=nocombine]]
|
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#C678DD gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent4 guifg=#E5C07B gui=nocombine]]
|
vim.cmd [[highlight IndentBlanklineIndent4 guifg=#E5C07B gui=nocombine]]
|
||||||
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#98C379 gui=nocombine]]
|
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#98C379 gui=nocombine]]
|
||||||
-- vim.opt.list = true
|
-- vim.opt.list = true
|
||||||
-- vim.opt.listchars:append("space:⋅")
|
-- vim.opt.listchars:append("space:⋅")
|
||||||
-- vim.opt.listchars:append("eol:↴")
|
-- vim.opt.listchars:append("eol:↴")
|
||||||
|
|
||||||
require("indent_blankline").setup {
|
require("indent_blankline").setup {
|
||||||
-- space_char_blankline = " ",
|
-- space_char_blankline = " ",
|
||||||
char_highlight_list = {
|
char_highlight_list = {
|
||||||
"IndentBlanklineIndent1",
|
"IndentBlanklineIndent1",
|
||||||
"IndentBlanklineIndent2",
|
"IndentBlanklineIndent2",
|
||||||
"IndentBlanklineIndent3",
|
"IndentBlanklineIndent3",
|
||||||
"IndentBlanklineIndent4",
|
"IndentBlanklineIndent4",
|
||||||
"IndentBlanklineIndent5",
|
"IndentBlanklineIndent5",
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
" nvim-treesitter
|
||||||
|
lua << EOF
|
||||||
|
local configs = require'nvim-treesitter.configs'
|
||||||
|
configs.setup {
|
||||||
|
ensure_installed = "maintained",
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
" Comment italics
|
||||||
|
highlight TSComment cterm=italic gui=italic
|
||||||
|
|
Loading…
Add table
Reference in a new issue