Tuning config files

Finetuning of config files, formatting them
This commit is contained in:
2026-06-26 16:25:37 +02:00
parent 2f643c1e1f
commit 0adb83f3e4
2 changed files with 107 additions and 74 deletions
+51 -40
View File
@@ -1,8 +1,17 @@
local fn = vim.fn
-- ----------------------------------------------------------------------------
local function system(command)
local file = assert(io.popen(command, 'r'))
local output = file:read('*all'):gsub("%s+", "")
file:close()
return output
end
vim.g.localaded_python3_provider = system("which python3")
-- ------------------------------------------------------------------------------------------------
-- Automatically install packer
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
@@ -22,9 +31,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
]]
end
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
-- Autocommand that reloads neovim whenever you save the plugins.lua file
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
vim.cmd [[
augroup packer_user_config
autocmd!
@@ -32,17 +41,17 @@ vim.cmd [[
augroup end
]]
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
-- Use a protected call so we don't error out on first use
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
local status, packer = pcall(require, "packer")
if not status then
return
end
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
-- Have packer use a popup window
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
packer.init {
display = {
open_fn = function()
@@ -51,36 +60,36 @@ packer.init {
},
}
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
-- Install plugins
-- ----------------------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------
return packer.startup(function(use)
vim.tbl_islist = vim.islist
-- ------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- Have packer manage itself
-- ------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use "wbthomason/packer.nvim"
use "lewis6991/impatient.nvim"
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- web devicons used by e.g.: nvim-tree, lualine, ...
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
use "kyazdani42/nvim-web-devicons"
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- colorschemas
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
use { "bluz71/vim-nightfly-colors", as = "nighfly" }
use { "bluz71/vim-moonfly-colors", as = "moonfly" }
use { "rebelot/kanagawa.nvim", as = "kanagawa"}
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- lualine (status line)
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"nvim-lualine/lualine.nvim",
@@ -89,9 +98,9 @@ return packer.startup(function(use)
end
}
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- telescope
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"nvim-telescope/telescope.nvim",
-- branch = "0.1.x",
@@ -108,9 +117,9 @@ return packer.startup(function(use)
end
}
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- nvim-tree
-- ----------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"nvim-tree/nvim-tree.lua",
@@ -119,9 +128,9 @@ return packer.startup(function(use)
end
}
-- --------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
-- autocompletion
-- --------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
use {
"hrsh7th/nvim-cmp",
@@ -139,18 +148,18 @@ return packer.startup(function(use)
end
}
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- autocompletion/snippets
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"L3MON4D3/LuaSnip", -- Required
"rafamadriz/friendly-snippets", -- Optional
run = "make install_jsregexp"
}
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- bufferline - mz
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"akinsho/bufferline.nvim",
tag = "*",
@@ -165,17 +174,17 @@ return packer.startup(function(use)
}
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- fzf - mz
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"junegunn/fzf.vim",
requires = { 'junegunn/fzf', run = ':call fzf#install()' }
}
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- nvim-treesitter - mz
-- --------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- use {
-- 'nvim-treesitter/nvim-treesitter',
-- branch = "master",
@@ -196,14 +205,15 @@ return packer.startup(function(use)
-- end
-- }
--
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- which-key
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use "folke/which-key.nvim"
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- toggle-fullscreen - 2026-05-31
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- use {
-- "propet/toggle-fullscreen.nvim",
-- config = function()
@@ -211,9 +221,10 @@ return packer.startup(function(use)
-- end
-- }
--
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- maximizer - 2026-05-31
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
use {
"0x00-ketsu/maximizer.nvim",
config = function()
@@ -225,10 +236,10 @@ return packer.startup(function(use)
end
}
-- -------------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- Automatically set up your configuration after cloning packer.nvim.
-- Put this at the end after all plugins.
-- -------------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
if PACKER_BOOTSTRAP then
require("packer").sync()
end