Remove old neovim config
This commit is contained in:
parent
b8c03461bb
commit
23cf0f1b2e
1 changed files with 0 additions and 85 deletions
|
@ -1,85 +0,0 @@
|
||||||
vim.opt.number = true
|
|
||||||
vim.opt.relativenumber = true
|
|
||||||
vim.opt.ignorecase = true
|
|
||||||
vim.opt.tabstop = 2
|
|
||||||
vim.opt.shiftwidth = 2
|
|
||||||
vim.opt.expandtab = true
|
|
||||||
|
|
||||||
vim.g.mapleader = ' '
|
|
||||||
|
|
||||||
vim.keymap.set('', '<Leader>tt', ':NvimTreeToggle<CR>')
|
|
||||||
|
|
||||||
vim.keymap.set('n', '<Leader>bl', ':buffers<CR>')
|
|
||||||
|
|
||||||
vim.cmd('colorscheme base16-material-darker')
|
|
||||||
|
|
||||||
require("transparent").setup({
|
|
||||||
enable = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
ensure_installed = { "vim", "c", "lua", "kotlin", "javascript", "typescript" },
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
rainbow = {
|
|
||||||
enable = true,
|
|
||||||
extended_mode = true,
|
|
||||||
max_file_lines = nil,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
require("nvim-tree").setup({
|
|
||||||
open_on_setup = false,
|
|
||||||
actions = {
|
|
||||||
open_file = {
|
|
||||||
quit_on_open = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
|
||||||
nested = true,
|
|
||||||
callback = function()
|
|
||||||
if #vim.api.nvim_list_wins() == 1 and require("nvim-tree.utils").is_nvim_tree_buf() then
|
|
||||||
vim.cmd "quit"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
require('lualine').setup({
|
|
||||||
options = {
|
|
||||||
theme = 'base16',
|
|
||||||
section_separators = { left = '', right = '' }
|
|
||||||
},
|
|
||||||
extensions = {'nvim-tree'}
|
|
||||||
})
|
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
|
||||||
use 'wbthomason/packer.nvim'
|
|
||||||
use {
|
|
||||||
'nvim-treesitter/nvim-treesitter',
|
|
||||||
run = function()
|
|
||||||
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
|
||||||
ts_update()
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
use 'p00f/nvim-ts-rainbow'
|
|
||||||
use 'jiangmiao/auto-pairs'
|
|
||||||
use {
|
|
||||||
'nvim-tree/nvim-tree.lua',
|
|
||||||
requires = {
|
|
||||||
'nvim-tree/nvim-web-devicons',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'nvim-lualine/lualine.nvim',
|
|
||||||
requires = {
|
|
||||||
'kyazdani42/nvim-web-devicons',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
use 'RRethy/nvim-base16'
|
|
||||||
use 'xiyaowong/nvim-transparent'
|
|
||||||
end)
|
|
||||||
|
|
Loading…
Reference in a new issue