Compare commits
No commits in common. "ec79482e0acdc2dec802f42ff5bf529006f99c05" and "e4b78b22099c607acffdf717c3bda343f0221945" have entirely different histories.
ec79482e0a
...
e4b78b2209
9 changed files with 48 additions and 79 deletions
|
@ -10,7 +10,6 @@
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
"cosmic-ui": { "branch": "main", "commit": "ab7de388576eaac02ce7bc2389e55b8e207aad12" },
|
"cosmic-ui": { "branch": "main", "commit": "ab7de388576eaac02ce7bc2389e55b8e207aad12" },
|
||||||
"dracula.nvim": { "branch": "main", "commit": "96c9d19ce81b26053055ad6f688277d655b3f7d2" },
|
|
||||||
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
|
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "4c40357994f386e72be92a46f41fc1664c84c87d" },
|
"gitsigns.nvim": { "branch": "main", "commit": "4c40357994f386e72be92a46f41fc1664c84c87d" },
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
local config = {
|
local config = {
|
||||||
border = 'none',
|
border = 'none',
|
||||||
colorscheme = 'dracula',
|
colorscheme = 'catppuccin',
|
||||||
|
add_plugins = {},
|
||||||
|
plugins = {},
|
||||||
lsp = {
|
lsp = {
|
||||||
inlay_hint = false,
|
inlay_hint = false,
|
||||||
format_timeout = 500,
|
format_timeout = 500,
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
local colors = {
|
|
||||||
gray = '#181825',
|
|
||||||
lightgray = '#313244',
|
|
||||||
orange = '#ffb86c',
|
|
||||||
purple = '#bd93f9',
|
|
||||||
red = '#ff5555',
|
|
||||||
yellow = '#f1fa8c',
|
|
||||||
green = '#50fa7b',
|
|
||||||
white = '#cdd6f4',
|
|
||||||
black = '#282a36',
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
normal = {
|
|
||||||
a = { bg = colors.purple, fg = colors.black, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
insert = {
|
|
||||||
a = { bg = colors.green, fg = colors.black, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
visual = {
|
|
||||||
a = { bg = colors.yellow, fg = colors.black, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
replace = {
|
|
||||||
a = { bg = colors.red, fg = colors.black, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
command = {
|
|
||||||
a = { bg = colors.orange, fg = colors.black, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
inactive = {
|
|
||||||
a = { bg = colors.gray, fg = colors.white, gui = 'bold' },
|
|
||||||
b = { bg = colors.lightgray, fg = colors.white },
|
|
||||||
c = { bg = colors.gray, fg = colors.white },
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -23,7 +23,7 @@ local default_header = {
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
position = 'center',
|
position = 'center',
|
||||||
hl = 'Define',
|
hl = 'Type',
|
||||||
-- wrap = "overflow";
|
-- wrap = "overflow";
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ local function button(sc, txt, keybind, keybind_opts)
|
||||||
cursor = 3,
|
cursor = 3,
|
||||||
width = 50,
|
width = 50,
|
||||||
align_shortcut = 'right',
|
align_shortcut = 'right',
|
||||||
hl_shortcut = 'Type',
|
hl_shortcut = 'Keyword',
|
||||||
}
|
}
|
||||||
if keybind then
|
if keybind then
|
||||||
keybind_opts = if_nil(keybind_opts, { noremap = true, silent = true, nowait = true })
|
keybind_opts = if_nil(keybind_opts, { noremap = true, silent = true, nowait = true })
|
||||||
|
@ -75,9 +75,9 @@ end
|
||||||
local buttons = {
|
local buttons = {
|
||||||
type = 'group',
|
type = 'group',
|
||||||
val = {
|
val = {
|
||||||
button('SPC f f', ' find file'),
|
button('SPC f f', ' Find file'),
|
||||||
button('SPC f s', ' live grep'),
|
button('SPC f s', ' Find word'),
|
||||||
button('SPC s l', ' open last session'),
|
button('SPC s l', ' Open last session'),
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
spacing = 1,
|
spacing = 1,
|
||||||
|
|
33
lua/plugins/catppuccin.lua
Normal file
33
lua/plugins/catppuccin.lua
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
local config = {
|
||||||
|
flavour = 'mocha',
|
||||||
|
integrations = {
|
||||||
|
fidget = true,
|
||||||
|
which_key = true,
|
||||||
|
lsp_trouble = true,
|
||||||
|
telescope = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
color_overrides = {
|
||||||
|
mocha = {
|
||||||
|
base = '#11111b',
|
||||||
|
mantle = '#181825',
|
||||||
|
crust = '#11111b',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
custom_highlights = function(_)
|
||||||
|
return {
|
||||||
|
CursorLine = { bg = '#1e1e2e' },
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
{ -- color scheme
|
||||||
|
'catppuccin/nvim',
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require('catppuccin').setup(config)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,16 +0,0 @@
|
||||||
return {
|
|
||||||
'Mofiqul/dracula.nvim',
|
|
||||||
opts = {
|
|
||||||
colors = {
|
|
||||||
bg = '#11111b',
|
|
||||||
fg = '#cdd6f4',
|
|
||||||
menu = '#11111b',
|
|
||||||
selection = '#45475a',
|
|
||||||
comment = '#9399b2',
|
|
||||||
},
|
|
||||||
overrides = {
|
|
||||||
CursorLine = { bg = '#1e1e2e' },
|
|
||||||
LineNr = { fg = '#45475a' },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,10 +1,4 @@
|
||||||
return {
|
return {
|
||||||
'tpope/vim-fugitive',
|
'tpope/vim-fugitive',
|
||||||
cmd = 'Git',
|
cmd = 'Git',
|
||||||
init = function()
|
|
||||||
local u = require('utils')
|
|
||||||
local map = u.set_keymap
|
|
||||||
|
|
||||||
map('n', '<leader>vg', ':vert Git<cr>', { desc = 'Git status' })
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
local actions = require('telescope.actions')
|
local actions = require('telescope.actions')
|
||||||
|
local config = require('config')
|
||||||
local icons = require('utils.icons')
|
local icons = require('utils.icons')
|
||||||
local u = require('utils')
|
local u = require('utils')
|
||||||
|
|
||||||
|
@ -14,7 +15,6 @@ local default_mappings = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[ mewo ]]
|
|
||||||
local opts_cursor = {
|
local opts_cursor = {
|
||||||
initial_mode = 'normal',
|
initial_mode = 'normal',
|
||||||
sorting_strategy = 'ascending',
|
sorting_strategy = 'ascending',
|
||||||
|
@ -47,7 +47,7 @@ local opts_flex = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
require('telescope').setup({
|
require('telescope').setup(u.merge({
|
||||||
defaults = {
|
defaults = {
|
||||||
selection_caret = icons.folder.arrow_closed,
|
selection_caret = icons.folder.arrow_closed,
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
|
@ -69,10 +69,10 @@ require('telescope').setup({
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
fzf = {
|
fzf = {
|
||||||
fuzzy = true, -- false will only do exact matching
|
fuzzy = true, -- false will only do exact matching
|
||||||
override_generic_sorter = true, -- override the generic sorter
|
override_generic_sorter = true, -- override the generic sorter
|
||||||
override_file_sorter = true, -- override the file sorter
|
override_file_sorter = true, -- override the file sorter
|
||||||
case_mode = 'smart_case', -- or "ignore_case" or "respect_case"
|
case_mode = 'smart_case', -- or "ignore_case" or "respect_case"
|
||||||
-- the default case_mode is "smart_case"
|
-- the default case_mode is "smart_case"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -131,6 +131,6 @@ require('telescope').setup({
|
||||||
mappings = default_mappings,
|
mappings = default_mappings,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
})
|
}, config.plugins.telescope or {}))
|
||||||
|
|
||||||
require('telescope').load_extension('fzf')
|
require('telescope').load_extension('fzf')
|
||||||
|
|
|
@ -24,6 +24,7 @@ return {
|
||||||
|
|
||||||
-- git navigation
|
-- git navigation
|
||||||
map('n', '<leader>vc', ':Telescope git_commits<cr>', { desc = 'Git commits' })
|
map('n', '<leader>vc', ':Telescope git_commits<cr>', { desc = 'Git commits' })
|
||||||
|
map('n', '<leader>vg', ':Telescope git_status<cr>', { desc = 'Git status' })
|
||||||
|
|
||||||
config.lsp.add_on_attach_mapping(function(_, bufnr)
|
config.lsp.add_on_attach_mapping(function(_, bufnr)
|
||||||
local buf_map = u.create_buf_map(bufnr)
|
local buf_map = u.create_buf_map(bufnr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue