More changes
This commit is contained in:
@@ -184,6 +184,11 @@ font_family DejaVuSansMono
|
||||
|
||||
#: map cmd+shift+v paste_from_buffer a1
|
||||
|
||||
map ctrl+shift+up send_text application \033[0A
|
||||
map ctrl+shift+right send_text application \033[0C
|
||||
map ctrl+shift+down send_text application \033[0B
|
||||
map ctrl+shift+left send_text application \033[0D
|
||||
|
||||
#: Note that copying to the clipboard is a security risk, as all
|
||||
#: programs, including websites open in your browser can read the
|
||||
#: contents of the system clipboard.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
if vim.fn.expand('%') == '' then
|
||||
require("neo-tree.command")._command(vim.fn.getcwd())
|
||||
else
|
||||
require("neo-tree.command")._command("show", vim.fn.getcwd())
|
||||
end
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user