update config

This commit is contained in:
Zynh0722 2023-03-18 23:49:58 -07:00
parent 4272fbca0b
commit 1187947f5c
7 changed files with 83 additions and 30 deletions

View file

@ -1,2 +1,6 @@
-- Enable Comment.nvim
require('Comment').setup()
require('Comment').setup({
options = {
theme = 'rose-pine'
}
})

View file

@ -1 +1,2 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
vim.keymap.set("n", "<leader>fo", function() vim.cmd('Git pull') end)

View file

@ -1,10 +1,17 @@
-- Set lualine as statusline
-- See `:help lualine.txt`
require('lualine').setup {
options = {
icons_enabled = false,
theme = 'onedark',
component_separators = '|',
section_separators = '',
},
}
-- local theme = require("lualine.themes.rose-pine")
-- local modes = { "normal", "insert", "visual", "replace", "command", "inactive" }
-- for _, mode in ipairs(modes) do
-- theme[mode].c.bg = "NONE"
-- end
--
--
-- -- Set lualine as statusline
-- -- See `:help lualine.txt`
-- require('lualine').setup {
-- options = {
-- icons_enabled = false,
-- theme = 'rose-pine',
-- component_separators = '|',
-- section_separators = '',
-- },
-- }

View file

@ -1,7 +1,12 @@
require('rose-pine').setup({
groups = {
background = 'none'
}
})
vim.cmd('colorscheme rose-pine')
-- require('rose-pine').setup({
-- groups = {
-- background = 'none'
-- },
-- highlight_groups = {
-- MsgArea = { bg = 'none' },
-- }
-- })
--
-- vim.cmd('colorscheme rose-pine')
--
--

View file

@ -1,4 +1,5 @@
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
vim.g.netrw_list_hide = ".DS_Store"
vim.api.nvim_create_autocmd('TextYankPost', {
callback = function()
vim.highlight.on_yank()

View file

@ -19,6 +19,18 @@ return require('packer').startup(function(use)
use {
'rose-pine/neovim',
as = 'rose-pine',
config = function()
require('rose-pine').setup({
groups = {
background = 'none'
},
highlight_groups = {
MsgArea = { bg = 'none' },
}
})
vim.cmd('colorscheme rose-pine')
end
}
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
@ -34,7 +46,30 @@ return require('packer').startup(function(use)
use 'tpope/vim-fugitive'
use 'lewis6991/gitsigns.nvim'
use 'nvim-lualine/lualine.nvim' -- Fancier statusline
use {
'nvim-lualine/lualine.nvim',
after = 'rose-pine',
config = function()
local theme = require("lualine.themes.rose-pine")
local modes = { "normal", "insert", "visual", "replace", "command", "inactive" }
for _, mode in ipairs(modes) do
theme[mode].c.bg = "none"
end
-- Set lualine as statusline
-- See `:help lualine.txt`
require('lualine').setup {
options = {
icons_enabled = false,
theme = 'rose-pine',
component_separators = '|',
section_separators = '',
},
}
end
} -- Fancier statusline
use 'numToStr/Comment.nvim' -- "gc" to comment visual regions/lines
use 'windwp/nvim-ts-autotag' -- autoclose html tags

View file

@ -29,7 +29,7 @@ vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.opt.colorcolumn = "80,120"
vim.opt.conceallevel = 2