summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua3
-rw-r--r--.config/nvim/lua/justsaumit/autopairs.lua11
-rw-r--r--.config/nvim/lua/justsaumit/colorscheme.lua7
-rw-r--r--.config/nvim/lua/justsaumit/options.lua2
-rw-r--r--.config/nvim/lua/justsaumit/plugins.lua15
-rw-r--r--.config/nvim/lua/justsaumit/treesitter-config.lua3
-rw-r--r--.config/nvim/plugin/packer_compiled.lua10
7 files changed, 49 insertions, 2 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index f6ac542..83b3a38 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -6,4 +6,5 @@ require("justsaumit.treesitter-config")
require("justsaumit.lualine-config")
require("justsaumit.bufferline-config")
require("justsaumit.lastplace-config")
-print ("while(!(success = try());")
+require("justsaumit.autopairs")
+print ("while(!(succeed = try() ) );")
diff --git a/.config/nvim/lua/justsaumit/autopairs.lua b/.config/nvim/lua/justsaumit/autopairs.lua
new file mode 100644
index 0000000..d0e1fad
--- /dev/null
+++ b/.config/nvim/lua/justsaumit/autopairs.lua
@@ -0,0 +1,11 @@
+local M = {}
+
+function M.setup()
+ local npairs = require "nvim-autopairs"
+ npairs.setup {
+ check_ts = true,
+ }
+ npairs.add_rules(require "nvim-autopairs.rules.endwise-lua")
+end
+
+return M
diff --git a/.config/nvim/lua/justsaumit/colorscheme.lua b/.config/nvim/lua/justsaumit/colorscheme.lua
index 684a272..67c166f 100644
--- a/.config/nvim/lua/justsaumit/colorscheme.lua
+++ b/.config/nvim/lua/justsaumit/colorscheme.lua
@@ -24,3 +24,10 @@ if not status_ok then
pywal.setup()
return
end
+
+-- init.lua
+vim.g.tokyodark_transparent_background = false
+vim.g.tokyodark_enable_italic_comment = true
+vim.g.tokyodark_enable_italic = true
+vim.g.tokyodark_color_gamma = "1.0"
+vim.cmd("colorscheme tokyodark")
diff --git a/.config/nvim/lua/justsaumit/options.lua b/.config/nvim/lua/justsaumit/options.lua
index 51caecc..377951a 100644
--- a/.config/nvim/lua/justsaumit/options.lua
+++ b/.config/nvim/lua/justsaumit/options.lua
@@ -2,7 +2,7 @@ local options = {
number=true, -- Shows absolute linenumber
relativenumber=true, -- Shows linenumber relative to cursor
--combination of both^ for hybrid linenumber
- textwidth=100,
+-- textwidth=100,
numberwidth=4,
scrolloff=8, -- keeps cursor in middle of screen/scrolls 8lines in advance
sidescroll=18,
diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua
index b8adbae..0a8b4fc 100644
--- a/.config/nvim/lua/justsaumit/plugins.lua
+++ b/.config/nvim/lua/justsaumit/plugins.lua
@@ -50,6 +50,7 @@ return packer.startup(function(use)
use {'nvim-treesitter/nvim-treesitter',run = ':TSUpdate'}
--ColorSchemes
use "folke/tokyonight.nvim"
+ use "tiagovla/tokyodark.nvim"
use { 'AlphaTechnolog/pywal.nvim', as = 'pywal' }
--Web-devicons
use "kyazdani42/nvim-web-devicons"
@@ -57,6 +58,20 @@ return packer.startup(function(use)
use {'nvim-lualine/lualine.nvim',requires = { 'kyazdani42/nvim-web-devicons', opt = true }}
--Bufferline
use {'akinsho/bufferline.nvim', tag = "v2.*", requires = 'kyazdani42/nvim-web-devicons'}
+--HTML
+ use 'windwp/nvim-ts-autotag'
+--cmp
+-- use 'neovim/nvim-lspconfig'
+-- use 'hrsh7th/cmp-nvim-lsp'
+-- use 'hrsh7th/cmp-buffer'
+-- use 'hrsh7th/cmp-path'
+-- use 'hrsh7th/cmp-cmdline'
+-- use 'hrsh7th/nvim-cmp'
+
+--Autopairs for HTML
+ --use {"windwp/nvim-autopairs", wants = "nvim-treesitter", module = { "nvim-autopairs.completion.cmp", "nvim-autopairs" }, config = function()
+ --require("config.autopairs").setup() end,}
+
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
diff --git a/.config/nvim/lua/justsaumit/treesitter-config.lua b/.config/nvim/lua/justsaumit/treesitter-config.lua
index 7d54f2a..17dbc62 100644
--- a/.config/nvim/lua/justsaumit/treesitter-config.lua
+++ b/.config/nvim/lua/justsaumit/treesitter-config.lua
@@ -14,4 +14,7 @@ require'nvim-treesitter.configs'.setup {
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
+ autotag = {
+ enable = true,
+ }
}
diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua
index 19b2e0c..6f54caa 100644
--- a/.config/nvim/plugin/packer_compiled.lua
+++ b/.config/nvim/plugin/packer_compiled.lua
@@ -94,6 +94,11 @@ _G.packer_plugins = {
path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
+ ["nvim-ts-autotag"] = {
+ loaded = true,
+ path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag",
+ url = "https://github.com/windwp/nvim-ts-autotag"
+ },
["nvim-web-devicons"] = {
loaded = true,
path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
@@ -119,6 +124,11 @@ _G.packer_plugins = {
path = "/home/saumit/.local/share/nvim/site/pack/packer/start/pywal",
url = "https://github.com/AlphaTechnolog/pywal.nvim"
},
+ ["tokyodark.nvim"] = {
+ loaded = true,
+ path = "/home/saumit/.local/share/nvim/site/pack/packer/start/tokyodark.nvim",
+ url = "https://github.com/tiagovla/tokyodark.nvim"
+ },
["tokyonight.nvim"] = {
loaded = true,
path = "/home/saumit/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",