summaryrefslogtreecommitdiff
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-09-06 01:38:28 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-09-06 01:38:28 +0530
commit40cd75c0d1be2210fc1253d378fb679e9f11a95c (patch)
tree602065746b658595df1769e4eb5dcde9a5f89252 /.config/nvim/lua
parent0c0e96817349068eca2ddd900f5adc617784f01a (diff)
nvim autopairs html
Diffstat (limited to '.config/nvim/lua')
-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
5 files changed, 37 insertions, 1 deletions
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,
+ }
}