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> Shift </kbd> <kbd> n </kbd> toggle line number
- <kbd> Ctrl </kbd> <kbd> a </kbd> copies everything in the current file - <kbd> Ctrl </kbd> <kbd> a </kbd> copies everything in the current file
- select any text + <kbd> y </kbd> copies the selected text - 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> 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> p </kbd> search and preview images with telescope
- leader + <kbd> f </kbd> <kbd> f </kbd> find files in the current DIR , 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_trailing_blankline_indent = false
g.indent_blankline_show_first_indent_level = false g.indent_blankline_show_first_indent_level = false
require("treesitter.lua") require "treesitter.lua"
require("mappings.lua") require "mappings.lua"
-- highlights -- -- highlights --
cmd "hi LineNr guifg=#42464e guibg=NONE" 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 clear CursorLine"
cmd "hi cursorlinenr guibg=NONE guifg=#abb2bf" 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 -- -- COPY EVERYTHING --
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt) 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 vim.o.termguicolors = true
g.nvim_tree_side = "left" g.nvim_tree_side = "left"
g.nvim_tree_width = 25 g.nvim_tree_width = 25
g.nvim_tree_ignore = {".git", "node_modules", ".cache"} g.nvim_tree_ignore = {".git", "node_modules", ".cache"}
@ -88,8 +86,6 @@ g.nvim_tree_bindings = {
["q"] = get_lua_cb("close") ["q"] = get_lua_cb("close")
} }
cmd "hi NvimTreeFolderIcon guifg = #61afef" cmd "hi NvimTreeFolderIcon guifg = #61afef"
cmd "hi NvimTreeFolderName guifg = #61afef" cmd "hi NvimTreeFolderName guifg = #61afef"
cmd "hi NvimTreeIndentMarker guifg=#383c44" cmd "hi NvimTreeIndentMarker guifg=#383c44"

View file

@ -7,27 +7,36 @@ return require("packer").startup(
use {"wbthomason/packer.nvim", opt = true} use {"wbthomason/packer.nvim", opt = true}
use {"lukas-reineke/indent-blankline.nvim", branch = "lua"} use {"lukas-reineke/indent-blankline.nvim", branch = "lua"}
-- color related stuff
use "norcalli/nvim-base16.lua" use "norcalli/nvim-base16.lua"
use "kyazdani42/nvim-web-devicons" use "norcalli/nvim-colorizer.lua"
use "kyazdani42/nvim-tree.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 "nvim-lua/plenary.nvim"
use "lewis6991/gitsigns.nvim" use "lewis6991/gitsigns.nvim"
use "akinsho/nvim-bufferline.lua" use "akinsho/nvim-bufferline.lua"
use "glepnir/galaxyline.nvim" 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 "windwp/nvim-autopairs"
use "alvan/vim-closetag" 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.nvim"
use "nvim-telescope/telescope-media-files.nvim" use "nvim-telescope/telescope-media-files.nvim"
use "nvim-lua/popup.nvim" use "nvim-lua/popup.nvim"
-- misc
use "tweekmonster/startuptime.vim"
use "907th/vim-auto-save"
use "kdav5758/TrueZen.nvim"
use "karb94/neoscroll.nvim" use "karb94/neoscroll.nvim"
end end
) )

View file

@ -6,9 +6,11 @@ ts_config.setup {
"html", "html",
"css", "css",
"bash", "bash",
"cpp", "lua",
"rust", "json"
"lua" -- "cpp",
-- "rust",
-- "python"
}, },
highlight = { highlight = {
enable = true, 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
}
}
)