Compare commits

..
51 Commits
Author SHA1 Message Date
doryan 7464d8afcd feat(plugins): update plugins list 2025-02-12 22:43:35 +04:00
doryan dee584556c feat(mapping): add some mappings 2025-02-12 22:42:51 +04:00
doryan dc2c6bc548 feat(ibl): add ibl config to separate file 2025-02-12 22:42:35 +04:00
doryan 47378601a0 feat(plugins conf): update plugins config 2025-02-12 22:42:15 +04:00
doryan 61ec656e98 feat(buff): add bufferline utils module 2025-02-12 22:41:34 +04:00
doryan 18ac90101a feat(init conf): remove nvimufo plugin and ibl configuration 2025-02-12 22:40:51 +04:00
doryan 8dacb00b4d feat(lsp): add lsp configs for inline hints in js and lua files 2024-12-23 01:04:50 +04:00
doryan 6be1e7e268 feat: add some plugins 2024-12-23 01:03:59 +04:00
doryan d8daf61525 ??? 2024-12-23 01:03:41 +04:00
doryan 7019e4e902 feat: remove rustaceanvim bind for hover actions 2024-12-23 01:03:36 +04:00
doryan 9aee982481 feat(init file): add autostart commands, change sequence of import config and etc. 2024-12-23 01:03:14 +04:00
doryan 9fb66c5fd8 feat(ufo): move config from core plugins file to separate plugin config file 2024-12-23 01:01:57 +04:00
doryan ce5ddb9b89 feat(rust): add hints and navic for rustaceanvim 2024-12-23 01:01:10 +04:00
doryan 3b1a2e37ca feat(init screen): use dashboard instead alpha-nvim 2024-12-23 01:00:32 +04:00
doryan 04fba535ff feat(hover): add plugin 2024-12-23 00:59:51 +04:00
doryan 046942c93f feat(dashboard): add config for dashboard plugin 2024-12-23 00:58:15 +04:00
doryan 9830c20eb6 feat: remove comments 2024-12-23 00:57:57 +04:00
doryan 1edafd6d41 feat: get back noice plugin 2024-12-14 02:55:19 +04:00
doryan fe031e5bf5 ??? 2024-12-14 02:54:50 +04:00
doryan 2606c2f6c7 feat: get back noice plugin 2024-12-14 02:54:39 +04:00
doryan 1ef25aed50 feat: get back noice config 2024-12-14 02:54:26 +04:00
doryan 8f0c29527d feat: reduce dropbar config 2024-12-14 02:53:56 +04:00
doryan bbd28672d5 fix(mapping): remap multi-line and single-line comment 2024-12-14 02:53:37 +04:00
doryan 079ea655e0 feat: update init.lua 2024-12-13 15:31:34 +04:00
doryan 7b0855cb23 feat(rust): add rustaceanvim config 2024-12-13 15:31:21 +04:00
doryan 5471764258 fix(navic): activate lsp auto_attach 2024-12-13 15:30:55 +04:00
doryan ef9e0a50b9 feat(diag): add lsp diagnostic config 2024-12-13 15:29:11 +04:00
doryan bb64365d25 feat(gitsigns): cosmetics update gitsign config 2024-12-13 15:28:39 +04:00
doryan ec99f601a0 feat(dropbar): add default config (needed to fix) 2024-12-13 15:28:02 +04:00
doryan dfd0917f9a feat(autocmp): add autocomplete 2024-12-13 15:27:16 +04:00
doryan f7a98dcb28 feat: temporary remove 2024-12-13 15:26:25 +04:00
doryan 90bafafb4c feat: remove redundant plugins and temporary remove noice.nvim 2024-12-13 15:26:14 +04:00
doryan 660dcc4b1e feat: remove redundant plugins 2024-12-13 15:24:04 +04:00
doryan cf07a38ecf feat: first commit 2024-12-12 14:08:11 +04:00
doryan 9a2464e2d7 feat: first commit 2024-12-12 14:08:03 +04:00
doryan 5604b29cdc feat: first commit 2024-12-12 14:07:56 +04:00
Sidhanth Rathod 41c5b46733 update nvconfig url 2024-06-23 19:48:36 +05:30
Sidhanth Rathod aad624221a Add UNLICENSE 2024-04-15 07:50:17 +05:30
Sidhanth Rathod 2730bbd210 Delete README.md 2024-04-15 06:44:23 +05:30
Sidhanth Rathod 3da16ca21b Delete LICENSE
as it is useless
2024-04-15 06:44:03 +05:30
Sidhanth Rathod d801a059ef Merge pull request #12 from sullrich84/patch-1
add missing comma
2024-03-26 15:17:59 +05:30
Sebastian Ullrich 260c70c958 add missing comma 2024-03-26 10:44:58 +01:00
Sidhanth Rathod 6a612b80f8 Merge pull request #11 from segyges/fix-init.lua
Update init.lua
2024-03-25 06:49:07 +05:30
segyges 330861bd93 Update init.lua
Fix typos in init.lua
2024-03-24 11:45:42 -05:00
Sidhanth Rathod 813f95e06e add note about nvconfig in chadrc 2024-03-23 11:49:07 +05:30
Sidhanth Rathod 94dc47f8bb add note in plugins file 2024-03-22 18:11:04 +05:30
siduck 70f66adb59 rm useless mapping 2024-03-18 06:41:03 +05:30
siduck 726248c2f3 add nvchad_types & .stylua.toml 2024-03-18 06:34:01 +05:30
siduck 9d47133ba1 update nvchad branch 2024-03-09 21:36:02 +05:30
siduck aa13916e94 add starter config files 2024-03-09 21:33:44 +05:30
Sidhanth Rathod 45a1b2c9a8 Initial commit 2024-03-09 21:32:32 +05:30
7 changed files with 150 additions and 84 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
.neoconf.json
.stylua.toml
lazy-lock.json
+1
View File
@@ -1,6 +1,7 @@
require("hover").setup {
init = function()
require("hover.providers.lsp")
require('hover.providers.diagnostic')
end,
preview_opts = {
border = 'single'
+61
View File
@@ -0,0 +1,61 @@
vim.o.foldcolumn = "auto:9"
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true
vim.o.fillchars = [[eob: ,fold: ,foldopen:󰅀,foldsep:│,foldclose:󰅂]]
vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
local handler = function(virtText, lnum, endLnum, width, truncate)
local newVirtText = {}
local totalLines = vim.api.nvim_buf_line_count(0)
local foldedLines = endLnum - lnum
local suffix = ("  %d %d%%"):format(foldedLines, foldedLines / totalLines * 100)
local sufWidth = vim.fn.strdisplaywidth(suffix)
local targetWidth = width - sufWidth
local curWidth = 0
for _, chunk in ipairs(virtText) do
local chunkText = chunk[1]
local chunkWidth = vim.fn.strdisplaywidth(chunkText)
if targetWidth > curWidth + chunkWidth then
table.insert(newVirtText, chunk)
else
chunkText = truncate(chunkText, targetWidth - curWidth)
local hlGroup = chunk[2]
table.insert(newVirtText, { chunkText, hlGroup })
chunkWidth = vim.fn.strdisplaywidth(chunkText)
-- str width returned from truncate() may less than 2nd argument, need padding
if curWidth + chunkWidth < targetWidth then
suffix = suffix .. (" "):rep(targetWidth - curWidth - chunkWidth)
end
break
end
curWidth = curWidth + chunkWidth
end
local rAlignAppndx =
math.max(math.min(vim.opt.textwidth["_value"], width - 1) - curWidth - sufWidth, 0)
suffix = (" "):rep(rAlignAppndx) .. suffix
table.insert(newVirtText, { suffix, "MoreMsg" })
return newVirtText
end
require('ufo').setup({
fold_virt_text_handler = handler,
open_fold_hl_timeout = 400,
preview = {
win_config = {
border = { "", "─", "", "", "", "─", "", "" },
winblend = 0,
},
mappings = {
scrollU = "<C-u>",
scrollD = "<C-d>",
jumpTop = "[",
jumpBot = "]",
},
},
provider_selector = function(bufnr, filetype, buftype)
return { 'treesitter', 'indent' }
end
})
+32 -33
View File
@@ -1,37 +1,36 @@
local navic = require("nvim-navic")
vim.g.rustaceanvim = {
tools = {
autoSetHints = true,
inlay_hints = {
show_parameter_hints = true,
parameter_hints_prefix = "in: ", -- "<- "
other_hints_prefix = "out: " -- "=> "
}
},
server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
settings = {
['rust-analyzer'] = {
assist = {
importEnforceGranularity = true,
importPrefix = "create"
},
cargo = { allFeatures = true },
checkOnSave = {
-- default: `cargo check`
command = "clippy",
allFeatures = true
},
inlayHints = {
lifetimeElisionHints = {
enable = true,
useParameterNames = true
}
}
}
}
}
tools = {
autoSetHints = true,
inlay_hints = {
show_parameter_hints = true,
parameter_hints_prefix = "in: ", -- "<- "
other_hints_prefix = "out: " -- "=> "
}
},
server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
settings = {
['rust-analyzer'] = {
assist = {
importEnforceGranularity = true,
importPrefix = "create"
},
cargo = { allFeatures = true },
checkOnSave = {
command = "clippy",
allFeatures = true
},
inlayHints = {
lifetimeElisionHints = {
enable = true,
useParameterNames = true
}
}
}
}
}
}
+1
View File
@@ -1,4 +1,5 @@
local map = vim.keymap.set
local bl_utils = require("config.utils.bufferline")
local hover = require "hover"
-3
View File
@@ -17,9 +17,6 @@ return {
{
"nvim-lualine/lualine.nvim",
},
{
"akinsho/toggleterm.nvim",
},
{
"windwp/nvim-autopairs",
},
+52 -48
View File
@@ -1,50 +1,54 @@
return {
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
},
{
"kaarmu/typst.vim",
lazy = true,
},
{
'MunifTanjim/prettier.nvim',
lazy = true,
},
{
"savq/melange-nvim"
},
{
"mlaursen/vim-react-snippets",
lazy = true,
},
{
"windwp/nvim-ts-autotag",
lazy = true,
},
{
"lukas-reineke/indent-blankline.nvim"
},
{
"mxsdev/nvim-dap-vscode-js",
lazy = true,
},
{
"windwp/nvim-autopairs",
lazy = true,
event = "InsertEnter",
config = true
},
{
"microsoft/vscode-js-debug",
lazy = true,
build = "npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out"
},
{
"mrcjkb/rustaceanvim",
version = '^4', -- Recommended
lazy = false, -- This plugin is already lazy
ft = { "rust" },
},
{
'nvimdev/dashboard-nvim',
event = 'VimEnter',
dependencies = { { 'nvim-tree/nvim-web-devicons' } }
},
{
"kaarmu/typst.vim",
lazy = true,
},
{
'MunifTanjim/prettier.nvim',
lazy = true,
},
{
"savq/melange-nvim"
},
{
'akinsho/toggleterm.nvim', version = "*", config = true
},
{
"mlaursen/vim-react-snippets",
lazy = true,
},
{
"windwp/nvim-ts-autotag",
lazy = true,
},
{
"lukas-reineke/indent-blankline.nvim"
},
{
"mxsdev/nvim-dap-vscode-js",
lazy = true,
},
{
"windwp/nvim-autopairs",
lazy = true,
event = "InsertEnter",
config = true
},
{
"microsoft/vscode-js-debug",
lazy = true,
build = "npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out"
},
{
"mrcjkb/rustaceanvim",
version = '^4', -- Recommended
lazy = false, -- This plugin is already lazy
ft = { "rust" },
},
}