Change theme and enable treesitter autotagger

This commit is contained in:
sfigato 2022-05-09 17:54:16 +02:00
parent b4555918e1
commit 5b0e1565ed
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
4 changed files with 117 additions and 103 deletions

View File

@ -1,6 +1,6 @@
local cmd = vim.cmd
local utils = require 'config.utils'
local let = utils.let
-- local cmd = vim.cmd
-- local utils = require 'config.utils'
-- local let = utils.let
-- Nortia
-- cmd([[
@ -29,7 +29,7 @@ end}
require('lualine').setup({
options = {
theme = "tokyonight",
-- theme = "melange",
-- theme = "github"
-- section_separators = {'', ''},
-- component_separators = {'', ''}
@ -51,6 +51,7 @@ require('lualine').setup({
-- })
-- vim.g.tokyonight_style = "storm"
-- vim.g.tokyonight_style = "day"
vim.g.tokyonight_style = "night"
vim.g.tokyonight_italic_functions = true
cmd[[colorscheme tokyonight]]
-- vim.g.tokyonight_style = "night"
-- vim.g.tokyonight_italic_functions = true
vim.opt.termguicolors = true
vim.cmd("colorscheme melange")

View File

@ -1,4 +1,7 @@
require('nvim-treesitter.configs').setup {
autotag = {
enable = true,
},
highlight = {
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.

View File

@ -16,14 +16,14 @@ local function init()
-- nvim-mapper to explore mappings
use {
"lazytanuki/nvim-mapper",
config = function() require("nvim-mapper").setup{} end,
config = function() require("nvim-mapper").setup {} end,
before = "telescope.nvim"
}
-- telescope.nvim
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}},
requires = { { 'nvim-lua/popup.nvim' }, { 'nvim-lua/plenary.nvim' } },
config = function() require("telescope").load_extension("mapper") end
}
@ -44,10 +44,11 @@ local function init()
-- use 'vim-airline/vim-airline'
-- use 'vim-airline/vim-airline-themes'
-- use 'projekt0n/github-nvim-theme'
use 'folke/tokyonight.nvim'
-- use 'folke/tokyonight.nvim'
use 'savq/melange'
use {
'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true}
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
}
-- Coc
@ -81,6 +82,9 @@ local function init()
-- Black, python formatter
use 'psf/black'
-- Autotag completer
use 'windwp/nvim-ts-autotag'
end
local plugins = setmetatable({}, {

View File

@ -89,6 +89,11 @@ _G.packer_plugins = {
path = "/home/leo/.local/share/nvim/site/pack/packer/start/lualine.nvim",
url = "https://github.com/nvim-lualine/lualine.nvim"
},
melange = {
loaded = true,
path = "/home/leo/.local/share/nvim/site/pack/packer/start/melange",
url = "https://github.com/savq/melange"
},
["nginx.vim"] = {
loaded = true,
path = "/home/leo/.local/share/nvim/site/pack/packer/start/nginx.vim",
@ -120,6 +125,11 @@ _G.packer_plugins = {
path = "/home/leo/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects",
url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
},
["nvim-ts-autotag"] = {
loaded = true,
path = "/home/leo/.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/leo/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
@ -146,11 +156,6 @@ _G.packer_plugins = {
path = "/home/leo/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
["tokyonight.nvim"] = {
loaded = true,
path = "/home/leo/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
url = "https://github.com/folke/tokyonight.nvim"
},
undotree = {
loaded = true,
path = "/home/leo/.local/share/nvim/site/pack/packer/start/undotree",
@ -174,18 +179,19 @@ _G.packer_plugins = {
}
time([[Defining packer_plugins]], false)
-- Config for: nvim-mapper
time([[Config for nvim-mapper]], true)
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper")
time([[Config for nvim-mapper]], false)
-- Config for: telescope.nvim
time([[Config for telescope.nvim]], true)
try_loadstring("\27LJ\2\nK\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0'\2\3\0B\0\2\1K\0\1\0\vmapper\19load_extension\14telescope\frequire\0", "config", "telescope.nvim")
time([[Config for telescope.nvim]], false)
-- Config for: nvim-mapper
time([[Config for nvim-mapper]], true)
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper")
time([[Config for nvim-mapper]], false)
if should_profile then save_profiles() end
end)
if not no_errors then
error_msg = error_msg:gsub('"', '\\"')
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
end