diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
commit | c419b97b5cc61127ca2b7f9839a588c2ee3e7353 (patch) | |
tree | 623e75923db712e700a447fbb48c0f7105836f8d /config/nvim/lua/master/plugins | |
parent | 395efb9df45b2000ef6aa11d2c9b7b1904b8c586 (diff) |
directory name changed from dotfiles to config
Diffstat (limited to 'config/nvim/lua/master/plugins')
-rw-r--r-- | config/nvim/lua/master/plugins/comment.lua | 28 | ||||
-rw-r--r-- | config/nvim/lua/master/plugins/gruvbox.lua | 27 | ||||
-rw-r--r-- | config/nvim/lua/master/plugins/neotree.lua | 34 | ||||
-rw-r--r-- | config/nvim/lua/master/plugins/nvim-autopairs.lua | 6 | ||||
-rw-r--r-- | config/nvim/lua/master/plugins/toggleterm.lua | 13 |
5 files changed, 108 insertions, 0 deletions
diff --git a/config/nvim/lua/master/plugins/comment.lua b/config/nvim/lua/master/plugins/comment.lua new file mode 100644 index 0000000..66dcbc5 --- /dev/null +++ b/config/nvim/lua/master/plugins/comment.lua @@ -0,0 +1,28 @@ +require('Comment').setup{ + + ---Add a space b/w comment and the line + padding = true, + + ---Whether the cursor should stay at its position + sticky = true, + + ---Lines to be ignored while (un)comment + ignore = nil, + + ---LHS of toggle mappings in NORMAL mode + toggler = { + ---Line-comment toggle keymap + line = 'cc', + ---Block-comment toggle keymap + block = 'cb', + }, + + ---LHS of operator-pending mappings in NORMAL and VISUAL mode + opleader = { + ---Line-comment keymap + line = 'cc', + ---Block-comment keymap + block = 'cb', + }, + +} diff --git a/config/nvim/lua/master/plugins/gruvbox.lua b/config/nvim/lua/master/plugins/gruvbox.lua new file mode 100644 index 0000000..01ad938 --- /dev/null +++ b/config/nvim/lua/master/plugins/gruvbox.lua @@ -0,0 +1,27 @@ +-- Default options: +require("gruvbox").setup({ + terminal_colors = true, -- add neovim terminal colors + undercurl = true, + underline = true, + bold = true, + italic = { + strings = true, + emphasis = true, + comments = true, + operators = false, + folds = true, + }, + + strikethrough = true, + invert_selection = false, + invert_signs = false, + invert_tabline = false, + invert_intend_guides = false, + inverse = true, -- invert background for search, diffs, statuslines and errors + contrast = "", -- can be "hard", "soft" or empty string + palette_overrides = {}, + overrides = {}, + dim_inactive = false, + transparent_mode = false, +}) + diff --git a/config/nvim/lua/master/plugins/neotree.lua b/config/nvim/lua/master/plugins/neotree.lua new file mode 100644 index 0000000..abdf1fc --- /dev/null +++ b/config/nvim/lua/master/plugins/neotree.lua @@ -0,0 +1,34 @@ +require("neo-tree").setup({ + --Setup + filesystem = { + window = { + mappings = { + ["l"] = "open", + ["h"] = "close_node", + ["zh"] = "toggle_hidden", + ["H"] = "close_all_nodes", + } + } + }, + + --Indent Markers + default_component_configs = { + indent = { + with_markers = true, + indent_marker = "│", + last_indent_marker = "└", + indent_size = 2, + }, + }, + + --Expanders + default_component_configs = { + indent = { + with_expanders = false, --Not active + expander_collapsed = "", + expander_expanded = "", + expander_highlight = "NeoTreeExpander", + }, + }, + +}) diff --git a/config/nvim/lua/master/plugins/nvim-autopairs.lua b/config/nvim/lua/master/plugins/nvim-autopairs.lua new file mode 100644 index 0000000..0649588 --- /dev/null +++ b/config/nvim/lua/master/plugins/nvim-autopairs.lua @@ -0,0 +1,6 @@ +require('nvim-autopairs').setup({ + disable_filetype = { "TelescopePrompt", "spectre_panel", "neo-tree-popup", "conf"}, + disable_in_macro = true, + disable_in_visualblock = false, + disable_in_replace_mode = true, +}) diff --git a/config/nvim/lua/master/plugins/toggleterm.lua b/config/nvim/lua/master/plugins/toggleterm.lua new file mode 100644 index 0000000..79c3488 --- /dev/null +++ b/config/nvim/lua/master/plugins/toggleterm.lua @@ -0,0 +1,13 @@ +require("toggleterm").setup{ + size = 6, + open_mapping = [[<c-f>]], + hide_numbers = true, + shade_terminals = true, + direction = "float", + + float_opts = { + border = 'curved', + winblend = 10, --transparency + } + +} |