Compare commits

..
61 Commits
Author SHA1 Message Date
doryan 813671fcb0 feat(ui): improve ui (cmp) and add gruvbox theme 2025-04-13 22:18:47 +04:00
doryan 5a533becb0 feat(ui): add telescope ui select for improve UI 2025-04-13 14:44:47 +04:00
doryan 08e8e21300 refactor: clean config
refactor: clean config
2025-04-13 14:44:20 +04:00
doryan 5f155a5880 refactor: rename file 2025-04-13 00:21:55 +04:00
doryan ff20726ade feat(dev plugins): update plugins configs for developing 2025-04-13 00:21:43 +04:00
doryan d35acd0125 feat(statusline): update statusline layout 2025-04-13 00:20:34 +04:00
doryan 3c5dde045b feat(ui): improve UI 2025-04-13 00:19:42 +04:00
doryan e87eae6dd8 feat(config): remove imports, add autostart commands and etc. 2025-04-13 00:18:48 +04:00
doryan e8dc4c05a0 feat(mapping): remap turn on relative numbering and remap quickfix shortcut 2025-04-13 00:17:36 +04:00
doryan 26dd461682 feat(plugins + config): remove useless plugins+colorschemes 2025-04-13 00:16:39 +04:00
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
20 changed files with 525 additions and 461 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
.neoconf.json
.stylua.toml
lazy-lock.json
+5 -6
View File
@@ -4,8 +4,11 @@ local vanila_vim_autostart_commands = {
"set nowrap",
"set shiftwidth=4",
"set tabstop=4",
"set ttyfast",
"set clipboard=unnamedplus"
}
vim.opt.termguicolors = true
vim.opt.fillchars = { eob = " " }
for _, cmd in pairs(vanila_vim_autostart_commands) do
@@ -15,12 +18,10 @@ end
if vim.lsp.inlay_hint then
vim.lsp.inlay_hint.enable(true, { 0 })
end
require("config.lazy")
require("config.plugins.acmp")
require("config.plugins.autotag")
require("config.plugins.autocomplete")
require("config.plugins.bufferline")
require("config.plugins.buffer")
require("config.plugins.colorizer")
require("config.plugins.comment")
require("config.plugins.dap")
@@ -33,13 +34,12 @@ require("config.plugins.lualine")
require("config.plugins.navic")
require("config.plugins.noice")
require("toggleterm").setup()
require("config.plugins.telescope")
require("config.plugins.treesitter")
require("config.plugins.neotree")
require("config.plugins.prettier")
require("config.plugins.rustaceanvim")
require("huez").setup({})
require("config.plugins.dropbar")
require("config.plugins.dashboard")
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = buffer,
@@ -47,5 +47,4 @@ vim.api.nvim_create_autocmd("BufWritePre", {
vim.lsp.buf.format { async = false }
end
})
require("mappings")
-5
View File
@@ -1,5 +0,0 @@
-- require'cmp'.setup {
-- sources = {
-- { name = 'nvim_lsp' }
-- }
-- }
+86 -82
View File
@@ -1,95 +1,99 @@
local cmp = require "cmp"
local kind_icons = {
Text = "",
Method = "󰆧",
Function = "󰊕",
Constructor = "",
Field = "",
Variable = "",
Class = "",
Interface = "",
Module = "",
Property = "󰜢",
Unit = "",
Value = "󰎠",
Enum = "",
Keyword = "󰌋",
Snippet = "",
Color = "󰏘",
File = "󰈙",
Reference = "",
Folder = "󰉋",
EnumMember = "",
Constant = "󰏿",
Struct = "",
Event = "",
Operator = "󰆕",
TypeParameter = "󰅲",
Text = "",
Method = "󰆧",
Function = "󰊕",
Constructor = "",
Field = "",
Variable = "",
Class = "",
Interface = "",
Module = "",
Property = "󰜢",
Unit = "",
Value = "󰎠",
Enum = "",
Keyword = "󰌋",
Snippet = "",
Color = "󰏘",
File = "󰈙",
Reference = "",
Folder = "󰉋",
EnumMember = "",
Constant = "󰏿",
Struct = "",
Event = "",
Operator = "󰆕",
TypeParameter = "󰅲",
}
cmp.setup{
completion = { completeopt = "menu,menuone" },
cmp.setup {
completion = { completeopt = "menu,menuone" },
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
window = {
completion = {
-- winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,Search:None",
col_offset = -3,
side_padding = 0,
},
},
formatting = {
format = function(entry, vim_item)
-- Kind icons
vim_item.kind = string.format('\t%s %s\t', kind_icons[vim_item.kind], vim_item.kind) -- This concatenates the icons with the name of the item kind
-- Source
vim_item.menu = ({
buffer = "[Buffer]",
nvim_lsp = "[LSP]",
luasnip = "[LuaSnip]",
nvim_lua = "[Lua]",
latex_symbols = "[LaTeX]",
})[entry.source.name]
return vim_item
end
},
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
local kind = require("lspkind").cmp_format({ mode = "symbol_text", maxwidth = 50 })(entry, vim_item)
local strings = vim.split(kind.kind, "%s", { trimempty = true })
kind.kind = " " .. (strings[1] or "") .. " "
kind.menu = " " .. (strings[2] or "")
mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
return kind
end
},
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
},
mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump()
else
fallback()
end
end, { "i", "s" }),
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
},
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1)
else
fallback()
end
end, { "i", "s" }),
},
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump()
else
fallback()
end
end, { "i", "s" }),
sources = {
{ name = "nvim_lsp" },
{ name = "buffer" },
{ name = "path" },
},
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then
require("luasnip").jump(-1)
else
fallback()
end
end, { "i", "s" }),
},
sources = {
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" },
},
}
+5 -5
View File
@@ -1,7 +1,7 @@
require('nvim-ts-autotag').setup({
opts = {
enable_close = true,
enable_rename = true,
enable_close_on_slash = false
},
opts = {
enable_close = true,
enable_rename = true,
enable_close_on_slash = true,
},
})
File renamed without changes.
+64 -64
View File
@@ -1,88 +1,88 @@
local dap = require('dap')
require("dap-vscode-js").setup({
debugger_path = "/.local/share/lunarvim/site/pack/lazy/opt/vscode-js-debug",
debugger_cmd = { "js-debug-adapter" },
adapters = { 'node-terminal' },
})
debugger_path = "/.local/share/lunarvim/site/pack/lazy/opt/vscode-js-debug",
debugger_cmd = { "js-debug-adapter" },
adapters = { 'node-terminal' },
})
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
},
}
dap.configurations.c = dap.configurations.cpp
dap.configurations.rust = dap.configurations.cpp
dap.adapters["pwa-node"] = {
type = "server",
host = "localhost",
port = "${port}",
executable = {
command = "node",
args = {os.getenv("HOME") .. "/.local/share/lvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}"},
}
type = "server",
host = "localhost",
port = "${port}",
executable = {
command = "node",
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}" },
}
}
dap.configurations.javascript = {
{
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
},
{
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
},
}
dap.adapters.chrome = {
type = "executable",
command = "node",
args = {os.getenv("HOME") .. "/.local/share/lvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js"},
type = "executable",
command = "node",
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js" },
}
dap.adapters.firefox = {
type = 'executable',
command = 'node',
args = {os.getenv('HOME') .. '/.local/share/lvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js'},
type = 'executable',
command = 'node',
args = { os.getenv('HOME') .. '/.local/share/lvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js' },
}
dap.configurations.typescriptreact = {
{
name = 'Next.js: debug server-side',
type = "pwa-node",
request = "launch",
runtimeExecutable = "npm",
runtimeArgs = { "run", "dev" },
cwd = "${workspaceFolder}",
},
{
name = "Next.js: debug client-side with chrome",
type = "chrome",
request = "launch",
url = "http://localhost:3000"
},
{
name = "Next.js: debug client-side with firefox",
type = "firefox",
request = "launch",
url = 'http://localhost:3000',
webRoot = '${workspaceFolder}',
firefoxExecutable = '/usr/bin/waterfox',
pathMappings = {
{
url = "webpack://_n_e/",
path = "${workspaceFolder}/"
}
},
},
{
name = 'Next.js: debug server-side',
type = "pwa-node",
request = "launch",
runtimeExecutable = "npm",
runtimeArgs = { "run", "dev" },
cwd = "${workspaceFolder}",
},
{
name = "Next.js: debug client-side with chrome",
type = "chrome",
request = "launch",
url = "http://localhost:3000"
},
{
name = "Next.js: debug client-side with firefox",
type = "firefox",
request = "launch",
url = 'http://localhost:3000',
webRoot = '${workspaceFolder}',
firefoxExecutable = '/usr/bin/waterfox',
pathMappings = {
{
url = "webpack://_n_e/",
path = "${workspaceFolder}/"
}
},
},
}
dap.configurations.javascriptreact = dap.configurations.typescriptreact;
@@ -91,9 +91,9 @@ require("dapui").setup()
local dap, dapui = require("dap"), require("dapui")
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open({})
dapui.open({})
end
vim.keymap.set('n', '<leader>ui', require 'dapui'.toggle)
-31
View File
@@ -1,31 +0,0 @@
require('dashboard').setup {
theme = 'hyper',
config = {
week_header = {
enable = true,
},
shortcut = {
{ desc = '󰊳 Update', group = '@property', action = 'Lazy update', key = 'u' },
{
icon = '',
icon_hl = '@variable',
desc = 'Files',
group = 'Label',
action = 'Telescope find_files',
key = 'f',
},
{
desc = ' Apps',
group = 'DiagnosticHint',
action = 'Telescope app',
key = 'a',
},
{
desc = ' dotfiles',
group = 'Number',
action = 'Telescope dotfiles',
key = 'd',
},
},
},
}
-4
View File
@@ -1,4 +0,0 @@
require('dropbar').setup()
vim.ui.select = require('dropbar.utils.menu').select
vim.api.nvim_set_hl(0, 'DropBarMenuHoverEntry', { link = 'PmenuExtraSel' })
+45 -46
View File
@@ -1,48 +1,47 @@
require('gitsigns').setup {
signs = {
add = { text = '┃' },
change = { text = '┃' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '┃' },
untracked = { text = ' ' },
},
signs_staged = {
add = { text = '┃' },
change = { text = '┃' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '┃' },
untracked = { text = ' ' },
},
signcolumn = true,
numhl = false,
linehl = false,
word_diff = false,
watch_gitdir = {
interval = 1000,
follow_files = true,
},
attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = false,
},
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
sign_priority = 6,
status_formatter = nil, -- Use default
update_debounce = 200,
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = "rounded",
style = "minimal",
relative = "cursor",
row = 0,
vcol = 1,
},
yadm = { enable = false },
signs = {
add = { text = '┃' },
change = { text = '┃' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '┃' },
untracked = { text = ' ' },
},
signs_staged = {
add = { text = '┃' },
change = { text = '┃' },
delete = { text = '' },
topdelete = { text = '' },
changedelete = { text = '┃' },
untracked = { text = ' ' },
},
signcolumn = true,
numhl = false,
linehl = false,
word_diff = false,
watch_gitdir = {
interval = 1000,
follow_files = true,
},
attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true,
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
delay = 1000,
ignore_whitespace = false,
},
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
sign_priority = 6,
status_formatter = nil, -- Use default
update_debounce = 200,
max_file_length = 40000,
preview_config = {
-- Options passed to nvim_open_win
border = "rounded",
style = "minimal",
relative = "cursor",
row = 0,
vcol = 1,
},
}
+3
View File
@@ -1,6 +1,9 @@
require("hover").setup {
init = function()
require("hover.providers.lsp")
require("hover.providers.diagnostic")
require("hover.providers.dap")
require("hover.providers.dictionary")
end,
preview_opts = {
border = 'single'
+42 -40
View File
@@ -1,50 +1,52 @@
local lspconfig = require("lspconfig")
lspconfig.clangd.setup({})
lspconfig.lua_ls.setup({
settings = {
Lua = {
hint = {
enable = true,
},
},
}
settings = {
Lua = {
hint = {
enable = true,
},
},
}
})
lspconfig.eslint.setup({
settings = {
codeActionOnSave = {
enable = true,
mode = "all",
},
format = true,
}
settings = {
codeActionOnSave = {
enable = true,
mode = "all",
},
format = true,
}
})
lspconfig.ts_ls.setup({
settings = {
typescript = {
inlayHints = {
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all'
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all'
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayVariableTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
}
settings = {
typescript = {
inlayHints = {
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all'
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all'
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayVariableTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
}
})
+68 -57
View File
@@ -1,59 +1,70 @@
local _colors = { "DiffAdd", "DiffChange", "RedrawDebugRecompose" }
require("lualine").setup({
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
always_show_tabline = true,
globalstatus = true,
refresh = {
statusline = 100,
tabline = 100,
winbar = 100,
}
},
sections = {
lualine_a = {
{
function()
return ""
end,
padding = { left = 0, right = 0 },
color = {},
cond = nil,
},
},
lualine_b = {'branch'},
lualine_c = {'diff'},
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
inactive_sections = {
lualine_a = {
{
function()
return ""
end,
padding = { left = 0, right = 0 },
color = {},
cond = nil,
},
},
lualine_b = {'branch'},
lualine_c = {'diff'},
lualine_x = {'encoding', 'filetype', 'diagnostics', 'lsp'},
lualine_y = {'progress'},
lualine_z = {'location'}
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
options = {
icons_enabled = true,
theme = 'auto',
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
always_show_tabline = true,
globalstatus = true,
refresh = {
statusline = 100,
tabline = 100,
winbar = 100,
}
},
sections = {
lualine_a = {
{
function()
return ""
end,
padding = { left = 0, right = 0 },
color = {},
cond = nil,
},
},
lualine_b = { 'branch' },
lualine_c = {
{
'diff',
colored = true, -- Displays a colored diff status if set to true
symbols = { added = '', modified = '', removed = '' }, -- Changes the symbols used by the diff.
source = nil, -- A function that works as a data source for diff.
}
},
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
inactive_sections = {
lualine_a = {
{
function()
return ""
end,
padding = { left = 0, right = 0 },
color = {},
cond = nil,
},
},
lualine_b = { 'branch' },
lualine_c = {},
lualine_x = { 'encoding', 'filetype', 'diagnostics', 'lsp' },
lualine_y = { 'progress' },
lualine_z = { 'location' }
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {}
})
+25 -13
View File
@@ -1,15 +1,27 @@
require("noice").setup({
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
},
},
presets = {
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
},
},
presets = {
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
views = {
cmdline_popup = {
border = {
style = "none",
padding = { 1, 2 },
},
filter_options = {},
win_options = {
winhighlight = "NormalFloat:NormalFloat,FloatBorder:FloatBorder",
},
},
},
})
+29 -33
View File
@@ -1,37 +1,33 @@
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
}
}
}
}
}
server = {
on_attach = function(client, bufnr)
navic.attach(client, bufnr)
end,
settings = {
['rust-analyzer'] = {
procMacro = {
enable = true,
},
assist = {
importEnforceGranularity = true,
importPrefix = "create"
},
cargo = {
allFeatures = true,
},
checkOnSave = {
command = "clippy",
allFeatures = true
},
inlayHints = {
lifetimeElisionHints = {
enable = true,
useParameterNames = true
}
}
}
}
}
}
+86
View File
@@ -0,0 +1,86 @@
require("telescope").load_extension("ui-select")
require("telescope").setup({
defaults = {
borderchars = { " ", " ", " ", " ", " ", " ", " ", " " }
},
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
-- even more opts
}
-- pseudo code / specification for writing custom displays, like the one
-- for "codeactions"
-- specific_opts = {
-- [kind] = {
-- make_indexed = function(items) -> indexed_items, width,
-- make_displayer = function(widths) -> displayer
-- make_display = function(displayer) -> function(e)
-- make_ordinal = function(e) -> string
-- },
-- -- for example to disable the custom builtin "codeactions" display
-- do the following
-- codeactions = false,
-- }
}
}
})
local blend = 50
vim.api.nvim_create_autocmd("FileType", {
pattern = "TelescopePrompt",
callback = function(ctx)
local backdropName = "TelescopeBackdrop"
local telescopeBufnr = ctx.buf
-- `Telescope` does not set a zindex, so it uses the default value
-- of `nvim_open_win`, which is 50: https://neovim.io/doc/user/api.html#nvim_open_win()
local telescopeZindex = 50
local backdropBufnr = vim.api.nvim_create_buf(false, true)
local winnr = vim.api.nvim_open_win(backdropBufnr, false, {
relative = "editor",
border = "none",
row = 0,
col = 0,
width = vim.o.columns,
height = vim.o.lines,
focusable = false,
style = "minimal",
zindex = telescopeZindex - 1, -- ensure it's below the reference window
})
vim.api.nvim_set_hl(0, backdropName, { bg = "#000000", default = true })
vim.wo[winnr].winhighlight = "Normal:" .. backdropName
vim.wo[winnr].winblend = blend
vim.bo[backdropBufnr].buftype = "nofile"
-- close backdrop when the reference buffer is closed
vim.api.nvim_create_autocmd({ "WinClosed", "BufLeave" }, {
once = true,
buffer = telescopeBufnr,
callback = function()
if vim.api.nvim_win_is_valid(winnr) then vim.api.nvim_win_close(winnr, true) end
if vim.api.nvim_buf_is_valid(backdropBufnr) then
vim.api.nvim_buf_delete(backdropBufnr, { force = true })
end
end,
})
end,
})
vim.api.nvim_create_autocmd({ "ColorScheme", "VimEnter" }, {
group = vim.api.nvim_create_augroup('Color', {}),
pattern = "*",
callback = function()
vim.api.nvim_set_hl(0, "TelescopePreviewTitle", { link = "MiniStatuslineModeVisual" })
vim.api.nvim_set_hl(0, "TelescopePromptTitle", { link = "MiniStatuslineModeCommand" })
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { link = "MiniStatuslineModeReplace" })
vim.api.nvim_set_hl(0, "TelescopePromptNormal", { link = "StatusLine" })
vim.api.nvim_set_hl(0, "TelescopePromptBorder", { link = "StatusLine" })
vim.api.nvim_set_hl(0, "TelescopePreviewNormal", { link = "BufferLineHint" })
vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { link = "BufferLineHint" })
end
})
+4 -1
View File
@@ -1,8 +1,11 @@
require'nvim-treesitter.configs'.setup {
require 'nvim-treesitter.configs'.setup {
ensure_installed = { 'rust', 'c', 'lua', 'tsx', 'javascript', 'typescript' },
sync_install = false,
auto_install = true,
highlight = {
enable = true,
},
autotag = {
enable = true,
}
}
+5 -4
View File
@@ -1,4 +1,5 @@
local map = vim.keymap.set
local map = vim.keymap.set;
local bl_utils = require("config.utils.bufferline")
local hover = require "hover"
@@ -31,6 +32,8 @@ map("n", "ca", "<cmd>RustLsp codeAction<cr>")
map("n", "<C-s>", "<cmd>w!<cr>")
map("i", "<C-s>", "<cmd>w!<cr>")
map("n", "<C-f>", "<C-q>")
map("i", "<C-f>", "<C-q>")
map("n", "<", "<cmd><gv<cr>")
map("n", ">", "<cmd>>gv<cr>")
@@ -38,8 +41,6 @@ map("n", "<leader>c", function(bufnr)
bl_utils.buf_kill("bd", bufnr, true)
end)
map("n", "<leader>dr", "<cmd> DapContinue <cr>", { desc = "Continue debug" })
map("n", "do", function()
require("dapui").open()
end, { desc = "Open DAP ui" })
@@ -60,7 +61,7 @@ map("n", "<C-Down>", "<cmd>resize +2<CR>")
map("n", "<C-Right>", "<cmd>vertical resize -2<CR>")
map("n", "<C-Left>", "<cmd>vertical resize +2<CR>")
map("n", "<leader>an", "<cmd>set norelativenumber<cr>")
map("n", "<leader>nn", "<cmd>set norelativenumber<cr>")
map("n", "<leader>rn", "<cmd>set relativenumber<cr>")
map("n", "tt", "<cmd>ToggleTerm<cr>")
map("n", "<C-{>", "<cmd>foldopen<cr>")
+6 -22
View File
@@ -3,11 +3,14 @@ return {
'simrat39/inlay-hints.nvim',
},
{
"LunarVim/breadcrumbs.nvim",
'nvim-telescope/telescope-ui-select.nvim'
},
{
"akinsho/bufferline.nvim",
},
{
"onsails/lspkind.nvim"
},
{
"lewis6991/gitsigns.nvim"
},
@@ -17,9 +20,6 @@ return {
{
"nvim-lualine/lualine.nvim",
},
{
"akinsho/toggleterm.nvim",
},
{
"windwp/nvim-autopairs",
},
@@ -47,9 +47,6 @@ return {
{
"nvim-treesitter/nvim-treesitter",
},
{
"catppuccin/nvim"
},
{
"vague2k/huez.nvim",
},
@@ -74,26 +71,13 @@ return {
'folke/lazydev.nvim',
ft = "lua",
},
{
'Bekaboo/dropbar.nvim',
dependencies = {
'nvim-telescope/telescope-fzf-native.nvim',
build = 'make'
},
config = function()
local dropbar_api = require('dropbar.api')
vim.keymap.set('n', '<Leader>;', dropbar_api.pick, { desc = 'Pick symbols in winbar' })
vim.keymap.set('n', '[;', dropbar_api.goto_context_start, { desc = 'Go to start of current context' })
vim.keymap.set('n', '];', dropbar_api.select_next_context, { desc = 'Select next context' })
end
},
{
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
}
},
{
"nvim-neo-tree/neo-tree.nvim",
+49 -48
View File
@@ -1,50 +1,51 @@
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" },
},
{
"kaarmu/typst.vim",
lazy = true,
},
{
'MunifTanjim/prettier.nvim',
lazy = true,
},
{
'akinsho/toggleterm.nvim', version = "*", config = true
},
{
"mlaursen/vim-react-snippets",
lazy = true,
},
{
"windwp/nvim-ts-autotag",
lazy = true,
},
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
},
{
"sainnhe/gruvbox-material",
},
{
"savq/melange-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 = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
}
}