2024-01-27 22:20:35 +00:00
|
|
|
-- Colors the code
|
|
|
|
require("nvim-treesitter.configs").setup({
|
2024-01-31 22:25:49 +00:00
|
|
|
ensure_installed = "all",
|
|
|
|
ignore_install = { "yaml" }, -- Issues with libstdc++6 and nix.
|
2024-01-27 22:20:35 +00:00
|
|
|
-- Install languages synchronously (only applied to `ensure_installed`)
|
|
|
|
sync_install = false,
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
2024-01-31 22:25:49 +00:00
|
|
|
disable = { "yaml" }, -- Issues with libstdc++6 and nix.
|
2024-01-27 22:20:35 +00:00
|
|
|
},
|
|
|
|
indent = {
|
|
|
|
-- dont enable this, messes up python indentation
|
|
|
|
enable = false,
|
|
|
|
disable = {},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Only colorizes the function/class/codeblock that the cursor is in
|
|
|
|
require("peepsight").setup({
|
|
|
|
-- typescript
|
|
|
|
"arrow_function",
|
|
|
|
"function_declaration",
|
|
|
|
"generator_function_declaration",
|
|
|
|
"method_definition",
|
|
|
|
})
|
|
|
|
require("peepsight").enable()
|
|
|
|
|
|
|
|
-- Transforms hex colors to their respective color
|
|
|
|
require("colorizer").setup()
|
2024-01-28 10:41:46 +00:00
|
|
|
|
|
|
|
-- Git blame line
|
|
|
|
require("gitsigns").setup({
|
|
|
|
current_line_blame = true,
|
|
|
|
current_line_blame_opts = {
|
|
|
|
delay = 500,
|
|
|
|
virt_text_pos = "eol",
|
|
|
|
},
|
2024-01-28 17:41:33 +00:00
|
|
|
signs = {
|
|
|
|
add = { text = "+" },
|
|
|
|
change = { text = "~" },
|
|
|
|
delete = { text = "-" },
|
|
|
|
topdelete = { text = "-" },
|
|
|
|
changedelete = { text = "~" },
|
|
|
|
untracked = { text = "┆" },
|
|
|
|
},
|
2024-01-28 10:41:46 +00:00
|
|
|
})
|