added rainbow
This commit is contained in:
+100
-92
@@ -74,7 +74,7 @@ augroup END
|
|||||||
---------------
|
---------------
|
||||||
local pyenv_root = vim.env.PYENV_ROOT
|
local pyenv_root = vim.env.PYENV_ROOT
|
||||||
if pyenv_root ~= nil then
|
if pyenv_root ~= nil then
|
||||||
g.python3_host_prog = pyenv_root .. '/shims/python3'
|
g.python3_host_prog = pyenv_root .. "/shims/python3"
|
||||||
else
|
else
|
||||||
g.python3_host_prog = "/usr/bin/python3"
|
g.python3_host_prog = "/usr/bin/python3"
|
||||||
end
|
end
|
||||||
@@ -89,8 +89,8 @@ end
|
|||||||
|
|
||||||
-- Lua
|
-- Lua
|
||||||
require("onedark").setup({
|
require("onedark").setup({
|
||||||
style = "darker",
|
style = "darker",
|
||||||
toggle_style_key = "<nop>",
|
toggle_style_key = "<nop>",
|
||||||
})
|
})
|
||||||
require("onedark").load()
|
require("onedark").load()
|
||||||
|
|
||||||
@@ -109,11 +109,19 @@ g.bracey_refresh_on_save = true
|
|||||||
-- TREESITTER CONFIG --
|
-- TREESITTER CONFIG --
|
||||||
-----------------------
|
-----------------------
|
||||||
require("nvim-treesitter.configs").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = "all",
|
ensure_installed = "all",
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = { "typescript", "tsx", "html", "javascript" },
|
disable = { "typescript", "tsx", "html", "javascript" },
|
||||||
},
|
},
|
||||||
|
rainbow = {
|
||||||
|
enable = true,
|
||||||
|
-- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
|
||||||
|
extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
|
||||||
|
max_file_lines = nil, -- Do not enable for files with more than n lines, int
|
||||||
|
-- colors = {}, -- table of hex strings
|
||||||
|
-- termcolors = {} -- table of colour name strings
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
@@ -132,79 +140,79 @@ g.github_hide_inactive_statusline = false
|
|||||||
-------------
|
-------------
|
||||||
|
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = { theme = "onedark", icons_enabled = true },
|
options = { theme = "onedark", icons_enabled = true },
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
"FugitiveHead",
|
"FugitiveHead",
|
||||||
},
|
},
|
||||||
lualine_c = { "filename" },
|
lualine_c = { "filename" },
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
"encoding",
|
"encoding",
|
||||||
"fileformat",
|
"fileformat",
|
||||||
"filetype",
|
"filetype",
|
||||||
[[string.format("%d Lines", vim.fn.line('$'))]],
|
[[string.format("%d Lines", vim.fn.line('$'))]],
|
||||||
{
|
{
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = { "nvim_diagnostic", "ale" },
|
sources = { "nvim_diagnostic", "ale" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
"progress",
|
"progress",
|
||||||
},
|
},
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = { "filename" },
|
lualine_c = { "filename" },
|
||||||
lualine_x = { "location" },
|
lualine_x = { "location" },
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {},
|
lualine_z = {},
|
||||||
},
|
},
|
||||||
tabline = {
|
tabline = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{
|
{
|
||||||
"buffers",
|
"buffers",
|
||||||
show_filename_only = false, -- shows shortened relative path when false
|
show_filename_only = false, -- shows shortened relative path when false
|
||||||
show_modified_status = true, -- shows indicator then bufder is modified
|
show_modified_status = true, -- shows indicator then bufder is modified
|
||||||
max_length = function ()
|
max_length = function()
|
||||||
return vim.o.columns * 5 / 6
|
return vim.o.columns * 5 / 6
|
||||||
end, -- maximum width of buffers component
|
end, -- maximum width of buffers component
|
||||||
filetype_names = {
|
filetype_names = {
|
||||||
TelescopePrompt = "Telescope",
|
TelescopePrompt = "Telescope",
|
||||||
dashboard = "Dashboard",
|
dashboard = "Dashboard",
|
||||||
packer = "Packer",
|
packer = "Packer",
|
||||||
fzf = "FZF",
|
fzf = "FZF",
|
||||||
alpha = "Alpha",
|
alpha = "Alpha",
|
||||||
["lsp-installer"] = "LSP Installer",
|
["lsp-installer"] = "LSP Installer",
|
||||||
}, -- shows specific buffer name for that filetype ( { `filetype` = `buffer_name`, ... } )
|
}, -- shows specific buffer name for that filetype ( { `filetype` = `buffer_name`, ... } )
|
||||||
buffers_color = {
|
buffers_color = {
|
||||||
active = nil, -- color for active buffer
|
active = nil, -- color for active buffer
|
||||||
inactive = nil, -- color for inactive buffer
|
inactive = nil, -- color for inactive buffer
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_b = {},
|
lualine_b = {},
|
||||||
lualine_c = {},
|
lualine_c = {},
|
||||||
lualine_x = {},
|
lualine_x = {},
|
||||||
lualine_y = {},
|
lualine_y = {},
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
{
|
{
|
||||||
[[string.format("Tab %d/%d", vim.fn.tabpagenr(), vim.fn.tabpagenr('$'))]],
|
[[string.format("Tab %d/%d", vim.fn.tabpagenr(), vim.fn.tabpagenr('$'))]],
|
||||||
cond = function()
|
cond = function()
|
||||||
return fn.tabpagenr("$") > 1
|
return fn.tabpagenr("$") > 1
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
[[harpoon_status()]],
|
[[harpoon_status()]],
|
||||||
cond = function()
|
cond = function()
|
||||||
return require("harpoon.mark").get_length() > 0
|
return require("harpoon.mark").get_length() > 0
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = {},
|
extensions = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
@@ -214,20 +222,20 @@ require("lualine").setup({
|
|||||||
--Here is the set of global settings and their default values.
|
--Here is the set of global settings and their default values.
|
||||||
|
|
||||||
require("harpoon").setup({
|
require("harpoon").setup({
|
||||||
global_settings = {
|
global_settings = {
|
||||||
save_on_toggle = false,
|
save_on_toggle = false,
|
||||||
save_on_change = true,
|
save_on_change = true,
|
||||||
enter_on_sendcmd = false,
|
enter_on_sendcmd = false,
|
||||||
tmux_autoclose_windows = false,
|
tmux_autoclose_windows = false,
|
||||||
excluded_filetypes = { "harpoon" },
|
excluded_filetypes = { "harpoon" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
-- NVIM FZF --
|
-- NVIM FZF --
|
||||||
--------------
|
--------------
|
||||||
require("fzf").default_options = {
|
require("fzf").default_options = {
|
||||||
fzf_cli_args = " --height 100% --preview='bat --color=always --style=header,grid --line-range :300 {}' ",
|
fzf_cli_args = " --height 100% --preview='bat --color=always --style=header,grid --line-range :300 {}' ",
|
||||||
}
|
}
|
||||||
|
|
||||||
----------------------
|
----------------------
|
||||||
@@ -261,9 +269,9 @@ require("fzf").default_options = {
|
|||||||
opt.list = true
|
opt.list = true
|
||||||
|
|
||||||
require("indent_blankline").setup({
|
require("indent_blankline").setup({
|
||||||
space_char_blankline = " ",
|
space_char_blankline = " ",
|
||||||
show_current_context = true,
|
show_current_context = true,
|
||||||
show_current_context_start = true,
|
show_current_context_start = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- PETOBENS/POET-V --
|
-- PETOBENS/POET-V --
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ require("packer").startup(function()
|
|||||||
-- LSP
|
-- LSP
|
||||||
use("hrsh7th/nvim-cmp") -- Autocompletion plugin
|
use("hrsh7th/nvim-cmp") -- Autocompletion plugin
|
||||||
--use "saadparwaiz1/cmp_luasnip" -- Snippets source for nvim-cmp
|
--use "saadparwaiz1/cmp_luasnip" -- Snippets source for nvim-cmp
|
||||||
|
use("p00f/nvim-ts-rainbow")
|
||||||
use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
|
use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
|
||||||
use("neovim/nvim-lspconfig") -- Collection of configurations for built-in LSP client
|
use("neovim/nvim-lspconfig") -- Collection of configurations for built-in LSP client
|
||||||
use("williamboman/nvim-lsp-installer")
|
use("williamboman/nvim-lsp-installer")
|
||||||
|
|||||||
Reference in New Issue
Block a user