Polishing init.lua.

This commit is contained in:
Bartek Stalewski 2023-04-07 17:04:04 +02:00
parent b23134ce6f
commit 34743fa9d4

View file

@ -14,46 +14,41 @@ vim.opt.rtp:prepend(lazypath)
-- define plugins -- define plugins
require("lazy").setup { require("lazy").setup {
"bitc/vim-bad-whitespace",
{ "tanvirtin/monokai.nvim", config = function() require("monokai").setup() end }, { "tanvirtin/monokai.nvim", config = function() require("monokai").setup() end },
{ "NvChad/nvim-colorizer.lua", config = function() require("colorizer").setup() end }, { "NvChad/nvim-colorizer.lua", config = function() require("colorizer").setup() end },
{ "numToStr/Comment.nvim", config = function() require("Comment").setup() end }, { "numToStr/Comment.nvim", config = function() require("Comment").setup() end },
-- "bitc/vim-bad-whitespace", { "lewis6991/gitsigns.nvim", config = function() require("gitsigns").setup {
"lewis6991/gitsigns.nvim", signs = {
"nvim-lualine/lualine.nvim", add = { text = "" },
"nvim-treesitter/nvim-treesitter", change = { text = "" },
} delete = { text = "" },
topdelete = { text = "" },
-- configure plugins, if needed changedelete = { text = "" },
require("gitsigns").setup { untracked = { text = "" },
signs = { },
add = { text = "" }, } end },
change = { text = "" }, { "nvim-lualine/lualine.nvim", config = function() require("lualine").setup {
delete = { text = "" }, options = {
topdelete = { text = "" }, component_separators = '',
changedelete = { text = "" }, icons_enabled = false,
untracked = { text = "" }, section_separators = '',
}, theme = "powerline",
} },
require("lualine").setup { sections = {
options = { lualine_a = { "mode" },
component_separators = '', lualine_b = { { "filename", file_status = true, path = 1 } },
icons_enabled = false, lualine_c = { "branch" },
section_separators = '', lualine_x = { "filetype" },
theme = "powerline", lualine_y = { "progress" },
}, lualine_z = { "location" },
sections = { },
lualine_a = { "mode" }, } end },
lualine_b = { { "filename", file_status = true, path = 1 } }, { "nvim-treesitter/nvim-treesitter", config = function() require("nvim-treesitter.configs").setup {
lualine_c = { "branch" }, build = ":TSUpdate",
lualine_x = { "filetype" }, ensure_installed = { "bash", "python", "terraform", "vim", "yaml" },
lualine_y = { "progress" }, highlight = { enable = true },
lualine_z = { "location" }, } end },
},
}
require("nvim-treesitter.configs").setup {
build = ":TSUpdate",
ensure_installed = { "bash", "python", "terraform", "vim", "yaml" },
highlight = { enable = true },
} }
-- modify colorcheme -- modify colorcheme