|
|
|
@ -16,28 +16,23 @@ return require("lazy").setup({
|
|
|
|
|
-- display git status per line
|
|
|
|
|
{
|
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
require('gitsigns').setup()
|
|
|
|
|
end
|
|
|
|
|
config = {}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- show indentation lines
|
|
|
|
|
{
|
|
|
|
|
'lukas-reineke/indent-blankline.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
require("indent_blankline").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
show_current_context = true,
|
|
|
|
|
show_current_context_start = true
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- statusline
|
|
|
|
|
{
|
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
|
dependencies = { 'nvim-tree/nvim-web-devicons', },
|
|
|
|
|
config = function()
|
|
|
|
|
require('lualine').setup({
|
|
|
|
|
opts = {
|
|
|
|
|
options = {
|
|
|
|
|
symbols = {
|
|
|
|
|
error = Error_sign,
|
|
|
|
@ -48,24 +43,21 @@ return require("lazy").setup({
|
|
|
|
|
theme = 'tccs',
|
|
|
|
|
component_separators = { left = '', right = '' },
|
|
|
|
|
section_separators = { left = '', right = '' }
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- show function signature while typing
|
|
|
|
|
{
|
|
|
|
|
'ray-x/lsp_signature.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
require "lsp_signature".setup({
|
|
|
|
|
opts = {
|
|
|
|
|
bind = true,
|
|
|
|
|
handler_opts = {
|
|
|
|
|
border = "none"
|
|
|
|
|
},
|
|
|
|
|
hint_prefix = Hint_sign,
|
|
|
|
|
hint_scheme = "DiagnosticSignHint"
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- preview for markdown filetypes
|
|
|
|
@ -93,9 +85,7 @@ return require("lazy").setup({
|
|
|
|
|
-- automatic closing of brackets
|
|
|
|
|
{
|
|
|
|
|
'windwp/nvim-autopairs',
|
|
|
|
|
config = function()
|
|
|
|
|
require("nvim-autopairs").setup()
|
|
|
|
|
end
|
|
|
|
|
config = {}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- lang server installations
|
|
|
|
@ -118,23 +108,19 @@ return require("lazy").setup({
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'jay-babu/mason-null-ls.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
-- jay-babu/mason-null-ls.nvim
|
|
|
|
|
require("mason-null-ls").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
automatic_installation = true,
|
|
|
|
|
ensure_installed = { "black", "mdformat" }
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'LostNeophyte/null-ls-embedded'
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require("mason").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
ui = {
|
|
|
|
|
icons = Install_signs
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- lang server management
|
|
|
|
@ -180,6 +166,18 @@ return require("lazy").setup({
|
|
|
|
|
"texlab"
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
local servers = {
|
|
|
|
|
lua_ls = {
|
|
|
|
|
Lua = {
|
|
|
|
|
diagnostics = {
|
|
|
|
|
globals = { 'vim' }
|
|
|
|
|
},
|
|
|
|
|
telemetry = { enable = false },
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
local default = { __index = function() return {} end }
|
|
|
|
|
setmetatable(servers, default)
|
|
|
|
|
require("mason-lspconfig").setup_handlers({
|
|
|
|
|
function(server_name)
|
|
|
|
|
require('lspconfig')[server_name].setup({
|
|
|
|
@ -187,18 +185,8 @@ return require("lazy").setup({
|
|
|
|
|
capabilities = Capabilities,
|
|
|
|
|
flags = {
|
|
|
|
|
debounce_text_changes = 150
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
["lua_ls"] = function()
|
|
|
|
|
require 'lspconfig'.lua_ls.setup({
|
|
|
|
|
settings = {
|
|
|
|
|
Lua = {
|
|
|
|
|
diagnostics = {
|
|
|
|
|
globals = { 'vim' }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
settings = servers[server_name]
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
})
|
|
|
|
@ -219,7 +207,7 @@ return require("lazy").setup({
|
|
|
|
|
{
|
|
|
|
|
'l3mon4d3/luasnip',
|
|
|
|
|
config = function()
|
|
|
|
|
require("luasnip.loaders.from_snipmate").lazy_load()
|
|
|
|
|
require("luasnip.loaders.from_snipmate")
|
|
|
|
|
end,
|
|
|
|
|
dependencies = { 'saadparwaiz1/cmp_luasnip' }
|
|
|
|
|
},
|
|
|
|
@ -294,12 +282,10 @@ return require("lazy").setup({
|
|
|
|
|
-- showing color of hex values, etc
|
|
|
|
|
{
|
|
|
|
|
'norcalli/nvim-colorizer.lua',
|
|
|
|
|
config = function()
|
|
|
|
|
require('colorizer').setup({
|
|
|
|
|
opts = {
|
|
|
|
|
'*',
|
|
|
|
|
'!markdown'
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- fileexplorer on the side
|
|
|
|
@ -308,8 +294,7 @@ return require("lazy").setup({
|
|
|
|
|
dependencies = {
|
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require("nvim-tree").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
sort_by = "case_sensitive",
|
|
|
|
|
view = {
|
|
|
|
|
width = 30,
|
|
|
|
@ -325,8 +310,7 @@ return require("lazy").setup({
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- better language highlighting by improved parsing
|
|
|
|
@ -336,8 +320,7 @@ return require("lazy").setup({
|
|
|
|
|
-- automatically close html-tags
|
|
|
|
|
'windwp/nvim-ts-autotag',
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require("nvim-treesitter.configs").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
ensure_installed = {
|
|
|
|
|
"bash",
|
|
|
|
|
"c",
|
|
|
|
@ -350,8 +333,7 @@ return require("lazy").setup({
|
|
|
|
|
"python",
|
|
|
|
|
},
|
|
|
|
|
autotag = { enable = true }
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- folding improvements
|
|
|
|
@ -378,28 +360,22 @@ return require("lazy").setup({
|
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
|
version = '0.1.2',
|
|
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
|
config = function()
|
|
|
|
|
require("telescope").setup()
|
|
|
|
|
end
|
|
|
|
|
config = {}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- clean up white spaces and empty lines before writing
|
|
|
|
|
{
|
|
|
|
|
"mcauley-penney/tidy.nvim",
|
|
|
|
|
event = "VeryLazy",
|
|
|
|
|
config = function()
|
|
|
|
|
require("tidy").setup({
|
|
|
|
|
opts = {
|
|
|
|
|
filetype_exclude = {}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- todo symbols and highlighting
|
|
|
|
|
{
|
|
|
|
|
'folke/todo-comments.nvim',
|
|
|
|
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
|
|
|
config = function()
|
|
|
|
|
require 'todo-comments'.setup {
|
|
|
|
|
opts = {
|
|
|
|
|
keywords = {
|
|
|
|
|
ERRO = { icon = Error_sign, color = "error" },
|
|
|
|
|
WARN = { icon = Warn_sign, color = "warning" },
|
|
|
|
@ -411,13 +387,11 @@ return require("lazy").setup({
|
|
|
|
|
TEST = { icon = Test_sign, color = "test" }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- git wrapper
|
|
|
|
|
{
|
|
|
|
|
'tpope/vim-fugitive',
|
|
|
|
|
event = "VeryLazy"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- markdown language support
|
|
|
|
@ -432,16 +406,18 @@ return require("lazy").setup({
|
|
|
|
|
-- bulk renamer
|
|
|
|
|
{
|
|
|
|
|
'qpkorr/vim-renamer',
|
|
|
|
|
event = "VeryLazy"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- additional quote/parantheses funtions
|
|
|
|
|
{
|
|
|
|
|
"kylechui/nvim-surround",
|
|
|
|
|
event = "VeryLazy",
|
|
|
|
|
config = function()
|
|
|
|
|
require("nvim-surround").setup()
|
|
|
|
|
end
|
|
|
|
|
config = {}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- commenting improvements
|
|
|
|
|
{
|
|
|
|
|
'numToStr/Comment.nvim',
|
|
|
|
|
config = {}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- colorscheme
|
|
|
|
@ -452,6 +428,8 @@ return require("lazy").setup({
|
|
|
|
|
end
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
-- lazy.nvim configuration
|
|
|
|
|
{
|
|
|
|
|
ui = {
|
|
|
|
|
icons = Lazy_signs
|
|
|
|
|