More changes

This commit is contained in:
2022-07-04 14:47:07 +02:00
parent 7ec8924d10
commit cf85b92cad
3 changed files with 29 additions and 6 deletions

View File

@@ -60,6 +60,7 @@ require('window-picker').setup({
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
require('neo-tree').setup({
close_if_last_window = true,
window = {
width = 30,
mappings = {
@@ -70,7 +71,12 @@ require('neo-tree').setup({
filtered_items = {
visible = true
},
follow_current_file = true
follow_current_file = true,window = {
mappings = {
["/"] = "noop",
["g/"] = "fuzzy_finder"
}
}
}
})
@@ -80,15 +86,20 @@ vim.keymap.set("n", "<C-Left>", require('smart-splits').move_cursor_left)
vim.keymap.set("n", "<C-Down>", require('smart-splits').move_cursor_down)
vim.keymap.set("n", "<C-Up>", require('smart-splits').move_cursor_up)
vim.keymap.set("n", "<C-Right>", require('smart-splits').move_cursor_right)
vim.keymap.set("n", "<C-k>", require('smart-splits').resize_up)
vim.keymap.set("n", "<C-j>", require('smart-splits').resize_down)
vim.keymap.set("n", "<C-h>", require('smart-splits').resize_left)
vim.keymap.set("n", "<C-l>", require('smart-splits').resize_right)
vim.keymap.set("n", "<C-S-Up>", require('smart-splits').resize_up)
vim.keymap.set("n", "<C-S-Down>", require('smart-splits').resize_down)
vim.keymap.set("n", "<C-S-Left>", require('smart-splits').resize_left)
vim.keymap.set("n", "<C-S-Right>", require('smart-splits').resize_right)
require('bufdelete')
local colors = require('solarized.colors')
require('bufferline').setup{
options = {
close_command = "Bdelete %d",
right_mouse_command = "Bdelete %d",
offsets = {{filetype = "neo-tree", text = "File Explorer", padding = 1}},
enforce_regular_tabs = true,
separator_style = 'slant'
@@ -107,6 +118,7 @@ require('bufferline').setup{
}
vim.keymap.set("n", "<S-Right>", "<cmd>bnext<CR>", opts)
vim.keymap.set("n", "<S-Left>", "<cmd>bprevious<CR>", opts)
vim.keymap.set("n", "q", "<cmd>Bdelete<CR>", opts)
require('nvim-autopairs').setup{}
@@ -129,4 +141,8 @@ vim.o.spelllang = 'en'
vim.o.tabstop = 2
require("neo-tree.command")._command(vim.fn.getcwd())
if vim.fn.expand('%') == '' then
require("neo-tree.command")._command(vim.fn.getcwd())
else
require("neo-tree.command")._command("show", vim.fn.getcwd())
end

View File

@@ -28,6 +28,8 @@ return require('packer').startup(function()
use('mrjones2014/smart-splits.nvim')
use('famiu/bufdelete.nvim')
use {'akinsho/bufferline.nvim', tag = "v2.*", requires = 'kyazdani42/nvim-web-devicons'}
use('windwp/nvim-autopairs')