migrate to lua neovim config
This commit is contained in:
parent
8beb72ddec
commit
5d341f8053
6
.bashrc
6
.bashrc
@ -58,3 +58,9 @@ pfetch
|
|||||||
|
|
||||||
# initialize starship prompt
|
# initialize starship prompt
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
||||||
|
PATH="/home/april/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
||||||
|
PERL5LIB="/home/april/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
|
PERL_LOCAL_LIB_ROOT="/home/april/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
PERL_MB_OPT="--install_base \"/home/april/perl5\""; export PERL_MB_OPT;
|
||||||
|
PERL_MM_OPT="INSTALL_BASE=/home/april/perl5"; export PERL_MM_OPT;
|
||||||
|
39
.config/nvim/lua/treesitter.lua
Normal file
39
.config/nvim/lua/treesitter.lua
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
-- import nvim-treesitter plugin safely
|
||||||
|
local status, treesitter = pcall(require, "nvim-treesitter.configs")
|
||||||
|
if not status then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
-- configure treesitter
|
||||||
|
treesitter.setup({
|
||||||
|
-- enable syntax highlighting
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
-- enable indentation
|
||||||
|
indent = { enable = true },
|
||||||
|
-- ensure these language parsers are installed
|
||||||
|
ensure_installed = {
|
||||||
|
"json",
|
||||||
|
"javascript",
|
||||||
|
"typescript",
|
||||||
|
"tsx",
|
||||||
|
"yaml",
|
||||||
|
"html",
|
||||||
|
"css",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"bash",
|
||||||
|
"lua",
|
||||||
|
"vim",
|
||||||
|
"python",
|
||||||
|
"rasi",
|
||||||
|
"dockerfile",
|
||||||
|
"printf",
|
||||||
|
"regex",
|
||||||
|
"sxhkdrc",
|
||||||
|
"udev",
|
||||||
|
},
|
||||||
|
-- auto install above language parsers
|
||||||
|
auto_install = true,
|
||||||
|
})
|
Loading…
x
Reference in New Issue
Block a user