Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89ed1b189e | ||
|
|
d3e2ea602e | ||
|
|
e1429b3224 | ||
|
|
06e6665f52 | ||
|
|
2c15d04597 | ||
|
|
e6ea1320e0 | ||
|
|
3719efd378 | ||
|
|
e94a81a067 | ||
|
|
001836a880 | ||
|
|
b980e786bf | ||
|
|
eeda4c7b92 | ||
|
|
4d10724f93 | ||
|
|
3325c48cb2 |
No files matched your search
@@ -37,8 +37,8 @@ vim.cmd("set clipboard=unnamedplus")
|
||||
-- │ Chars │
|
||||
-- ╰───────╯
|
||||
vim.opt.fillchars = {
|
||||
horiz = "━",
|
||||
vert = "▎", -- │ ▎▍▌▋▊▉█
|
||||
-- horiz = "-",
|
||||
-- vert = "▏", -- │ ▎▍▌▋▊▉█
|
||||
stl = " ",
|
||||
eob = " ",
|
||||
}
|
||||
@@ -52,8 +52,21 @@ vim.fn.sign_define("DiagnosticSignWarn", { text = " ", texthl = "DiagnosticSi
|
||||
vim.fn.sign_define("DiagnosticSignInfo", { text = " ", texthl = "DiagnosticSignInfo" })
|
||||
vim.fn.sign_define("DiagnosticSignHint", { text = "", texthl = "DiagnosticSignHint" })
|
||||
|
||||
-- ╭─────────────────────╮
|
||||
-- │ IA initial disables │
|
||||
-- ╰─────────────────────╯
|
||||
vim.b.copilot_enabled = false
|
||||
vim.g.copilot_enabled = false
|
||||
vim.diagnostic.config({
|
||||
virtual_text = false, -- floating text next to code is too noisy
|
||||
underline = true,
|
||||
signs = {
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = "",
|
||||
[vim.diagnostic.severity.WARN] = "",
|
||||
[vim.diagnostic.severity.INFO] = "",
|
||||
[vim.diagnostic.severity.HINT] = "",
|
||||
},
|
||||
linehl = {
|
||||
[vim.diagnostic.severity.ERROR] = "ErrorMsg",
|
||||
},
|
||||
numhl = {
|
||||
[vim.diagnostic.severity.WARN] = "WarningMsg",
|
||||
},
|
||||
},
|
||||
})
|
||||
+29
-29
@@ -1,44 +1,44 @@
|
||||
{
|
||||
"aerial.nvim": { "branch": "master", "commit": "645d108a5242ec7b378cbe643eb6d04d4223f034" },
|
||||
"auto-session": { "branch": "main", "commit": "62437532b38495551410b3f377bcf4aaac574ebe" },
|
||||
"autoclose.nvim": { "branch": "main", "commit": "3f86702b54a861a17d7994b2e32a7c648cb12fb1" },
|
||||
"blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" },
|
||||
"aerial.nvim": { "branch": "master", "commit": "28fe6e822ae344544c379d60fcb13c9519a1f08a" },
|
||||
"auto-session": { "branch": "main", "commit": "6cde3874a9283c2db55627acca5f28e4fa402320" },
|
||||
"autoclose.nvim": { "branch": "main", "commit": "bafd0368716216fa6a7bb2a43ecd889b44efdb46" },
|
||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||
"blueprints": { "branch": "main", "commit": "e5825c30464f98e77e8b5ffb88d59fd98df6c802" },
|
||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||
"codecompanion.nvim": { "branch": "main", "commit": "1913b5aa05745bca90d7912c76ed118f1744a620" },
|
||||
"conform.nvim": { "branch": "master", "commit": "086a40dc7ed8242c03be9f47fbcee68699cc2395" },
|
||||
"copilot.vim": { "branch": "release", "commit": "a12fd5672110c8aa7e3c8419e28c96943ca179be" },
|
||||
"conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" },
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
|
||||
"flash.nvim": { "branch": "main", "commit": "b6346946d10d07998efee029fb0f7a593806d0cd" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" },
|
||||
"grug-far.nvim": { "branch": "main", "commit": "ac52ee2d87399dfd7b0d59d5b1d2bbaf2a4028f1" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "334d5fd49fc8033f26408425366c66c6390c57bb" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "eb60cc7b94c46005237fd34170d76f3a089a90aa" },
|
||||
"grug-far.nvim": { "branch": "main", "commit": "beb2ce490b72048c587e8a3d919cba1b4608bb04" },
|
||||
"gruvbox.nvim": { "branch": "main", "commit": "154eb5ff5b96d0641307113fa385eaf0d36d9796" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
||||
"koda.nvim": { "branch": "main", "commit": "a560a332ccc1eb2caacb280a390213bb9f37b3cb" },
|
||||
"komau.vim": { "branch": "master", "commit": "4666b5b15f4ab3f6f59f6aae13a394f9e8652767" },
|
||||
"komau.vim": { "branch": "master", "commit": "f7c7a00c0cbb67ed269b565a4ada47d96dce14f3" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
||||
"mini.clue": { "branch": "main", "commit": "8b748316c5a5ab24ab18ccd5db9d62fe86fdddee" },
|
||||
"mini.icons": { "branch": "main", "commit": "5b9076dae1bfbe47ba4a14bc8b967cde0ab5d77e" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "9d6826582a3e8c84787bd7355df22a2812a1ad59" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||
"mini.clue": { "branch": "main", "commit": "4d506660e7030a15748ab073bebfe3ed03884000" },
|
||||
"mini.icons": { "branch": "main", "commit": "98faae31e9be1cc054ae63485e58ceb185efcad0" },
|
||||
"multiple-cursors.nvim": { "branch": "main", "commit": "1ac15d047a4b265cc2389957bcc56ee561b29e02" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "b01ee1769144c4491ea44bc329cb84040e9793be" },
|
||||
"no-neck-pain.nvim": { "branch": "main", "commit": "434fed70b1ee553f8f27e6da7b3899f71b3c6f99" },
|
||||
"noice.nvim": { "branch": "main", "commit": "7bfd942445fb63089b59f97ca487d605e715f155" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "149fbd9f5e25511b0a8bad3ccecd43d1bc584f86" },
|
||||
"nvim-lint": { "branch": "master", "commit": "a219b2c9e5b4765e5c845aba119dad55806fcaf1" },
|
||||
"nvim-scrollbar": { "branch": "main", "commit": "f8e87b96cd6362ef8579be456afee3b38fd7e2a8" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "529ee357b8c03d76ff71233afed68fd0f5fe10b1" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "b311b30818951d01f7b4bf650521b868b3fece16" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "dad71387de386a946b123079d0e53f23028f3abd" },
|
||||
"nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "a2194447f4c5a1baf95139c5c7b539fa7b0d012f" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"smear-cursor.nvim": { "branch": "main", "commit": "c85bdbb25db096fbcf616bc4e1357bd61fe2c199" },
|
||||
"snacks.nvim": { "branch": "main", "commit": "9912042fc8bca2209105526ac7534e9a0c2071b2" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" },
|
||||
"overseer.nvim": { "branch": "master", "commit": "a93d9f6d6defdac4bcd6d2c8ba988650e42e0a0e" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||
"scope.nvim": { "branch": "main", "commit": "228aabdb1b9cc74f0c0ccec88e79873857236e49" },
|
||||
"smear-cursor.nvim": { "branch": "main", "commit": "9e9378d6ee34bb3782e0e8c63d9ec8ca618b479b" },
|
||||
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
||||
"telescope-git-file-history.nvim": { "branch": "master", "commit": "4442114f9257e682e60a8cb6de14cf988e26055c" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "427b576c16792edad01a92b89721d923c19ad60f" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||
"undotree": { "branch": "master", "commit": "6fa6b57cda8459e1e4b2ca34df702f55242f4e4d" },
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
|
||||
cmd = { "cssmodules-language-server" },
|
||||
filetypes = {
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"typescript.tsx",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"javascript.jsx",
|
||||
"js",
|
||||
"jsx",
|
||||
"ts",
|
||||
"tsx",
|
||||
},
|
||||
root_markers = { ".git" },
|
||||
settings = {},
|
||||
init_options = {
|
||||
camelCase = false,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
|
||||
cmd = { "css-variables-language-server", "--stdio" },
|
||||
filetypes = { "css", "scss", "less" },
|
||||
root_markers = { ".git" },
|
||||
settings = {
|
||||
cssVariables = {
|
||||
lookupFiles = { "**/*.less", "**/*.scss", "**/*.sass", "**/*.css" },
|
||||
blacklistFolders = {
|
||||
"**/.cache",
|
||||
"**/.DS_Store",
|
||||
"**/.git",
|
||||
"**/.hg",
|
||||
"**/.next",
|
||||
"**/.svn",
|
||||
"**/bower_components",
|
||||
"**/CVS",
|
||||
"**/dist",
|
||||
"**/node_modules",
|
||||
"**/tests",
|
||||
"**/tmp",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
-- NOTE: NOT USED, currently using lint plugin
|
||||
|
||||
return {
|
||||
cmd = { "stylelint-lsp", "--stdio" },
|
||||
filetypes = { "css", "less", "scss", "sugarss", "wxss" },
|
||||
root_markers = { 'stylelint.config.mjs', '.stylelintrc.json' }
|
||||
}
|
||||
+11
-10
@@ -1,12 +1,13 @@
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
autocmd("ModeChanged", {
|
||||
callback = function(opts)
|
||||
require("lualine").refresh()
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("CursorMoved", {
|
||||
callback = function(opts)
|
||||
require("lualine").refresh()
|
||||
end,
|
||||
})
|
||||
-- Replaced with config field, kept in case of issues
|
||||
-- autocmd("ModeChanged", {
|
||||
-- callback = function(opts)
|
||||
-- require("lualine").refresh()
|
||||
-- end,
|
||||
-- })
|
||||
-- autocmd("CursorMoved", {
|
||||
-- callback = function(opts)
|
||||
-- require("lualine").refresh()
|
||||
-- end,
|
||||
-- })
|
||||
+19
-16
@@ -1,19 +1,22 @@
|
||||
-- ╭─────╮
|
||||
-- │ LSP │
|
||||
-- ╰─────╯
|
||||
vim.lsp.enable('astro')
|
||||
vim.lsp.enable('bashls')
|
||||
vim.lsp.enable('clangd')
|
||||
vim.lsp.enable('cssls')
|
||||
vim.lsp.enable('emmet')
|
||||
vim.lsp.enable('gopls')
|
||||
vim.lsp.enable('html')
|
||||
vim.lsp.enable('jdtls')
|
||||
vim.lsp.enable('denols')
|
||||
vim.lsp.enable('luals')
|
||||
vim.lsp.enable('pyright')
|
||||
vim.lsp.enable('rust_analyzer')
|
||||
vim.lsp.enable('solargraph')
|
||||
vim.lsp.enable('ts_ls')
|
||||
vim.lsp.enable('volar')
|
||||
vim.lsp.enable('jsonls')
|
||||
vim.lsp.enable("astro")
|
||||
vim.lsp.enable("bashls")
|
||||
vim.lsp.enable("clangd")
|
||||
vim.lsp.enable("cssls")
|
||||
vim.lsp.enable("emmet")
|
||||
vim.lsp.enable("gopls")
|
||||
vim.lsp.enable("html")
|
||||
vim.lsp.enable("jdtls")
|
||||
vim.lsp.enable("denols")
|
||||
vim.lsp.enable("luals")
|
||||
vim.lsp.enable("pyright")
|
||||
vim.lsp.enable("rust_analyzer")
|
||||
vim.lsp.enable("solargraph")
|
||||
vim.lsp.enable("ts_ls")
|
||||
vim.lsp.enable("volar")
|
||||
vim.lsp.enable("jsonls")
|
||||
vim.lsp.enable("stylelint")
|
||||
vim.lsp.enable("css_variables")
|
||||
vim.lsp.enable("css_modules")
|
||||
+38
-18
@@ -1,6 +1,15 @@
|
||||
vim.g.mapleader = " "
|
||||
local map = vim.keymap.set
|
||||
|
||||
-- <leader> + :
|
||||
-- B{uffers}
|
||||
-- F{ind}
|
||||
-- T{toggle}
|
||||
-- G{it}
|
||||
-- E{xplorer}
|
||||
-- N{ew}
|
||||
-- W{indow}
|
||||
|
||||
---- Bufferline ----
|
||||
-- Not used but maybe in the future
|
||||
-- map("n", "bg", "<CMD>BufferLinePick<CR>")
|
||||
@@ -39,6 +48,8 @@ map("n", "<leader>ct", "<cmd>lua require('blueprints').createFromTemplateTelesco
|
||||
|
||||
---- Git ----
|
||||
map("n", "<leader>gb", "<CMD>Gitsigns blame<CR>", { desc = "Git blame" })
|
||||
map("n", "<leader>ghr", "<CMD>Gitsigns reset_hunk<CR>", { desc = "Git next change" })
|
||||
map("n", "<leader>gha", "<CMD>Gitsigns stage_hunk<CR>", { desc = "Git next change" })
|
||||
map("n", "]g", "<CMD>Gitsigns next_hunk<CR>", { desc = "Git next change" })
|
||||
map("n", "[g", "<CMD>Gitsigns prev_hunk<CR>", { desc = "Git prev change" })
|
||||
map("n", "<leader>gdo", "<CMD>DiffviewOpen<CR>", { desc = "Git diff view open" })
|
||||
@@ -141,16 +152,25 @@ map("n", "<leader>fo", "<cmd> Telescope oldfiles <CR>", { desc = "Fild old files
|
||||
map("n", "<leader>fz", "<cmd> Telescope current_buffer_fuzzy_find <CR>", { desc = "Find in current buffer" })
|
||||
map("n", "<C-/>", "<cmd> Telescope current_buffer_fuzzy_find <CR>", { desc = "Find in current buffer" })
|
||||
|
||||
-- Flash search (better "f")
|
||||
map({ "n", "x", "o" }, "s", function()
|
||||
require("flash").jump()
|
||||
end, { desc = "Flash jump in file" })
|
||||
map({ "n", "x", "o" }, "S", function()
|
||||
require("flash").treesitter()
|
||||
end, { desc = "Flash jump in file" })
|
||||
|
||||
---- Replace ----
|
||||
map("n", "<leader>/", "<cmd> GrugFar <CR>", { desc = "Find in current buffer" })
|
||||
map("n", "<leader>/", "<cmd> GrugFar <CR>", { desc = "Find and replace" })
|
||||
map("n", "<leader>fr", "<cmd> GrugFar <CR>", { desc = "Find and replace" })
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
||||
-- better up/down
|
||||
-- map({ "n", "x" }, "j", "v:count == 0 ? 'gj' : 'j'", { desc = "Down", expr = true, silent = true })
|
||||
-- map({ "n", "x" }, "<Down>", "v:count == 0 ? 'gj' : 'j'", { desc = "Down", expr = true, silent = true })
|
||||
-- map({ "n", "x" }, "k", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
-- map({ "n", "x" }, "<Up>", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
map({ "n", "x" }, "j", "v:count == 0 ? 'gj' : 'j'", { desc = "Down", expr = true, silent = true })
|
||||
map({ "n", "x" }, "<Down>", "v:count == 0 ? 'gj' : 'j'", { desc = "Down", expr = true, silent = true })
|
||||
map({ "n", "x" }, "k", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
map({ "n", "x" }, "<Up>", "v:count == 0 ? 'gk' : 'k'", { desc = "Up", expr = true, silent = true })
|
||||
|
||||
---- Movement ----
|
||||
|
||||
@@ -222,6 +242,7 @@ map("n", "]w", diagnostic_goto(true, "WARN"), { desc = "Next Warning" })
|
||||
map("n", "[w", diagnostic_goto(false, "WARN"), { desc = "Prev Warning" })
|
||||
|
||||
---- Toggle options ----
|
||||
map("n", "<leader>ts", "<cmd>ScrollbarToggle<CR>", { desc = "Toggle scrollbar" })
|
||||
map("n", "<leader>um", function()
|
||||
require("monkey-alert").enable() -- does not toggle :O
|
||||
end, { desc = "Toggle monkey alert" })
|
||||
@@ -274,10 +295,6 @@ map("n", "<leader>ua", "<cmd>AerialToggle<cr>", { desc = "Toggle aerial view" })
|
||||
map("n", "<leader>ui", vim.show_pos, { desc = "Inspect Pos" })
|
||||
map("n", "<leader>uI", "<cmd>InspectTree<cr>", { desc = "Inspect Tree" })
|
||||
|
||||
---- Terminal ----
|
||||
|
||||
map("n", "<leader>nz", "<cmd>terminal<CR>", { desc = "Open new terminal" })
|
||||
|
||||
-- Terminal Mappings
|
||||
map("t", "<esc><esc>", "<c-\\><c-n>", { desc = "Enter Normal Mode" })
|
||||
map("t", "<C-h>", "<cmd>wincmd h<cr>", { desc = "Go to Left Window" })
|
||||
@@ -305,16 +322,16 @@ map("n", "<C-j>", "<C-w>j", { desc = "Go to Lower Window", remap = true })
|
||||
map("n", "<C-k>", "<C-w>k", { desc = "Go to Upper Window", remap = true })
|
||||
map("n", "<C-l>", "<C-w>l", { desc = "Go to Right Window", remap = true })
|
||||
|
||||
map("n", "<C-A-k>", "<cmd>resize +2<cr>", { desc = "Increase Window Height" })
|
||||
map("n", "<C-A-j>", "<cmd>resize -2<cr>", { desc = "Decrease Window Height" })
|
||||
map("n", "<C-A-h>", "<cmd>vertical resize -2<cr>", { desc = "Decrease Window Width" })
|
||||
map("n", "<C-A-l>", "<cmd>vertical resize +2<cr>", { desc = "Increase Window Width" })
|
||||
map("n", "<C-A-k>", "<cmd>resize +8<cr>", { desc = "Increase Window Height" })
|
||||
map("n", "<C-A-j>", "<cmd>resize -8<cr>", { desc = "Decrease Window Height" })
|
||||
map("n", "<C-A-h>", "<cmd>vertical resize -8<cr>", { desc = "Decrease Window Width" })
|
||||
map("n", "<C-A-l>", "<cmd>vertical resize +8<cr>", { desc = "Increase Window Width" })
|
||||
|
||||
-- Resize window using <ctrl> arrow keys
|
||||
map("n", "<C-Up>", "<cmd>resize +2<cr>", { desc = "Increase Window Height" })
|
||||
map("n", "<C-Down>", "<cmd>resize -2<cr>", { desc = "Decrease Window Height" })
|
||||
map("n", "<C-Left>", "<cmd>vertical resize -2<cr>", { desc = "Decrease Window Width" })
|
||||
map("n", "<C-Right>", "<cmd>vertical resize +2<cr>", { desc = "Increase Window Width" })
|
||||
map("n", "<C-Up>", "<cmd>resize +8<cr>", { desc = "Increase Window Height" })
|
||||
map("n", "<C-Down>", "<cmd>resize -8<cr>", { desc = "Decrease Window Height" })
|
||||
map("n", "<C-Left>", "<cmd>vertical resize -8<cr>", { desc = "Decrease Window Width" })
|
||||
map("n", "<C-Right>", "<cmd>vertical resize +8<cr>", { desc = "Increase Window Width" })
|
||||
|
||||
-- quit
|
||||
map("n", "<leader>qq", "<cmd>qa<cr>", { desc = "Quit All" })
|
||||
@@ -324,9 +341,12 @@ map("n", "<leader>qq", "<cmd>qa<cr>", { desc = "Quit All" })
|
||||
---- Utils ----
|
||||
|
||||
-- undotree
|
||||
map("n", "<leader>ut", "<cmd>UndotreeToggle<cr>", { desc = "Toggle undotree" })
|
||||
map("n", "<leader>tu", "<cmd>UndotreeToggle<cr>", { desc = "Toggle undotree" })
|
||||
|
||||
-- aerial
|
||||
map("n", "<leader>a", "<cmd>AerialToggle<cr>", { desc = "Toggle aerial view" })
|
||||
map("n", "]a", "<cmd>AerialNext<cr>", { desc = "Next aerial view" })
|
||||
map("n", "[a", "<cmd>AerialPrev<cr>", { desc = "Prev aerial view" })
|
||||
|
||||
-- colorizer
|
||||
map("n", "tc", "<cmd>ColorizerToggle<cr>", { desc = "Toggle Colorizer" })
|
||||
@@ -25,42 +25,9 @@ return {
|
||||
"saghen/blink.cmp",
|
||||
dependencies = { "rafamadriz/friendly-snippets" },
|
||||
version = "1.*",
|
||||
-- build = "cargo build --release",
|
||||
opts = {
|
||||
-- C-e: Hide menu
|
||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||
keymap = {
|
||||
preset = "default",
|
||||
["<Enter>"] = { "accept", "fallback" },
|
||||
["<Tab>"] = { "select_next", "fallback" },
|
||||
["<S-Tab>"] = { "select_prev", "fallback" },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = "mono",
|
||||
},
|
||||
completion = {
|
||||
accept = { auto_brackets = { enabled = false }, },
|
||||
list = { selection = { preselect = false, auto_insert = true } },
|
||||
menu = {
|
||||
auto_show = true,
|
||||
|
||||
-- nvim-cmp style menu
|
||||
draw = {
|
||||
columns = {
|
||||
{ "label", "label_description", gap = 1 },
|
||||
{ "kind_icon", "kind" }
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
-- Show documentation when selecting a completion item
|
||||
documentation = { auto_show = true, auto_show_delay_ms = 500 },
|
||||
-- Display a preview of the selected item on the current line
|
||||
ghost_text = { enabled = true },
|
||||
},
|
||||
sources = {},
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||
},
|
||||
opts = function()
|
||||
return require("plugins.opts.blink")
|
||||
end,
|
||||
opts_extend = { "sources.default" },
|
||||
},
|
||||
|
||||
@@ -79,7 +46,7 @@ return {
|
||||
},
|
||||
|
||||
{
|
||||
'm4xshen/autoclose.nvim',
|
||||
"m4xshen/autoclose.nvim",
|
||||
opts = function()
|
||||
return require("plugins.opts.autoclose")
|
||||
end,
|
||||
|
||||
@@ -11,6 +11,9 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
-- Have buffers by tab
|
||||
{ "tiagovla/scope.nvim", config = true },
|
||||
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
event = "VeryLazy",
|
||||
@@ -50,7 +53,9 @@ return {
|
||||
|
||||
{
|
||||
"stevearc/aerial.nvim",
|
||||
opts = {},
|
||||
opts = function()
|
||||
return require("plugins.opts.aerialview")
|
||||
end,
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
-- multiple cursors and stuff like that, not supported yet
|
||||
}
|
||||
@@ -9,11 +9,6 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"sindrets/diffview.nvim",
|
||||
lazy = false,
|
||||
},
|
||||
|
||||
{ "tpope/vim-fugitive" },
|
||||
|
||||
-- {
|
||||
|
||||
+17
-34
@@ -7,34 +7,34 @@ return {
|
||||
opts = {
|
||||
triggers = {
|
||||
-- Leader triggers
|
||||
{ mode = 'n', keys = '<Leader>' },
|
||||
{ mode = 'x', keys = '<Leader>' },
|
||||
{ mode = "n", keys = "<Leader>" },
|
||||
{ mode = "x", keys = "<Leader>" },
|
||||
|
||||
-- Built-in completion
|
||||
{ mode = 'i', keys = '<C-x>' },
|
||||
{ mode = "i", keys = "<C-x>" },
|
||||
|
||||
-- `g` key
|
||||
{ mode = 'n', keys = 'g' },
|
||||
{ mode = 'x', keys = 'g' },
|
||||
{ mode = "n", keys = "g" },
|
||||
{ mode = "x", keys = "g" },
|
||||
|
||||
-- Marks
|
||||
{ mode = 'n', keys = "'" },
|
||||
{ mode = 'n', keys = '`' },
|
||||
{ mode = 'x', keys = "'" },
|
||||
{ mode = 'x', keys = '`' },
|
||||
{ mode = "n", keys = "'" },
|
||||
{ mode = "n", keys = "`" },
|
||||
{ mode = "x", keys = "'" },
|
||||
{ mode = "x", keys = "`" },
|
||||
|
||||
-- Registers
|
||||
{ mode = 'n', keys = '"' },
|
||||
{ mode = 'x', keys = '"' },
|
||||
{ mode = 'i', keys = '<C-r>' },
|
||||
{ mode = 'c', keys = '<C-r>' },
|
||||
{ mode = "n", keys = '"' },
|
||||
{ mode = "x", keys = '"' },
|
||||
{ mode = "i", keys = "<C-r>" },
|
||||
{ mode = "c", keys = "<C-r>" },
|
||||
|
||||
-- Window commands
|
||||
{ mode = 'n', keys = '<C-w>' },
|
||||
{ mode = "n", keys = "<C-w>" },
|
||||
|
||||
-- `z` key
|
||||
{ mode = 'n', keys = 'z' },
|
||||
{ mode = 'x', keys = 'z' },
|
||||
{ mode = "n", keys = "z" },
|
||||
{ mode = "x", keys = "z" },
|
||||
},
|
||||
|
||||
clues = {
|
||||
@@ -46,23 +46,6 @@ return {
|
||||
-- miniclue.gen_clues.windows(),
|
||||
-- miniclue.gen_clues.z(),
|
||||
},
|
||||
}
|
||||
},
|
||||
-- Breaks LSP attach
|
||||
-- {
|
||||
-- "folke/which-key.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = function()
|
||||
-- return require("plugins.opts.whichKey")
|
||||
-- end,
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "<leader>?",
|
||||
-- function()
|
||||
-- require("which-key").show({ global = false })
|
||||
-- end,
|
||||
-- desc = "Buffer Local Keymaps (which-key)",
|
||||
-- },
|
||||
-- },
|
||||
-- }
|
||||
},
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"github/copilot.vim",
|
||||
enabled = false,
|
||||
},
|
||||
{
|
||||
"olimorris/codecompanion.nvim",
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {
|
||||
opts = {
|
||||
log_level = "DEBUG", -- or "TRACE"
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
fish = { "fish" },
|
||||
css = { "stylelint" },
|
||||
scss = { "stylelint" },
|
||||
ts = { "eslint_d" },
|
||||
js = { "eslint_d" },
|
||||
jsx = { "eslint_d" },
|
||||
tsx = { "eslint_d" },
|
||||
-- Use the "*" filetype to run linters on all filetypes.
|
||||
-- ['*'] = { 'global linter' },
|
||||
-- Use the "_" filetype to run linters on filetypes that don't have other linters configured.
|
||||
-- ['_'] = { 'fallback linter' },
|
||||
-- ["*"] = { "typos" },
|
||||
},
|
||||
},
|
||||
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
|
||||
lint.linters_by_ft = {
|
||||
css = { "stylelint" },
|
||||
scss = { "stylelint" },
|
||||
ts = { "eslint_d" },
|
||||
js = { "eslint_d" },
|
||||
javascript = { "eslint_d" },
|
||||
typescript = { "eslint_d" },
|
||||
typescriptreact = { "eslint_d" },
|
||||
wpjsx = { "eslint_d" },
|
||||
svelte = { "biomejs" },
|
||||
python = { "ruff" },
|
||||
go = { "golangcilint" },
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
return {
|
||||
}
|
||||
@@ -95,16 +95,7 @@ local config = {
|
||||
-- A list of all symbols to display. Set to false to display all symbols.
|
||||
-- This can be a filetype map (see :help aerial-filetype-map)
|
||||
-- To see all available values, see :help SymbolKind
|
||||
filter_kind = {
|
||||
"Class",
|
||||
"Constructor",
|
||||
"Enum",
|
||||
"Function",
|
||||
"Interface",
|
||||
"Module",
|
||||
"Method",
|
||||
"Struct",
|
||||
},
|
||||
filter_kind = false,
|
||||
|
||||
-- Determines line highlighting mode when multiple splits are visible.
|
||||
-- split_width Each open window will have its cursor location marked in the
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||
keymap = {
|
||||
preset = "default",
|
||||
["<Enter>"] = { "accept", "fallback" },
|
||||
["<Tab>"] = { "select_next", "fallback" },
|
||||
["<S-Tab>"] = { "select_prev", "fallback" },
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = "mono",
|
||||
},
|
||||
completion = {
|
||||
accept = { auto_brackets = { enabled = false } },
|
||||
list = { selection = { preselect = false, auto_insert = true } },
|
||||
menu = {
|
||||
auto_show = true,
|
||||
|
||||
-- nvim-cmp style menu
|
||||
draw = {
|
||||
columns = {
|
||||
{ "label", "label_description", gap = 1 },
|
||||
{ "kind_icon", "kind" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Show documentation when selecting a completion item
|
||||
documentation = { auto_show = true, auto_show_delay_ms = 500 },
|
||||
-- Display a preview of the selected item on the current line
|
||||
ghost_text = { enabled = true },
|
||||
},
|
||||
sources = {},
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||
}
|
||||
@@ -12,7 +12,7 @@ local config = {
|
||||
options = {
|
||||
themeable = true,
|
||||
numbers = "none",
|
||||
diagnostics = "nvim_lsp", -- or "coc"
|
||||
diagnostics = false, -- or "nvim_lsp", "coc"
|
||||
max_prefix_length = 8,
|
||||
close_command = "b# | bd#",
|
||||
right_mouse_command = "b# | bd#",
|
||||
@@ -43,9 +43,15 @@ local config = {
|
||||
offsets = {
|
||||
{
|
||||
filetype = "neo-tree",
|
||||
text = "",
|
||||
highlight = "Directory",
|
||||
separator = "▎", -- use a "true" to enable the default, or set your own character
|
||||
text = "", -- , ,
|
||||
highlight = "Filler",
|
||||
|
||||
-- text = function()
|
||||
-- return vim.fn.getcwd()
|
||||
-- end,
|
||||
-- highlight = "Directory",
|
||||
-- text_align = "left",
|
||||
separator = "", -- use a "true" to enable the default, or set your own character
|
||||
},
|
||||
},
|
||||
groups = {
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
local cmp = require("cmp")
|
||||
|
||||
local function border(hl_name)
|
||||
return {
|
||||
{ "╭", hl_name },
|
||||
{ "─", hl_name },
|
||||
{ "╮", hl_name },
|
||||
{ "│", hl_name },
|
||||
{ "╯", hl_name },
|
||||
{ "─", hl_name },
|
||||
{ "╰", hl_name },
|
||||
{ "│", hl_name },
|
||||
}
|
||||
end
|
||||
|
||||
local options = {
|
||||
completion = {
|
||||
completeopt = "menu,menuone",
|
||||
},
|
||||
|
||||
window = {
|
||||
completion = {
|
||||
side_padding = 1,
|
||||
scrollbar = false,
|
||||
},
|
||||
documentation = {
|
||||
border = border("CmpDocBorder"),
|
||||
winhighlight = "Normal:CmpDoc",
|
||||
},
|
||||
},
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require("luasnip").lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
preselect = cmp.PreselectMode.None,
|
||||
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(),
|
||||
["<CR>"] = cmp.mapping.confirm({
|
||||
behavior = cmp.ConfirmBehavior.Insert,
|
||||
select = true,
|
||||
}),
|
||||
["<Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
elseif require("luasnip").expand_or_jumpable() then
|
||||
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-expand-or-jump", true, true, true), "")
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, {
|
||||
"i",
|
||||
"s",
|
||||
}),
|
||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif require("luasnip").jumpable(-1) then
|
||||
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-jump-prev", true, true, true), "")
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, {
|
||||
"i",
|
||||
"s",
|
||||
}),
|
||||
},
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
{ name = "buffer" },
|
||||
{ name = "nvim_lua" },
|
||||
{ name = "path" },
|
||||
{ name = "emoji" },
|
||||
},
|
||||
}
|
||||
|
||||
return options
|
||||
@@ -16,13 +16,26 @@ local options = {
|
||||
statusline = 1000,
|
||||
tabline = 1000,
|
||||
winbar = 1000,
|
||||
refresh_time = 16, -- ~60fps
|
||||
events = {
|
||||
"WinEnter",
|
||||
"BufEnter",
|
||||
"BufWritePost",
|
||||
"SessionLoadPost",
|
||||
"FileChangedShellPost",
|
||||
"VimResized",
|
||||
"Filetype",
|
||||
"CursorMoved",
|
||||
"CursorMovedI",
|
||||
"ModeChanged",
|
||||
},
|
||||
},
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_b = { "branch", "diff" },
|
||||
lualine_c = { "filename" },
|
||||
lualine_x = { "diagnostics", "filetype", "encoding", "fileformat" },
|
||||
lualine_c = { "filename", "diagnostics" },
|
||||
lualine_x = { "searchcount", "filetype", "encoding", "fileformat" },
|
||||
lualine_y = { "progress" },
|
||||
lualine_z = { "location" },
|
||||
},
|
||||
|
||||
@@ -17,10 +17,10 @@ local config = {
|
||||
},
|
||||
diagnostics = {
|
||||
symbols = {
|
||||
hint = "H",
|
||||
info = "I",
|
||||
warn = "!",
|
||||
error = "X",
|
||||
hint = "",
|
||||
info = "",
|
||||
warn = "",
|
||||
error = "",
|
||||
},
|
||||
highlights = {
|
||||
hint = "DiagnosticSignHint",
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
local config = {
|
||||
views = {
|
||||
cmdline_popup = {
|
||||
position = {
|
||||
row = 3,
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = 60,
|
||||
height = "auto",
|
||||
},
|
||||
},
|
||||
cmdline_popupmenu = {
|
||||
position = {
|
||||
row = 6,
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = 60,
|
||||
height = "auto",
|
||||
},
|
||||
},
|
||||
},
|
||||
cmdline = {
|
||||
enabled = true,
|
||||
view = "cmdline", -- cmdline, cmdline_popup
|
||||
opts = {},
|
||||
---@type table<string, CmdlineFormat>
|
||||
format = {
|
||||
cmdline = { pattern = "^:", icon = "λ", lang = "vim", title = "" },
|
||||
search_down = { kind = "search", pattern = "^/", icon = " ", lang = "regex" },
|
||||
search_up = { kind = "search", pattern = "^%?", icon = " ", lang = "regex" },
|
||||
filter = { pattern = "^:%s*!", icon = "$", lang = "bash" },
|
||||
lua = {
|
||||
pattern = { "^:%s*lua%s+", "^:%s*lua%s*=%s*", "^:%s*=%s*" },
|
||||
icon = "",
|
||||
lang = "lua",
|
||||
},
|
||||
help = { pattern = "^:%s*he?l?p?%s+", icon = "" },
|
||||
input = {}, -- Used by input()
|
||||
-- lua = false, -- to disable a format, set to `false`
|
||||
},
|
||||
},
|
||||
notify = {
|
||||
-- Noice can be used as `vim.notify` so you can route any notification like other messages
|
||||
-- Notification messages have their level and other properties set.
|
||||
-- event is always "notify" and kind can be any log level as a string
|
||||
-- The default routes will forward notifications to nvim-notify
|
||||
-- Benefit of using Noice for this is the routing and consistent history view
|
||||
enabled = false,
|
||||
view = "notify",
|
||||
},
|
||||
lsp = {
|
||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||
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 = {
|
||||
bottom_search = true, -- use a classic bottom cmdline for search
|
||||
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
|
||||
},
|
||||
routes = {
|
||||
{ view = "cmdline", filter = { event = "msg_showmode" } },
|
||||
{
|
||||
filter = {
|
||||
event = "msg_show",
|
||||
kind = "",
|
||||
find = "written",
|
||||
},
|
||||
opts = { skip = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return config
|
||||
@@ -34,7 +34,7 @@ return {
|
||||
highlight = "Search",
|
||||
},
|
||||
Error = {
|
||||
text = { "-", "x" },
|
||||
text = { "-", "" },
|
||||
priority = 2,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
@@ -43,7 +43,7 @@ return {
|
||||
highlight = "DiagnosticVirtualTextError",
|
||||
},
|
||||
Warn = {
|
||||
text = { "-", "!" },
|
||||
text = { "-", "" },
|
||||
priority = 3,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
@@ -61,7 +61,7 @@ return {
|
||||
highlight = "DiagnosticVirtualTextInfo",
|
||||
},
|
||||
Hint = {
|
||||
text = { "-", "=" },
|
||||
text = { "-", "" },
|
||||
priority = 5,
|
||||
gui = nil,
|
||||
color = nil,
|
||||
|
||||
@@ -34,7 +34,7 @@ local options = {
|
||||
file_ignore_patterns = { "node_modules" },
|
||||
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
|
||||
path_display = { "truncate" },
|
||||
winblend = 0,
|
||||
winblend = 0, -- transparency
|
||||
border = {},
|
||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||
color_devicons = true,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
local options = {
|
||||
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
||||
max_lines = 1, -- How many lines the window should span. Values <= 0 mean no limit.
|
||||
enable = false, -- Enable this plugin (Can be enabled/disabled later via commands)
|
||||
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
||||
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
|
||||
line_numbers = true,
|
||||
multiline_threshold = 20, -- Maximum number of lines to show for a single context
|
||||
trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
||||
mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline'
|
||||
mode = "topline", -- Line used to calculate context. Choices: 'cursor', 'topline'
|
||||
-- Separator between context and content. Should be a single character string, like '-'.
|
||||
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
|
||||
separator = nil,
|
||||
separator = "─",
|
||||
zindex = 20, -- The Z-index of the context window
|
||||
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
|
||||
}
|
||||
|
||||
+29
-13
@@ -1,18 +1,34 @@
|
||||
return {
|
||||
-- {
|
||||
-- "toppair/peek.nvim",
|
||||
-- event = { "VeryLazy" },
|
||||
-- build = "deno task --quiet build:fast",
|
||||
-- config = function()
|
||||
-- require("peek").setup()
|
||||
-- vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
|
||||
-- vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
init = function(_, opts)
|
||||
return require("colorizer").setup(opts)
|
||||
"NvChad/nvim-colorizer.lua",
|
||||
config = function()
|
||||
require("colorizer").setup({
|
||||
filetypes = { "css", "javascript", html = { mode = "foreground" }, "astro", "vue", "scss", "text" },
|
||||
user_default_options = {
|
||||
RGB = true, -- #RGB hex codes
|
||||
RRGGBB = true, -- #RRGGBB hex codes
|
||||
names = true, -- "Name" codes like Blue or blue
|
||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
||||
AARRGGBB = false, -- 0xAARRGGBB hex codes
|
||||
rgb_fn = true, -- CSS rgb() and rgba() functions
|
||||
hsl_fn = true, -- CSS hsl() and hsla() functions
|
||||
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||||
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||||
-- Available modes for `mode`: foreground, background, virtualtext
|
||||
mode = "virtualtext", -- Set the display mode.
|
||||
-- Available methods are false / true / "normal" / "lsp" / "both"
|
||||
-- True is same as normal
|
||||
tailwind = false, -- Enable tailwind colors
|
||||
-- parsers can contain values used in |user_default_options|
|
||||
sass = { enable = true, parsers = { "css" } }, -- Enable sass colors
|
||||
virtualtext = "■",
|
||||
-- update color values even if buffer is not focused
|
||||
-- example use: cmp_menu, cmp_docs
|
||||
always_update = false,
|
||||
},
|
||||
-- all the sub-options of filetypes apply to buftypes
|
||||
buftypes = {},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
+29
-3
@@ -1,4 +1,29 @@
|
||||
local config = {
|
||||
{
|
||||
"mason-org/mason.nvim",
|
||||
opts = {
|
||||
ui = {
|
||||
icons = {
|
||||
package_installed = "✓",
|
||||
package_pending = "➜",
|
||||
package_uninstalled = "✗",
|
||||
},
|
||||
},
|
||||
ensure_isntalled = {
|
||||
lsp = {
|
||||
"typescript-language-server",
|
||||
"eslint-lsp",
|
||||
},
|
||||
dap = {},
|
||||
linter = {
|
||||
"eslint_d",
|
||||
},
|
||||
formatter = {
|
||||
"prettier",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/snacks.nvim",
|
||||
priority = 1000,
|
||||
@@ -18,8 +43,10 @@ local config = {
|
||||
words = { enabled = true },
|
||||
},
|
||||
},
|
||||
-- Task runner
|
||||
-- TODO: think if really necessary
|
||||
{
|
||||
'stevearc/overseer.nvim',
|
||||
"stevearc/overseer.nvim",
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
@@ -29,8 +56,7 @@ local config = {
|
||||
opts = {
|
||||
suppressed_dirs = { "~/", "~/Downloads", "/" },
|
||||
},
|
||||
}
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
return config
|
||||
+2
-15
@@ -29,25 +29,12 @@ return {
|
||||
end
|
||||
end,
|
||||
},
|
||||
{ 'mbbill/undotree' },
|
||||
{ "mbbill/undotree" },
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||
},
|
||||
},
|
||||
{
|
||||
'MagicDuck/grug-far.nvim',
|
||||
-- config = function()
|
||||
-- require('grug-far').setup({
|
||||
-- });
|
||||
-- end
|
||||
"MagicDuck/grug-far.nvim",
|
||||
},
|
||||
}
|
||||
@@ -10,11 +10,6 @@ return {
|
||||
-- variant = "darker", -- dark, light, darker | dawn
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
"oskarnurm/koda.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
},
|
||||
{
|
||||
"dqnid/komau.vim",
|
||||
-- dir = "~/Documents/Code/komau.vim",
|
||||
@@ -72,21 +67,6 @@ return {
|
||||
|
||||
{ "echasnovski/mini.icons" },
|
||||
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = function()
|
||||
return require("plugins.opts.noice")
|
||||
end,
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
-- "rcarriga/nvim-notify",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"shortcuts/no-neck-pain.nvim",
|
||||
version = "*",
|
||||
|
||||
Reference in new issue
Block a user