from scratch

This commit is contained in:
sankalp committed 2024-08-13 02:36:10 +05:45
1 parent deb9bcea46
commit 402cd48057
24 files changed
+738 -59

No files matched your search

+4 -6
View File
@@ -1,8 +1,6 @@
return {
'altermo/ultimate-autopair.nvim',
event = { 'InsertEnter', 'CmdlineEnter' },
branch = 'v0.6', --recommended as each new version will have breaking changes
opts = {
--Config goes here
},
'altermo/ultimate-autopair.nvim',
event = { 'InsertEnter', 'CmdlineEnter' },
branch = 'v0.6',
opts = {},
}
+3
View File
@@ -0,0 +1,3 @@
return {
"romgrk/barbar.nvim",
}
+25
View File
@@ -0,0 +1,25 @@
return {
'Exafunction/codeium.vim',
event = 'BufEnter',
cmd = 'Codeium',
build = 'Codeium Auth:',
dependencies = {
'nvim-lua/plenary.nvim',
'hrsh7th/nvim-cmp',
},
config = function()
vim.keymap.set('i', '<C-g>', function()
return vim.fn['codeium#Accept']()
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-;>', function()
return vim.fn['codeium#CycleCompletions'](1)
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-,>', function()
return vim.fn['codeium#CycleCompletions'](-1)
end, { expr = true, silent = true })
vim.keymap.set('i', '<c-x>', function()
return vim.fn['codeium#Clear']()
end, { expr = true, silent = true })
end,
}
+22 -22
View File
@@ -1,27 +1,27 @@
return {
'navarasu/onedark.nvim',
'navarasu/onedark.nvim',
config = function()
require('onedark').setup({
style = 'deep',
transparent = true,
term_colors = false,
ending_tildes = false,
cmp_itemkind_reverse = false,
-- toggle_style_key = '<leader>ot',
-- toggle_style_list = { 'dark', 'darker', 'cool', 'warm', 'warmer', 'deep', 'light' },
config = function()
require('onedark').setup({
style = 'deep',
transparent = true,
term_colors = false,
ending_tildes = false,
cmp_itemkind_reverse = false,
-- toggle_style_key = '<leader>ot',
-- toggle_style_list = { 'dark', 'darker', 'cool', 'warm', 'warmer', 'deep', 'light' },
-- Options are italic, bold, underline, none and combos 'italic,bold'
code_style = {
comments = 'italic',
keywords = 'none',
functions = 'none',
strings = 'none',
variables = 'none',
},
-- Options are italic, bold, underline, none and combos 'italic,bold'
code_style = {
comments = 'italic',
keywords = 'none',
functions = 'none',
strings = 'none',
variables = 'none',
},
lualine = { transparent = true },
diagnostics = { darker = true, undercurl = true, background = false },
})
end,
lualine = { transparent = true },
diagnostics = { darker = true, undercurl = true, background = false },
})
end,
}
+3 -2
View File
@@ -37,16 +37,17 @@ return {
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'luasnip' }, -- For luasnip users.
{ name = 'codeium' },
}, {
{ name = 'buffer' },
}),
formatting = {
format = lspkind.cmp_format({
mode = 'symbol', -- show only symbol annotations
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
maxwidth = 50, -- prevent the popup from showing more than provided characters (e.g 50 will not show more than 50 characters)
-- can also be a function to dynamically calculate max width such as
-- maxwidth = function() return math.floor(0.45 * vim.o.columns) end,
ellipsis_char = '...', -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
ellipsis_char = '...', -- when popup menu exceed maxwidth, the truncated part would show ellipsis_char instead (must define maxwidth first)
show_labelDetails = true, -- show labelDetails in menu. Disabled by default
-- The function below will be called before any actual modifications from lspkind
+10
View File
@@ -0,0 +1,10 @@
return {
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup({
-- config
})
end,
dependencies = { { 'nvim-tree/nvim-web-devicons' } },
}
+6
View File
@@ -0,0 +1,6 @@
return {
{
'ThePrimeagen/harpoon',
lazy = true,
},
}
+17
View File
@@ -23,6 +23,23 @@ return {
},
},
capabilities = capabilities,
handlers = handlers,
})
lspconfig.clangd.setup({
capabilities = capabilities,
handlers = handlers,
})
lspconfig.gdscript.setup({
capabilities = capabilities,
})
lspconfig.pyright.setup({
capabilities = capabilities,
handlers = handlers,
})
lspconfig.biome.setup({
capabilities = capabilities,
handlers = handlers,
})
end,
},
+7
View File
@@ -0,0 +1,7 @@
return {
'nvim-lualine/lualine.nvim',
config = function()
require('lualine').setup()
end,
}
+12
View File
@@ -0,0 +1,12 @@
return {
"iamcco/markdown-preview.nvim",
ft = "markdown",
build = function()
vim.fn["mkdp#util#install"]()
end,
cmd = {
"MarkdownPreviewToggle",
"MarkdownPreview",
"MarkdownPreviewStop",
},
}
+7 -7
View File
@@ -1,9 +1,9 @@
return {
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
'nvim-neo-tree/neo-tree.nvim',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
}
+15 -9
View File
@@ -1,13 +1,19 @@
return {
'nvimtools/none-ls.nvim',
'nvimtools/none-ls.nvim',
config = function()
local null_ls = require('null-ls')
config = function()
local null_ls = require('null-ls')
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
},
})
end,
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.gdformat,
null_ls.builtins.formatting.djhtml,
null_ls.builtins.formatting.biome,
},
})
end,
}
+26
View File
@@ -0,0 +1,26 @@
return {
'rcarriga/nvim-notify',
config = function()
vim.notify = require('notify')
require('notify')('Welcome Back!')
require('notify').setup({
background_colour = 'Normal',
fps = 30,
icons = {
DEBUG = '',
ERROR = '',
INFO = '',
TRACE = '✎',
WARN = '',
},
level = 2,
minimum_width = 40,
maximum_width = 40,
render = 'wrapped-compact',
stages = 'slide',
timeout = 2000,
})
end,
}
+7
View File
@@ -0,0 +1,7 @@
return {
"kylechui/nvim-surround",
config = function()
require("nvim-surround").setup()
end,
}
+15
View File
@@ -0,0 +1,15 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "vim", "vimdoc", "python", "cpp", "html", "css", "javascript", "typescript", "json", "php" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
}
+40
View File
@@ -0,0 +1,40 @@
vim.api.nvim_create_autocmd('FileType', {
pattern = 'oil',
callback = function()
vim.opt_local.colorcolumn = ''
end,
})
return {
{
'stevearc/oil.nvim',
opts = {},
-- Optional dependencies
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
require('oil').setup({
use_default_keymaps = false,
keymaps = {
['g?'] = 'actions.show_help',
['<CR>'] = 'actions.select',
['<C-\\>'] = 'actions.select_split',
['<C-enter>'] = 'actions.select_vsplit', -- this is used to navigate left
['<C-t>'] = 'actions.select_tab',
['<C-p>'] = 'actions.preview',
['<C-c>'] = 'actions.close',
['<C-r>'] = 'actions.refresh',
['-'] = 'actions.parent',
['_'] = 'actions.open_cwd',
['`'] = 'actions.cd',
['~'] = 'actions.tcd',
['gs'] = 'actions.change_sort',
['gx'] = 'actions.open_external',
['g.'] = 'actions.toggle_hidden',
},
view_options = {
show_hidden = false,
},
})
end,
},
}
+19 -2
View File
@@ -1,13 +1,30 @@
return {
'nvim-telescope/telescope.nvim',
tag = '0.1.8',
dependencies = { 'nvim-lua/plenary.nvim' },
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope-fzf-native.nvim',
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
cond = vim.fn.executable('cmake') == 1,
},
config = function()
require('telescope').setup({
pickers = {
colorscheme = { enable_preview = true },
colorscheme = {
enable_preview = true,
},
},
defaults = {
layout_config = {
horizontal = {
preview_cutoff = 0,
},
},
},
})
-- Enable telescope fzf native, if installed
pcall(require('telescope').load_extension, 'fzf')
end,
}
+9
View File
@@ -0,0 +1,9 @@
return {
"akinsho/toggleterm.nvim",
config = function ()
require("toggleterm").setup({
shade_terminals = false,
})
end
}
+42
View File
@@ -0,0 +1,42 @@
return {
{
'gelguy/wilder.nvim',
keys = {
':',
'/',
'?',
},
dependencies = {
'catppuccin/nvim',
},
config = function()
local wilder = require('wilder')
-- Enable wilder when pressing :, / or ?
wilder.setup({ modes = { ':', '/', '?' } })
-- Enable fuzzy matching for commands and buffers
wilder.set_option('pipeline', {
wilder.branch(
wilder.cmdline_pipeline({
fuzzy = 1,
}),
wilder.vim_search_pipeline({
fuzzy = 1,
})
),
})
wilder.set_option(
'renderer',
wilder.popupmenu_renderer(wilder.popupmenu_palette_theme({
border = 'rounded',
max_height = '75%',
min_height = 0,
prompt_position = 'top',
reverse = 0,
}))
)
end,
},
}