Compare commits
3 Commits
ab111b9fb9
...
e82f6e5356
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e82f6e5356 | ||
|
|
5f7db64250 | ||
|
|
05b5c17a56 |
@@ -45,4 +45,4 @@ opt.splitbelow = true -- split horizontal window to the bottom
|
|||||||
opt.swapfile = false
|
opt.swapfile = false
|
||||||
|
|
||||||
-- set shell to zsh
|
-- set shell to zsh
|
||||||
opt.shell = "/bin/zsh -i"
|
opt.shell = "/bin/zsh"
|
||||||
|
|||||||
@@ -1,60 +1,33 @@
|
|||||||
-- https://github.com/nvim-treesitter/nvim-treesitter
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
lazy = false,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
dependencies = {
|
|
||||||
"windwp/nvim-ts-autotag",
|
|
||||||
},
|
|
||||||
config = function()
|
config = function()
|
||||||
-- import nvim-treesitter plugin
|
-- import nvim-treesitter plugin
|
||||||
local treesitter = require("nvim-treesitter.configs")
|
local treesitter = require("nvim-treesitter")
|
||||||
|
|
||||||
-- configure treesitter
|
-- configure treesitter
|
||||||
treesitter.setup({
|
treesitter.setup({})
|
||||||
-- enable syntax highlighting
|
-- install parsers
|
||||||
highlight = {
|
treesitter.install({
|
||||||
enable = true,
|
"bash",
|
||||||
},
|
"dockerfile",
|
||||||
-- enable indentation
|
"gitignore",
|
||||||
indent = { enable = true },
|
"jinja",
|
||||||
-- enable autotagging (w/ nvim-ts-autotag plugin)
|
"jinja_inline",
|
||||||
autotag = {
|
"json",
|
||||||
enable = true,
|
"hcl",
|
||||||
},
|
"helm",
|
||||||
-- ensure these language parsers are installed
|
"lua",
|
||||||
ensure_installed = {
|
"luadoc",
|
||||||
"bash",
|
"luap",
|
||||||
"dockerfile",
|
"markdown",
|
||||||
"gitignore",
|
"markdown_inline",
|
||||||
"jinja",
|
"nginx",
|
||||||
"jinja_inline",
|
"vim",
|
||||||
"json",
|
"vimdoc",
|
||||||
"hcl",
|
"yaml",
|
||||||
"helm",
|
|
||||||
"lua",
|
|
||||||
"luadoc",
|
|
||||||
"luap",
|
|
||||||
"markdown",
|
|
||||||
"markdown_inline",
|
|
||||||
"nginx",
|
|
||||||
"vim",
|
|
||||||
"vimdoc",
|
|
||||||
"yaml",
|
|
||||||
},
|
|
||||||
modules = {},
|
|
||||||
sync_install = false,
|
|
||||||
ignore_install = {},
|
|
||||||
auto_install = false,
|
|
||||||
incremental_selection = {
|
|
||||||
enable = true,
|
|
||||||
keymaps = {
|
|
||||||
init_selection = "<C-space>",
|
|
||||||
node_incremental = "<C-space>",
|
|
||||||
scope_incremental = false,
|
|
||||||
node_decremental = "<bs>",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ $directory\
|
|||||||
$git_branch\
|
$git_branch\
|
||||||
$git_state\
|
$git_state\
|
||||||
$git_status\
|
$git_status\
|
||||||
$kubernetes\
|
|
||||||
$cmd_duration\
|
|
||||||
$line_break\
|
$line_break\
|
||||||
$character"""
|
$character"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user