navigation-file 1
This commit is contained in:
66
config/linux-dev/nvim/lua/plugins/colorscheme.lua
Normal file
66
config/linux-dev/nvim/lua/plugins/colorscheme.lua
Normal file
@@ -0,0 +1,66 @@
|
||||
-- return {
|
||||
-- 'rose-pine/neovim',
|
||||
-- name = 'rose-pine',
|
||||
-- config = function()
|
||||
-- vim.cmd('colorscheme rose-pine-dawn')
|
||||
-- end,
|
||||
-- }
|
||||
return {
|
||||
'triimdev/invero.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
dev = true,
|
||||
config = function()
|
||||
vim.api.nvim_create_user_command('ReloadInvero', function()
|
||||
require('invero').invalidate_cache()
|
||||
vim.cmd('Lazy reload invero.nvim')
|
||||
end, {})
|
||||
|
||||
require('invero').setup({
|
||||
highlights = function(c, tool)
|
||||
c.bg_float = tool(152)
|
||||
return {
|
||||
-- Normal = { fg = c.text, bg = c.base },
|
||||
-- StatusLine = { fg = tool(231), bg = c.outline, bold = false }, -- Active statusline (where filename)
|
||||
-- StatusLineNC = { fg = c.surface, bg = c.outline, bold = false }, -- Active statusline (where filename)
|
||||
-- NormalFloat = { fg = c.text, bg = c.none },
|
||||
|
||||
-- FzfLuaFzfGutter = { bg = c.base },
|
||||
-- FzfLuaBorder = { fg = c.outline, bg = c.bg_float },
|
||||
-- FzfLuaCursor = 'IncSearch',
|
||||
-- FzfLuaDirPart = { fg = c.muted },
|
||||
-- FzfLuaFilePart = 'FzfLuaFzfNormal',
|
||||
-- FzfLuaFzfCursorLine = 'Visual',
|
||||
-- FzfLuaFzfNormal = { fg = c.text },
|
||||
-- FzfLuaFzfPointer = { fg = c.magenta },
|
||||
-- FzfLuaFzfSeparator = { fg = c.orange, bg = c.bg_float },
|
||||
-- -- FzfLuaHeaderBind = '@punctuation.special',
|
||||
-- FzfLuaHeaderBind = { fg = c.green, bg = c.base },
|
||||
-- FzfLuaHeaderText = 'Title',
|
||||
-- FzfLuaNormal = { fg = c.text, bg = c.bg_float },
|
||||
-- FzfLuaPath = 'Directory',
|
||||
-- FzfLuaPreviewTitle = { fg = c.surface, bg = c.bg_float },
|
||||
-- FzfLuaTitle = { fg = c.orange, bg = c.bg_float },
|
||||
|
||||
-- FzfLuaBorder = { fg = c.border_highlight, bg = c.bg_float },
|
||||
-- FzfLuaCursor = 'IncSearch',
|
||||
-- FzfLuaDirPart = { fg = c.fg_dark },
|
||||
-- FzfLuaFilePart = 'FzfLuaFzfNormal',
|
||||
-- FzfLuaFzfCursorLine = 'Visual',
|
||||
-- FzfLuaFzfNormal = { fg = c.fg },
|
||||
-- FzfLuaFzfPointer = { fg = c.magenta2 },
|
||||
-- FzfLuaFzfSeparator = { fg = c.orange, bg = c.bg_float },
|
||||
-- FzfLuaHeaderBind = '@punctuation.special',
|
||||
-- FzfLuaHeaderText = 'Title',
|
||||
-- FzfLuaNormal = { fg = c.fg, bg = c.bg_float },
|
||||
-- FzfLuaPath = 'Directory',
|
||||
-- FzfLuaPreviewTitle = { fg = c.border_highlight, bg = c.bg_float },
|
||||
-- FzfLuaTitle = { fg = c.orange, bg = c.bg_float },
|
||||
}
|
||||
end,
|
||||
})
|
||||
|
||||
vim.o.background = 'light'
|
||||
vim.cmd.colorscheme('invero')
|
||||
end,
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
return {
|
||||
{ 'windwp/nvim-ts-autotag', config = true },
|
||||
{ 'windwp/nvim-autopairs', event = 'InsertEnter', config = true },
|
||||
{
|
||||
'triimdev/invero.nvim',
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.api.nvim_create_user_command('ReloadInvero', function()
|
||||
require('invero').invalidate_cache()
|
||||
vim.cmd('Lazy reload invero.nvim')
|
||||
end, {})
|
||||
|
||||
-- require('invero').setup({
|
||||
-- highlights = function(C, tool)
|
||||
-- return {
|
||||
-- -- Statement = { fg = C.none, italic = true },
|
||||
-- }
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
vim.o.background = 'light'
|
||||
vim.cmd.colorscheme('invero')
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
return {
|
||||
'ibhagwan/fzf-lua',
|
||||
opts = {},
|
||||
}
|
||||
-- return {
|
||||
-- 'nvim-telescope/telescope.nvim',
|
||||
-- event = 'VimEnter',
|
||||
-- branch = '0.1.x',
|
||||
-- dependencies = {
|
||||
-- 'nvim-lua/plenary.nvim',
|
||||
-- {
|
||||
-- 'nvim-telescope/telescope-fzf-native.nvim',
|
||||
-- build = 'make',
|
||||
-- cond = function()
|
||||
-- return vim.fn.executable('make') == 1
|
||||
-- end,
|
||||
-- },
|
||||
-- { 'nvim-telescope/telescope-ui-select.nvim' },
|
||||
-- },
|
||||
-- config = function()
|
||||
-- require('telescope').setup({
|
||||
-- defaults = {
|
||||
-- layout_strategy = 'vertical',
|
||||
-- layout_config = {
|
||||
-- width = { 0.95, max = 100 },
|
||||
-- height = 0.95,
|
||||
-- preview_cutoff = 1,
|
||||
-- preview_height = 0.7,
|
||||
-- },
|
||||
-- mappings = {
|
||||
-- n = {
|
||||
-- ['d'] = 'delete_buffer',
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
--
|
||||
-- pcall(require('telescope').load_extension, 'fzf')
|
||||
-- pcall(require('telescope').load_extension, 'ui-select')
|
||||
--
|
||||
-- local builtin = require('telescope.builtin')
|
||||
-- vim.keymap.set('n', '<leader>sk', builtin.keymaps)
|
||||
-- vim.keymap.set('n', '<leader>sf', builtin.find_files)
|
||||
-- vim.keymap.set('n', '<leader>sw', builtin.grep_string)
|
||||
-- vim.keymap.set('n', '<leader>ss', builtin.current_buffer_fuzzy_find)
|
||||
-- vim.keymap.set('n', '<leader>sg', builtin.live_grep)
|
||||
-- vim.keymap.set('n', '<leader>sd', builtin.diagnostics)
|
||||
-- vim.keymap.set('n', '<leader>sr', builtin.lsp_references)
|
||||
-- vim.keymap.set('n', '<leader>s.', builtin.oldfiles)
|
||||
-- vim.keymap.set('n', '<leader><leader>', builtin.buffers)
|
||||
-- end,
|
||||
-- }
|
||||
@@ -23,6 +23,9 @@ vim.lsp.enable({ 'json_ls' })
|
||||
|
||||
return {
|
||||
{ 'mason-org/mason.nvim', config = true },
|
||||
{ 'windwp/nvim-ts-autotag', config = true },
|
||||
{ 'windwp/nvim-autopairs', event = 'InsertEnter', config = true },
|
||||
|
||||
-- { 'saghen/blink.cmp', version = '1.*' },
|
||||
{
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
|
||||
Reference in New Issue
Block a user