add TrueZen.nvim plugin

This commit is contained in:
siduck76 2021-04-20 09:45:14 +05:30
parent 2c1af5727a
commit 41e059ac2b
7 changed files with 71 additions and 20 deletions

View File

@ -168,6 +168,8 @@ I'd install it first and add its setup line :
- <kbd> Shift </kbd> <kbd> n </kbd> toggle line number
- <kbd> Ctrl </kbd> <kbd> a </kbd> copies everything in the current file
- select any text + <kbd> y </kbd> copies the selected text
- leader + <kbd> z </kbd> toggle truezen.nvim's Ataraxis mode
- leader + <kbd> n </kbd> toggle line number
- leader + <kbd> f </kbd> <kbd> b </kbd> open all buffers , with telescope
- leader + <kbd> f </kbd> <kbd> p </kbd> search and preview images with telescope
- leader + <kbd> f </kbd> <kbd> f </kbd> find files in the current DIR , with telescope

View File

@ -42,8 +42,8 @@ g.indent_blankline_buftype_exclude = {"terminal"}
g.indent_blankline_show_trailing_blankline_indent = false
g.indent_blankline_show_first_indent_level = false
require("treesitter.lua")
require("mappings.lua")
require "treesitter.lua"
require "mappings.lua"
-- highlights --
cmd "hi LineNr guifg=#42464e guibg=NONE"
@ -84,3 +84,6 @@ cmd("highlight! StatusLineNC gui=underline guibg=NONE guifg=#383c44")
cmd "hi clear CursorLine"
cmd "hi cursorlinenr guibg=NONE guifg=#abb2bf"
-- setup for TrueZen.nvim
require "zenmode.lua"

View File

@ -15,3 +15,9 @@ map("n", "<C-x>", [[<Cmd> split term://bash | resize 10 <CR>]], opt) -- open ter
-- COPY EVERYTHING --
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt)
-- toggle numbers ---
map("n", "<leader>n", [[ <Cmd> set nu!<CR>]], opt)
-- toggle truezen.nvim's ataraxis mode
map("n", "<leader>z", [[ <Cmd> TZAtaraxis<CR>]], opt)

View File

@ -5,8 +5,6 @@ cmd [[packadd nvim-tree.lua]]
vim.o.termguicolors = true
g.nvim_tree_side = "left"
g.nvim_tree_width = 25
g.nvim_tree_ignore = {".git", "node_modules", ".cache"}
@ -88,8 +86,6 @@ g.nvim_tree_bindings = {
["q"] = get_lua_cb("close")
}
cmd "hi NvimTreeFolderIcon guifg = #61afef"
cmd "hi NvimTreeFolderName guifg = #61afef"
cmd "hi NvimTreeIndentMarker guifg=#383c44"

View File

@ -7,27 +7,36 @@ return require("packer").startup(
use {"wbthomason/packer.nvim", opt = true}
use {"lukas-reineke/indent-blankline.nvim", branch = "lua"}
-- color related stuff
use "norcalli/nvim-base16.lua"
use "kyazdani42/nvim-web-devicons"
use "kyazdani42/nvim-tree.lua"
use "norcalli/nvim-colorizer.lua"
-- lsp stuff
use "nvim-treesitter/nvim-treesitter"
use "neovim/nvim-lspconfig"
use "hrsh7th/nvim-compe"
use "onsails/lspkind-nvim"
use "sbdchd/neoformat"
use "nvim-lua/plenary.nvim"
use "lewis6991/gitsigns.nvim"
use "akinsho/nvim-bufferline.lua"
use "glepnir/galaxyline.nvim"
use "907th/vim-auto-save"
use "nvim-treesitter/nvim-treesitter"
use "norcalli/nvim-colorizer.lua"
use "ryanoasis/vim-devicons"
use "sbdchd/neoformat"
use "neovim/nvim-lspconfig"
use "hrsh7th/nvim-compe"
use "windwp/nvim-autopairs"
use "alvan/vim-closetag"
use "tweekmonster/startuptime.vim"
use "onsails/lspkind-nvim"
-- file managing , picker etc
use "kyazdani42/nvim-tree.lua"
use "kyazdani42/nvim-web-devicons"
use "ryanoasis/vim-devicons"
use "nvim-telescope/telescope.nvim"
use "nvim-telescope/telescope-media-files.nvim"
use "nvim-lua/popup.nvim"
-- misc
use "tweekmonster/startuptime.vim"
use "907th/vim-auto-save"
use "kdav5758/TrueZen.nvim"
use "karb94/neoscroll.nvim"
end
)

View File

@ -6,9 +6,11 @@ ts_config.setup {
"html",
"css",
"bash",
"cpp",
"rust",
"lua"
"lua",
"json"
-- "cpp",
-- "rust",
-- "python"
},
highlight = {
enable = true,

33
lua/zenmode/lua.lua Normal file
View File

@ -0,0 +1,33 @@
require("true-zen").setup(
{
true_false_commands = false,
cursor_by_mode = false,
bottom = {
hidden_laststatus = 0,
hidden_ruler = false,
hidden_showmode = false,
hidden_showcmd = false,
hidden_cmdheight = 1,
shown_laststatus = 2,
shown_ruler = true,
shown_showmode = false,
shown_showcmd = false,
shown_cmdheight = 1
},
top = {
hidden_showtabline = 0,
shown_showtabline = 2
},
left = {
hidden_number = false,
hidden_relativenumber = false,
hidden_signcolumn = "no",
shown_number = true,
shown_relativenumber = false,
shown_signcolumn = "no"
},
ataraxis = {
left_right_padding = 40
}
}
)