Compare commits

..

No commits in common. "7b098b83ae8e67a89e152d17256245f8829d1134" and "2c90146c1758d66eae19fbf7284246db32ba15d7" have entirely different histories.

7 changed files with 110 additions and 6 deletions

View File

@ -5,8 +5,8 @@
[includeIf "gitdir:~/b1/"]
path = ~/b1/.config/git/config
[includeIf "gitdir:~/b1/customer/sap/"]
path = ~/b1/customer/sap/.config/git/config
[includeIf "gitdir:~/b1/sap/"]
path = ~/b1/sap/.config/git/config
[alias]
co = checkout

View File

@ -17,7 +17,7 @@ vim.g.mapleader = " "
require("lazy").setup("plugins", {
defaults = { lazy = true },
install = { colorscheme = { "tokyonight" } },
checker = { enabled = false },
checker = { enabled = true },
change_detection = { notify = false },
performance = {
rtp = {

View File

@ -2,7 +2,7 @@ require("config.settings")
require("config.yaml")
-- Remaps
vim.keymap.set("n", "<leader><C-e>", vim.cmd.Ex)
vim.keymap.set("n", "<leader>ex", vim.cmd.Ex)
-- Telescope
local builtin = require('telescope.builtin')

View File

@ -1,4 +1,8 @@
return {
{
"mbbill/undotree",
cmd = { "UndotreeShow", "UndotreeToggle", "UndotreeHide", "UndotreeFocus" },
},
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
}

View File

@ -0,0 +1,69 @@
local function on_attach(bufnr)
local api = require("nvim-tree.api")
local function opts(desc)
return { desc = "Tree: " .. desc, buffer = bufnr, noremap = true,
silent = true, nowait = true }
end
vim.keymap.set("n", "<CR>", api.node.open.edit, opts("Open"))
end
local tree = {
'nvim-tree/nvim-tree.lua',
lazy = false,
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
on_attach = on_attach,
disable_netrw = true,
sort_by = "case_sensitive",
view = {
adaptive_size = true,
centralize_selection = true,
number = true,
relativenumber = true,
},
renderer = {
group_empty = true,
highlight_git = true,
},
filters = {
dotfiles = true,
},
update_focused_file = {
enable = true,
},
actions = {
change_dir = {
enable = false,
},
},
},
}
local function is_modified_buffer_open(buffers)
for _, v in pairs(buffers) do
if v.name:match("NvimTree_") == nil then
return true
end
end
return false
end
-- [[
vim.api.nvim_create_autocmd("BufEnter", {
nested = true,
callback = function()
if
#vim.api.nvim_list_wins() == 1
and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil
and is_modified_buffer_open(vim.fn.getbufinfo({ bufmodified = 1 })) == false
then
vim.cmd("quit")
end
end,
})
-- ]]
return { tree }

View File

@ -0,0 +1,31 @@
local treesitter = {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
end,
opts = {
ensure_installed = {
"bash",
"css",
"dockerfile",
"elixir",
"git_rebase",
"gitcommit",
"gitignore",
"go",
"html",
"json",
"lua",
"markdown",
"php",
"python",
"rust",
"sql",
"toml",
"yaml",
}
}
}
return { treesitter }

View File

@ -50,8 +50,8 @@ HISTCONTROL=ignoreboth
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=50000
HISTFILESIZE=50000
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.