1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-05-13 11:17:45 +02:00

Compare commits

..

No commits in common. "2c6e2089a2876d8f4e7c110b00119a727b170720" and "62ee4ff09a4aa8c077d74b9a9fb3792b1561b2bc" have entirely different histories.

4 changed files with 103 additions and 118 deletions

View File

@ -1,169 +1,156 @@
-- loadplugins -- loadplugins
-- bootstrap lazy -- bootstrap packer
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local ensure_packer = function()
if not vim.loop.fs_stat(lazypath) then local fn = vim.fn
vim.fn.system({ local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
"git", if fn.empty(fn.glob(install_path)) > 0 then
"clone", fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path })
"--filter=blob:none", vim.cmd [[packadd packer.nvim]]
"https://github.com/folke/lazy.nvim.git", return true
"--branch=stable", -- latest stable release end
lazypath, return false
})
end end
vim.opt.rtp:prepend(lazypath)
local packer_bootstrap = ensure_packer()
-- load plugins with packer
return require("packer").startup(function(use)
-- package manager (first entry)
use { 'wbthomason/packer.nvim' }
return require("lazy").setup({
-- indicate git diff status of line -- indicate git diff status of line
'lewis6991/gitsigns.nvim', use { 'lewis6991/gitsigns.nvim' }
-- show indentation lines (in empty lines too) -- show indentation lines (in empty lines too)
'lukas-reineke/indent-blankline.nvim', use { 'lukas-reineke/indent-blankline.nvim' }
-- improved java syntax highlighting -- improved java syntax highlighting
{ use { 'uiiaoo/java-syntax.vim',
'uiiaoo/java-syntax.vim', ft = { 'java' }
ft = { 'java' }, }
},
-- custom statusline -- custom statusline
{ use { 'nvim-lualine/lualine.nvim',
'nvim-lualine/lualine.nvim', requires = { 'nvim-tree/nvim-web-devicons' }
dependencies = { 'nvim-tree/nvim-web-devicons', } }
},
-- show signature while typing -- show signature while typing
'ray-x/lsp_signature.nvim', use { 'ray-x/lsp_signature.nvim' }
-- preview for markdown filetypes -- preview for markdown filetypes
{ use { "iamcco/markdown-preview.nvim",
"iamcco/markdown-preview.nvim", ft = { 'md' },
ft = { 'markdown' }, run = "cd app && npm install"
build = "cd app && yarn install", }
},
-- latex asynchronous pdf rendering -- latex asynchronous pdf rendering
{ use { 'donRaphaco/neotex',
'donRaphaco/neotex', ft = { 'tex' }
ft = { 'tex' }, }
},
-- nim language support -- nim language support
{ use { 'zah/nim.vim',
'zah/nim.vim', ft = { 'nim' }
ft = { 'nim' }, }
},
-- automatic closing of brackets -- automatic closing of brackets
'windwp/nvim-autopairs', use { 'windwp/nvim-autopairs' }
-- autocompletion and its sources -- autocompletion and its sources
{ use { 'hrsh7th/nvim-cmp',
'hrsh7th/nvim-cmp', requires = { 'hrsh7th/cmp-buffer',
dependencies = { 'hrsh7th/cmp-buffer',
-- standalone cmp sources
'hrsh7th/cmp-path', 'hrsh7th/cmp-path',
'lukas-reineke/cmp-under-comparator',
-- lsp cmp source
'neovim/nvim-lspconfig',
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lsp',
'onsails/lspkind-nvim', 'lukas-reineke/cmp-under-comparator',
-- luasnip cmp source 'antoinemadec/fixcursorhold.nvim',
'l3mon4d3/luasnip', 'l3mon4d3/luasnip',
'saadparwaiz1/cmp_luasnip', 'saadparwaiz1/cmp_luasnip',
-- lang server management 'neovim/nvim-lspconfig',
'onsails/lspkind-nvim',
'williamboman/mason.nvim', 'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'jose-elias-alvarez/null-ls.nvim', 'jose-elias-alvarez/null-ls.nvim',
'LostNeophyte/null-ls-embedded', 'LostNeophyte/null-ls-embedded',
'jay-babu/mason-null-ls.nvim',
-- dependencies
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
}, 'jay-babu/mason-null-ls.nvim'
}, }
}
-- fix for cursorhold function
'antoinemadec/fixcursorhold.nvim',
-- showing color of hex values, etc -- showing color of hex values, etc
'norcalli/nvim-colorizer.lua', use { 'norcalli/nvim-colorizer.lua' }
-- show tags -- show tags
{ use { "SmiteshP/nvim-navbuddy",
"SmiteshP/nvim-navbuddy", requires = {
dependencies = {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
"SmiteshP/nvim-navic", "SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
}, }
}, }
-- fileexplorer on the side -- fileexplorer on the side
{ use { "nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-tree.lua", requires = {
dependencies = {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
}, }
}, }
-- better language highlighting by improved parsing -- better language highlighting by improved parsing
'nvim-treesitter/nvim-treesitter', use { 'nvim-treesitter/nvim-treesitter' }
-- automatically close html-tags -- automatically close html-tags
{ use { 'windwp/nvim-ts-autotag',
'windwp/nvim-ts-autotag', requires = { 'nvim-treesitter/nvim-treesitter' }
dependencies = { 'nvim-treesitter/nvim-treesitter' }, }
},
-- folding improvements -- folding improvements
{ use { 'kevinhwang91/nvim-ufo',
'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async' }
dependencies = { 'kevinhwang91/promise-async' },
},
-- colorful brackets -- colorful brackets
'luochen1990/rainbow', use { 'luochen1990/rainbow' }
-- fuzzy finder -- fuzzy finder
{ use {
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
version = '0.1.2', tag = '0.1.2',
dependencies = { 'nvim-lua/plenary.nvim' }, requires = { 'nvim-lua/plenary.nvim' }
}, }
-- clean up white spaces and empty lines before writing -- clean up white spaces and empty lines before writing
"mcauley-penney/tidy.nvim", use { "mcauley-penney/tidy.nvim" }
-- todo symbols and highlighting -- todo symbols and highlighting
{ use { 'folke/todo-comments.nvim',
'folke/todo-comments.nvim', requires = { 'nvim-lua/plenary.nvim' }
dependencies = { 'nvim-lua/plenary.nvim' }, }
},
-- git wrapper -- git wrapper
'tpope/vim-fugitive', use { 'tpope/vim-fugitive' }
-- golang language support -- golang language support
{ use { 'fatih/vim-go',
'fatih/vim-go', ft = { 'go' }
ft = { 'go' }, }
},
-- markdown language support -- markdown language support
{ use { 'preservim/vim-markdown',
'preservim/vim-markdown', ft = { 'md' },
ft = { 'markdown' }, requires = { 'godlygeek/tabular' }
dependencies = { 'godlygeek/tabular' }, }
},
-- bulk renamer -- bulk renamer
'qpkorr/vim-renamer', use { 'qpkorr/vim-renamer' }
-- additional quote/parantheses funtions -- additional quote/parantheses funtions
'tpope/vim-surround', use { 'tpope/vim-surround' }
-- colorscheme -- colorscheme
'tiyn/vim-tccs', use { 'tiyn/vim-tccs' }
})
-- package manager sync (last entry)
if packer_bootstrap then
require('packer').sync()
end
end)

View File

@ -3,10 +3,10 @@ require('lualine').setup {
options = { options = {
icons_enabled = true, icons_enabled = true,
symbols = { symbols = {
error = ' ', error = '',
warn = ' ', warn = '',
hint = ' ', hint = '',
info = ' ', info = '',
}, },
theme = 'tccs', theme = 'tccs',
component_separators = { left = '', right = '' }, component_separators = { left = '', right = '' },

View File

@ -126,10 +126,8 @@ require("mason-null-ls").setup({
require "lsp_signature".setup({ require "lsp_signature".setup({
bind = true, bind = true,
handler_opts = { handler_opts = {
border = "none" border = "rounded"
}, }
hint_prefix = "",
hint_scheme = "DiagnosticSignHint",
}) })
-- smiteshp/nvim-navbuddy -- smiteshp/nvim-navbuddy
@ -189,17 +187,17 @@ require('ufo').setup()
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignError", "DiagnosticSignError",
{ texthl = "DiagnosticSignError", text = " ", numhl = "DiagnosticSignError" } { texthl = "DiagnosticSignError", text = "", numhl = "DiagnosticSignError" }
) )
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignWarn", "DiagnosticSignWarn",
{ texthl = "DiagnosticSignWarn", text = " ", numhl = "DiagnosticSignWarn" } { texthl = "DiagnosticSignWarn", text = "", numhl = "DiagnosticSignWarn" }
) )
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignInfo", "DiagnosticSignInfo",
{ texthl = "DiagnosticSignInfo", text = " ", numhl = "DiagnosticSignInfo" } { texthl = "DiagnosticSignInfo", text = "", numhl = "DiagnosticSignInfo" }
) )
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignHint", "DiagnosticSignHint",
{ texthl = "DiagnosticSignHint", text = " ", numhl = "DiagnosticSignHint" } { texthl = "DiagnosticSignHint", text = "", numhl = "DiagnosticSignHint" }
) )

View File

@ -6,12 +6,12 @@ require 'todo-comments'.setup {
-- keywords recognized as todo comments -- keywords recognized as todo comments
keywords = { keywords = {
ERRO = { icon = "", color = "error" }, ERRO = { icon = "", color = "error" },
TODO = { icon = "", color = "info" },
WARN = { icon = "", color = "warning" }, WARN = { icon = "", color = "warning" },
HACK = { icon = "", color = "warning" }, HACK = { icon = "", color = "warning" },
HINT = { icon = "", color = "hint" },
TODO = { icon = "", color = "hint" },
INFO = { icon = "", color = "info", alt = { "NOTE" } },
PERF = { icon = "", color = "perfect" }, PERF = { icon = "", color = "perfect" },
HINT = { icon = "", color = "hint" },
INFO = { icon = "", color = "hint", alt = { "NOTE" } },
TEST = { icon = "", color = "test" }, TEST = { icon = "", color = "test" },
}, },
gui_style = { gui_style = {
@ -40,10 +40,10 @@ require 'todo-comments'.setup {
colors = { colors = {
error = { "DiagnosticSignError", "ErrorMsg", "#DC2626" }, error = { "DiagnosticSignError", "ErrorMsg", "#DC2626" },
warning = { "DiagnosticSignWarn", "WarningMsg", "#FBBF24" }, warning = { "DiagnosticSignWarn", "WarningMsg", "#FBBF24" },
hint = { "DiagnosticSignHint", "#10B981" }, info = { "Comment", "#2563EB" },
info = { "DiagnosticSignInfo", "#999999" }, hint = { "Constant", "#10B981" },
perfect = { "Special", "#FF00FF" }, perfect = { "Operator", "#7C3AED" },
test = { "Identifier", "#00dddd" } test = { "Function", "#FF00FF" }
}, },
search = { search = {
command = "rg", command = "rg",