added new configs with the dell comp
This commit is contained in:
@@ -38,7 +38,9 @@ vim.filetype.add({
|
||||
})
|
||||
|
||||
require("vim-options")
|
||||
require("lazy").setup("plugins")
|
||||
require('lazy').setup('plugins', {
|
||||
rocks = { enabled = false },
|
||||
})
|
||||
require("lualine").setup({
|
||||
sections = {
|
||||
lualine_x = {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"LuaSnip": { "branch": "master", "commit": "5a1e39223db9a0498024a77b8441169d260c8c25" },
|
||||
"R.nvim": { "branch": "main", "commit": "3db1971a81f8ad3d09aca698601abbe4cc909e37" },
|
||||
"R.nvim": { "branch": "main", "commit": "80268b5a66ad48e308513cb0ebccc16d5e1e7d5a" },
|
||||
"barbecue": { "branch": "main", "commit": "cd7e7da622d68136e13721865b4d919efd6325ed" },
|
||||
"blink.cmp": { "branch": "main", "commit": "b19413d214068f316c78978b08264ed1c41830ec" },
|
||||
"blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" },
|
||||
"catppuccin": { "branch": "main", "commit": "beaf41a30c26fd7d6c386d383155cbd65dd554cd" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d126061b624e0af6c3a556428712dd4d4194ec6d" },
|
||||
@@ -19,8 +19,8 @@
|
||||
"everforest": { "branch": "master", "commit": "b03a03148c8b34c24c96960b93da9c8883d11f54" },
|
||||
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||
"fzf-lua": { "branch": "main", "commit": "e5804f4924cf74ad03834c25988998a273ae0d7b" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "abf82a65f185bd54adc0679f74b7d6e1ada690c9" },
|
||||
"fzf-lua": { "branch": "main", "commit": "c86b72c62b01d2242cafa45fb0d1fc3bf66e6a2b" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "1ce96a464fdbc24208e24c117e2021794259005d" },
|
||||
"grapple.nvim": { "branch": "main", "commit": "b41ddfc1c39f87f3d1799b99c2f0f1daa524c5f7" },
|
||||
"gruvbox-mat": { "branch": "master", "commit": "790afe9dd085aa04eccd1da3626c5fa05c620e53" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||
@@ -29,7 +29,7 @@
|
||||
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
||||
"luvit-meta": { "branch": "main", "commit": "0ea4ff636c5bb559ffa78108561d0976f4de9682" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "c953789db7fd28eafe5eb5659846d34b5024b3cc" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "ae609525ddf01c153c39305730b1791800ffe4fe" },
|
||||
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" },
|
||||
"neogit": { "branch": "master", "commit": "73870229977fdd8747025820e15e98cfde787b9c" },
|
||||
@@ -40,22 +40,22 @@
|
||||
"nvim-cmp": { "branch": "main", "commit": "da88697d7f45d16852c6b2769dc52387d1ddc45f" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-lint": { "branch": "master", "commit": "bcd1a44edbea8cd473af7e7582d3f7ffc60d8e81" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "3f58aeca0c6ece8a9fb8782ea3fcb6024f285be3" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "0480b120318ec8bab27b530ffab6ee76a8c4d806" },
|
||||
"nvim-navic": { "branch": "master", "commit": "f5eba192f39b453675d115351808bd51276d9de5" },
|
||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "72f56f7585903cd7bf92c665351aa585e150af0f" },
|
||||
"nvim-surround": { "branch": "main", "commit": "1098d7b3c34adcfa7feb3289ee434529abd4afd1" },
|
||||
"nvim-tmux-navigation": { "branch": "main", "commit": "4898c98702954439233fdaf764c39636681e2861" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "5ca4aaa6efdcc59be46b95a3e876300cfead05ef" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "70a9fecaf5aeae70c765d4c51a8038165a91aa06" },
|
||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "a0e182ae21fda68c59d1f36c9ed45600aef50311" },
|
||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "803353450c374192393f5387b6a0176d0972b848" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" },
|
||||
"obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" },
|
||||
"onedark-warm": { "branch": "master", "commit": "213c23ae45a04797572242568d5d51937181792d" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"portal.nvim": { "branch": "main", "commit": "77d9d53fec945bfa407d5fd7120f1b4f117450ed" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "d6b802552cbe7d643a3b6b31f419c248d1f1e220" },
|
||||
"render-markdown.nvim": { "branch": "main", "commit": "b3efd6408e4e4d66d6caaee0579e72b579bc0884" },
|
||||
"render-markdown.nvim": { "branch": "main", "commit": "48b4175dbca8439d30c1f52231cbe5a712c8f9d9" },
|
||||
"rose-pine": { "branch": "main", "commit": "cf2a288696b03d0934da713d66c6d71557b5c997" },
|
||||
"snacks.nvim": { "branch": "main", "commit": "fe7cfe9800a182274d0f868a74b7263b8c0c020b" },
|
||||
"sonokai": { "branch": "master", "commit": "b023c5280b16fe2366f5e779d8d2756b3e5ee9c3" },
|
||||
@@ -63,9 +63,7 @@
|
||||
"telescope.nvim": { "branch": "master", "commit": "ad7d9580338354ccc136e5b8f0aa4f880434dcdc" },
|
||||
"tokyonight": { "branch": "main", "commit": "5da1b76e64daf4c5d410f06bcb6b9cb640da7dfd" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||
"vim-test": { "branch": "master", "commit": "c569b3620d0e53572efc95159f66ace5e7b06b48" },
|
||||
"vimtex": { "branch": "master", "commit": "f707368022cdb851716be0d2970b90599c84a6a6" },
|
||||
"vimux": { "branch": "master", "commit": "614f0bb1fb598f97accdcea71d5f7b18d7d62436" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" },
|
||||
"yazi.nvim": { "branch": "main", "commit": "46fd318814b13cdb27750c045973df3f80425e68" }
|
||||
"yazi.nvim": { "branch": "main", "commit": "02d5086bee04e0c861afeed8ce48988c89b19f9d" }
|
||||
}
|
||||
|
||||
46
nvim/.config/nvim/lua/plugins.inactive/dressing.lua
Normal file
46
nvim/.config/nvim/lua/plugins.inactive/dressing.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
-- dressing.lua: Enhances UI elements like input boxes and select menus for consistency.
|
||||
|
||||
return {
|
||||
{
|
||||
"stevearc/dressing.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
input = {
|
||||
enabled = true,
|
||||
default_prompt = "Input:",
|
||||
trim_prompt = true,
|
||||
title_pos = "left",
|
||||
start_in_insert = true,
|
||||
border = "rounded",
|
||||
relative = "cursor",
|
||||
prefer_width = 40,
|
||||
win_options = {
|
||||
winblend = 0,
|
||||
},
|
||||
mappings = {
|
||||
n = {
|
||||
["<Esc>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
},
|
||||
i = {
|
||||
["<C-c>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
["<Up>"] = "HistoryPrev",
|
||||
["<Down>"] = "HistoryNext",
|
||||
},
|
||||
},
|
||||
},
|
||||
select = {
|
||||
enabled = true,
|
||||
backend = { "telescope", "builtin" },
|
||||
trim_prompt = true,
|
||||
telescope = require("telescope.themes").get_dropdown({
|
||||
layout_config = {
|
||||
width = 0.8,
|
||||
height = 0.8,
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
25
nvim/.config/nvim/lua/plugins.inactive/treesitter.lua
Normal file
25
nvim/.config/nvim/lua/plugins.inactive/treesitter.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
-- treesitter.lua: Enables syntax highlighting, code folding, and structural analysis.
|
||||
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
version = false, -- always pull latest
|
||||
build = ':TSUpdate',
|
||||
---@type TSConfig
|
||||
opts = {
|
||||
modules = {
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
-- Parsers that should always be present
|
||||
ensure_installed = {
|
||||
'bash', 'html', 'java', 'latex', 'lua', 'markdown', 'markdown_inline',
|
||||
'python', 'r', 'sql', 'vim', 'yaml',
|
||||
},
|
||||
sync_install = false, -- install in background
|
||||
auto_install = true, -- fetch parser when you open a file
|
||||
ignore_install = {}, -- none
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
end,
|
||||
}
|
||||
@@ -13,26 +13,26 @@ return {
|
||||
local cmp = require("cmp")
|
||||
|
||||
autopairs.setup({
|
||||
check_ts = true, -- Enable treesitter
|
||||
check_ts = true, -- Enable treesitter
|
||||
ts_config = {
|
||||
lua = { "string" }, -- Don't add pairs in lua string treesitter nodes
|
||||
lua = { "string" }, -- Don't add pairs in lua string treesitter nodes
|
||||
javascript = { "template_string" }, -- Don't add pairs in JS template strings
|
||||
java = false, -- Don't check treesitter on java
|
||||
java = false, -- Don't check treesitter on java
|
||||
},
|
||||
disable_filetype = { "TelescopePrompt", "vim" },
|
||||
disable_in_macro = true, -- Disable when recording or executing a macro
|
||||
disable_in_macro = true, -- Disable when recording or executing a macro
|
||||
disable_in_visualblock = false, -- Disable when in visual block mode
|
||||
disable_in_replace_mode = true,
|
||||
ignored_next_char = [=[[%w%%%'%[%"%.%`%$]]=],
|
||||
enable_moveright = true,
|
||||
enable_afterquote = true, -- Add bracket pairs after quote
|
||||
enable_afterquote = true, -- Add bracket pairs after quote
|
||||
enable_check_bracket_line = true, -- Check bracket in same line
|
||||
enable_bracket_in_quote = true,
|
||||
enable_abbr = false, -- Trigger abbreviation
|
||||
break_undo = true, -- Switch for basic rule break undo sequence
|
||||
enable_abbr = false, -- Trigger abbreviation
|
||||
break_undo = true, -- Switch for basic rule break undo sequence
|
||||
check_comma = true,
|
||||
map_cr = true,
|
||||
map_bs = true, -- Map the <BS> key
|
||||
map_bs = true, -- Map the <BS> key
|
||||
map_c_h = false, -- Map the <C-h> key to delete a pair
|
||||
map_c_w = false, -- Map <c-w> to delete a pair if possible
|
||||
})
|
||||
@@ -55,41 +55,41 @@ return {
|
||||
|
||||
autopairs.add_rules({
|
||||
Rule(" ", " ")
|
||||
:with_pair(function(opts)
|
||||
local pair = opts.line:sub(opts.col - 1, opts.col)
|
||||
return vim.tbl_contains({ "()", "[]", "{}" }, pair)
|
||||
end)
|
||||
:with_move(cond.none())
|
||||
:with_cr(cond.none())
|
||||
:with_del(function(opts)
|
||||
local col = vim.api.nvim_win_get_cursor(0)[2]
|
||||
local context = opts.line:sub(col - 1, col + 2)
|
||||
return vim.tbl_contains({ "( )", "[ ]", "{ }" }, context)
|
||||
end),
|
||||
:with_pair(function(opts)
|
||||
local pair = opts.line:sub(opts.col - 1, opts.col)
|
||||
return vim.tbl_contains({ "()", "[]", "{}" }, pair)
|
||||
end)
|
||||
:with_move(cond.none())
|
||||
:with_cr(cond.none())
|
||||
:with_del(function(opts)
|
||||
local col = vim.api.nvim_win_get_cursor(0)[2]
|
||||
local context = opts.line:sub(col - 1, col + 2)
|
||||
return vim.tbl_contains({ "( )", "[ ]", "{ }" }, context)
|
||||
end),
|
||||
Rule("", " )")
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == ")"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key(")"),
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == ")"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key(")"),
|
||||
Rule("", " }")
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == "}"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key("}"),
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == "}"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key("}"),
|
||||
Rule("", " ]")
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == "]"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key("]"),
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == "]"
|
||||
end)
|
||||
:with_cr(cond.none())
|
||||
:with_del(cond.none())
|
||||
:use_key("]"),
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
@@ -2,17 +2,22 @@
|
||||
|
||||
return {
|
||||
"saghen/blink.cmp",
|
||||
version = "v1.*", -- stay on stable branch
|
||||
build = "cargo build --release", -- compile matcher locally
|
||||
lazy = false, -- must load before first lsp attach
|
||||
version = "v1.*", -- stay on stable branch
|
||||
build = "cargo build --release", -- compile matcher locally (or download pre-built)
|
||||
lazy = false, -- must load before first LSP attach
|
||||
dependencies = {
|
||||
"L3MON4D3/LuaSnip",
|
||||
"rafamadriz/friendly-snippets",
|
||||
},
|
||||
opts = {
|
||||
-- completion sources ----------------------------------------------------
|
||||
-- silence "incomplete build" message and prefer pre-built binary
|
||||
fuzzy = { implementation = "prefer_rust" },
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
-- completion sources
|
||||
---------------------------------------------------------------------------
|
||||
sources = {
|
||||
min_keyword_length = 2, -- <-- Move it here from trigger section
|
||||
min_keyword_length = 2, -- <-- moved here (global default)
|
||||
default = { "nvim_lsp", "luasnip", "buffer", "path", "cmp_tabnine" },
|
||||
providers = {
|
||||
nvim_lsp = { name = "LSP", module = "blink.cmp.sources.lsp" },
|
||||
@@ -30,11 +35,13 @@ return {
|
||||
},
|
||||
},
|
||||
|
||||
-- completion behaviour --------------------------------------------------
|
||||
---------------------------------------------------------------------------
|
||||
-- completion behaviour
|
||||
---------------------------------------------------------------------------
|
||||
completion = {
|
||||
accept = { auto_brackets = { enabled = true } },
|
||||
trigger = {
|
||||
show_on_trigger_character = true, -- <-- Remove min_keyword_length from here
|
||||
show_on_trigger_character = true, -- min_keyword_length removed
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
@@ -54,7 +61,7 @@ return {
|
||||
window = { border = "rounded" },
|
||||
},
|
||||
|
||||
cmdline = { enabled = true },
|
||||
cmdline = { enabled = false },
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
|
||||
@@ -1,46 +1,13 @@
|
||||
-- dressing.lua: Enhances UI elements like input boxes and select menus for consistency.
|
||||
|
||||
return {
|
||||
{
|
||||
"stevearc/dressing.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
input = {
|
||||
enabled = true,
|
||||
default_prompt = "Input:",
|
||||
trim_prompt = true,
|
||||
title_pos = "left",
|
||||
start_in_insert = true,
|
||||
border = "rounded",
|
||||
relative = "cursor",
|
||||
prefer_width = 40,
|
||||
win_options = {
|
||||
winblend = 0,
|
||||
},
|
||||
mappings = {
|
||||
n = {
|
||||
["<Esc>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
},
|
||||
i = {
|
||||
["<C-c>"] = "Close",
|
||||
["<CR>"] = "Confirm",
|
||||
["<Up>"] = "HistoryPrev",
|
||||
["<Down>"] = "HistoryNext",
|
||||
},
|
||||
},
|
||||
},
|
||||
select = {
|
||||
enabled = true,
|
||||
backend = { "telescope", "builtin" },
|
||||
trim_prompt = true,
|
||||
telescope = require("telescope.themes").get_dropdown({
|
||||
layout_config = {
|
||||
width = 0.8,
|
||||
height = 0.8,
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
},
|
||||
'stevearc/dressing.nvim',
|
||||
dependencies = { 'nvim-telescope/telescope.nvim' }, -- load order guarantee
|
||||
lazy = true, -- optional
|
||||
config = function()
|
||||
local themes = require('telescope.themes') -- now safe
|
||||
require('dressing').setup {
|
||||
select = { telescope = themes.get_dropdown() },
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ return {
|
||||
"latex",
|
||||
"r",
|
||||
"rnoweb", -- for Sweave files
|
||||
"yaml", -- for YAML headers in Rmdkk
|
||||
"yaml", -- for YAML headers in Rmdkk
|
||||
},
|
||||
|
||||
-- Auto install missing parsers
|
||||
|
||||
Reference in New Issue
Block a user