Compare commits
3 Commits
2c90146c17
...
7b098b83ae
Author | SHA1 | Date |
---|---|---|
fanyx | 7b098b83ae | |
fanyx | c92e992f56 | |
fanyx | a32043a1ee |
|
@ -5,8 +5,8 @@
|
|||
[includeIf "gitdir:~/b1/"]
|
||||
path = ~/b1/.config/git/config
|
||||
|
||||
[includeIf "gitdir:~/b1/sap/"]
|
||||
path = ~/b1/sap/.config/git/config
|
||||
[includeIf "gitdir:~/b1/customer/sap/"]
|
||||
path = ~/b1/customer/sap/.config/git/config
|
||||
|
||||
[alias]
|
||||
co = checkout
|
||||
|
|
|
@ -17,7 +17,7 @@ vim.g.mapleader = " "
|
|||
require("lazy").setup("plugins", {
|
||||
defaults = { lazy = true },
|
||||
install = { colorscheme = { "tokyonight" } },
|
||||
checker = { enabled = true },
|
||||
checker = { enabled = false },
|
||||
change_detection = { notify = false },
|
||||
performance = {
|
||||
rtp = {
|
||||
|
|
|
@ -2,7 +2,7 @@ require("config.settings")
|
|||
require("config.yaml")
|
||||
|
||||
-- Remaps
|
||||
vim.keymap.set("n", "<leader>ex", vim.cmd.Ex)
|
||||
vim.keymap.set("n", "<leader><C-e>", vim.cmd.Ex)
|
||||
|
||||
-- Telescope
|
||||
local builtin = require('telescope.builtin')
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
return {
|
||||
{
|
||||
"mbbill/undotree",
|
||||
cmd = { "UndotreeShow", "UndotreeToggle", "UndotreeHide", "UndotreeFocus" },
|
||||
},
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
}
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
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 }
|
|
@ -1,31 +0,0 @@
|
|||
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 }
|
|
@ -50,8 +50,8 @@ HISTCONTROL=ignoreboth
|
|||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
HISTSIZE=50000
|
||||
HISTFILESIZE=50000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
|
|
Loading…
Reference in New Issue