update config
This commit is contained in:
parent
4272fbca0b
commit
1187947f5c
7 changed files with 83 additions and 30 deletions
|
@ -1,2 +1,6 @@
|
|||
-- Enable Comment.nvim
|
||||
require('Comment').setup()
|
||||
require('Comment').setup({
|
||||
options = {
|
||||
theme = 'rose-pine'
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
|
||||
vim.keymap.set("n", "<leader>fo", function() vim.cmd('Git pull') end)
|
||||
|
|
|
@ -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 = '',
|
||||
-- },
|
||||
-- }
|
||||
|
|
|
@ -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')
|
||||
--
|
||||
--
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue