diff --git a/after/plugin/autopairs.lua b/after/plugin/autopairs.lua deleted file mode 100644 index 957d7fd..0000000 --- a/after/plugin/autopairs.lua +++ /dev/null @@ -1,27 +0,0 @@ -npairs = require "nvim-autopairs" - -npairs.setup { - check_ts = true, - ts_config = { - lua = { "string", "source" }, - javascript = { "string", "template_string" }, - java = false, - }, - disable_filetype = { "TelescopePrompt", "spectre_panel" }, - fast_wrap = { - map = "", - chars = { "{", "[", "(", '"', "'" }, - pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], "%s+", ""), - offset = 0, -- Offset from pattern match - end_key = "$", - keys = "qwertyuiopzxcvbnmasdfghjkl", - check_comma = true, - highlight = "PmenuSel", - highlight_grey = "LineNr", - }, -} - -local cmp_autopairs = require "nvim-autopairs.completion.cmp" -local cmp = require "cmp" - -cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } }) diff --git a/after/plugin/barbar.lua b/after/plugin/barbar.lua deleted file mode 100644 index 8c649ba..0000000 --- a/after/plugin/barbar.lua +++ /dev/null @@ -1,94 +0,0 @@ --- -- Set barbar's options --- require'bufferline'.setup { --- -- Enable/disable animations --- animation = true, --- --- -- Enable/disable auto-hiding the tab bar when there is a single buffer --- auto_hide = false, --- --- -- Enable/disable current/total tabpages indicator (top right corner) --- tabpages = true, --- --- -- Enable/disable close button --- closable = true, --- --- -- Enables/disable clickable tabs --- -- - left-click: go to buffer --- -- - middle-click: delete buffer --- clickable = true, --- --- -- Enables / disables diagnostic symbols --- diagnostics = { --- -- you can use a list --- {enabled = true, icon = 'ff'}, -- ERROR --- {enabled = false}, -- WARN --- {enabled = false}, -- INFO --- {enabled = true}, -- HINT --- --- -- OR `vim.diagnostic.severity` --- [vim.diagnostic.severity.ERROR] = {enabled = true, icon = 'ff'}, --- [vim.diagnostic.severity.WARN] = {enabled = false}, --- [vim.diagnostic.severity.INFO] = {enabled = false}, --- [vim.diagnostic.severity.HINT] = {enabled = true}, --- }, --- --- -- Excludes buffers from the tabline --- exclude_ft = {'javascript'}, --- exclude_name = {'package.json'}, --- --- -- Hide inactive buffers and file extensions. Other options are `alternate`, `current`, and `visible`. --- hide = {extensions = true, inactive = false}, --- --- -- Disable highlighting alternate buffers --- highlight_alternate = false, --- --- -- Enable highlighting visible buffers --- highlight_visible = true, --- --- -- Enable/disable icons --- -- if set to 'numbers', will show buffer index in the tabline --- -- if set to 'both', will show buffer index and icons in the tabline --- icons = true, --- --- -- If set, the icon color will follow its corresponding buffer --- -- highlight group. By default, the Buffer*Icon group is linked to the --- -- Buffer* group (see Highlighting below). Otherwise, it will take its --- -- default value as defined by devicons. --- icon_custom_colors = false, --- --- -- Configure icons on the bufferline. --- icon_separator_active = '▎', --- icon_separator_inactive = '▎', --- icon_close_tab = '', --- icon_close_tab_modified = '●', --- icon_pinned = '車', --- --- -- If true, new buffers will be inserted at the start/end of the list. --- -- Default is to insert after current buffer. --- insert_at_end = false, --- insert_at_start = false, --- --- -- Sets the maximum padding width with which to surround each tab --- maximum_padding = 1, --- --- -- Sets the minimum padding width with which to surround each tab --- minimum_padding = 1, --- --- -- Sets the maximum buffer name length. --- maximum_length = 30, --- --- -- If set, the letters for each buffer in buffer-pick mode will be --- -- assigned based on their name. Otherwise or in case all letters are --- -- already assigned, the behavior is to assign letters in order of --- -- usability (see order below) --- semantic_letters = true, --- --- -- New buffer letters are assigned in this order. This order is --- -- optimal for the qwerty keyboard layout but might need adjustement --- -- for other layouts. --- letters = 'asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP', --- --- -- Sets the name of unnamed buffers. By default format is "[Buffer X]" --- -- where X is the buffer number. But only a static string is accepted here. --- no_name_title = nil, --- } diff --git a/after/plugin/bufferline.lua b/after/plugin/bufferline.lua deleted file mode 100644 index d1345db..0000000 --- a/after/plugin/bufferline.lua +++ /dev/null @@ -1,28 +0,0 @@ -vim.opt.termguicolors = true --- require("bufferline").setup{} -require("bufferline").setup { - options = { - offsets = { - { - filetype = "NvimTree", - text = "Nvim Tree", - separator = true, - text_align = "left" - } - }, - mode = "tabs", - diagnostics = "nvim_lsp", - separator_style = { "", "" }, - buffer_close_icon = '', - modified_icon = '●', - left_trunc_marker = '', - right_trunc_marker = '', - show_close_icon = true, - show_buffer_close_icons = true, - color_icons = true, - show_tab_indicators = true, - hover = { - enable = true, - } - } -} diff --git a/after/plugin/comment.lua b/after/plugin/comment.lua deleted file mode 100644 index 781d51f..0000000 --- a/after/plugin/comment.lua +++ /dev/null @@ -1,45 +0,0 @@ -require('Comment').setup({ - ---Add a space b/w comment and the line - padding = true, - ---Whether the cursor should stay at its position - sticky = true, - -- Lines to be ignored while (un)comment - ignore = '^$', - ---LHS of toggle mappings in NORMAL mode - toggler = { - ---Line-comment toggle keymap - line = 'gcc', - ---Block-comment toggle keymap - block = 'gbc', - }, - ---LHS of operator-pending mappings in NORMAL and VISUAL mode - opleader = { - ---Line-comment keymap - line = 'gc', - ---Block-comment keymap - block = 'gb', - }, - ---LHS of extra mappings - extra = { - ---Add comment on the line above - above = 'gcO', - ---Add comment on the line below - below = 'gco', - ---Add comment at the end of line - eol = 'gcA', - }, - ---Enable keybindings - ---NOTE: If given `false` then the plugin won't create any mappings - mappings = { - ---Operator-pending mapping; `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}` - basic = true, - ---Extra mapping; `gco`, `gcO`, `gcA` - extra = true, - ---Extended mapping; `g>` `g<` `g>[count]{motion}` `g<[count]{motion}` - extended = false, - }, - ---Function to call before (un)comment - pre_hook = nil, - ---Function to call after (un)comment - post_hook = nil, -}) diff --git a/after/plugin/conform.lua b/after/plugin/conform.lua deleted file mode 100644 index ba0c80e..0000000 --- a/after/plugin/conform.lua +++ /dev/null @@ -1,15 +0,0 @@ -require("conform").setup({ - format_on_save = { - -- These options will be passed to conform.format() - timeout_ms = 500, - lsp_fallback = true, - }, - formatters_by_ft = { - lua = { "stylua" }, - -- Conform will run multiple formatters sequentially - python = { "black" }, - -- Use a sub-list to run only the first available formatter - javascript = { "prettier" }, - typescript = { "prettier" } - }, -}) diff --git a/after/plugin/dashboard.lua b/after/plugin/dashboard.lua deleted file mode 100644 index e50b8ae..0000000 --- a/after/plugin/dashboard.lua +++ /dev/null @@ -1,237 +0,0 @@ -local db = require('dashboard') -local version = vim.version() - -db.custom_header = { - ' ▄█ █ █▄ ', - ' ▐██ ▄█ ███ █▄ ██▌ ', - ' ▐██▌ ██████████████ ▐██▌ ', - ' ████ ████████████████ ████ ', - ' ▐█████ ██████████████████ █████▌ ', - ' ████████████████████████████████ ', - ' ███████▀▀████████████▀▀███████ ', - ' █████▌ ▄▄ ▀████▀ ▄▄ ▐█████ ', - ' ▄▄██████▄ ▀▀ ████ ▀▀ ▄██████▄▄ ', - ' ██████████████████████████████████ ', - ' ████████████████████████████████████ ', - ' ██████ ███████▀▄██▄▀███████ ██████▌ ', - '▐█████ ██████████████████ █████▌ ', - ' ▐█████ ██████▀ ▀██████ █████▌ ', - ' █████▄ ███ ███ ▄█████ ', - ' ██████ █ █ ██████ ', - ' █████ █████ ', - ' █████ █████ ', - ' ████ ▄ ▄ ████ ', - ' ████ ██ ██ ████ ', - ' ████████ ▄██▄ ████████ ', - ' ████████████████████████ ', - ' ████████████████████████ ', - ' ▀█████████▀▀█████████▀ ', - ' ▀███▀ ▀███▀ ', -} --- db.custom_header = { --- '', --- '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠛⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠀⠀⠀⠀⢰⣶⣶⣶⠀⣶⣶⣶⣶⠀⢰⣶⣶⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⠀⣿⣿⣿⣿⠀⢸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⢠⣤⣤⣤⠀⢠⣤⣤⣤⠀⣤⣤⣤⣤⠀⢠⣤⣤⣤⠀⣰⣿⣿⣦⡀⠀⠀⠀⠀', --- '⠀⢸⣿⣿⣿⠀⢸⣿⣿⣿⠀⣿⣿⣿⣿⠀⢸⣿⣿⣿⠀⣿⣿⠹⣿⣷⣀⠀⠀⠀', --- '⠀⠘⠛⠛⠛⠀⠘⠛⠛⠛⠀⠛⠛⠛⠛⠀⠘⠛⠛⠛⢀⣿⣿⡀⠙⠿⠿⣿⣶⣆', --- '⣴⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣿⣿⣿⠟⢁⣤⣴⣶⣾⡿⠋', --- '⣿⣿⣿⣛⣛⣛⣛⣿⣟⣛⣛⣻⣿⣟⣛⣛⣻⣿⣟⣋⣉⣠⣤⣾⣿⣟⣻⣍⠀⠀', --- '⢹⣿⣿⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⠋⠀⠀⠀⠀⠀', --- '⠈⢻⣿⣿⣿⡿⠿⠿⠿⠛⠉⠀⠀⠀⠀⠀⢀⣠⣴⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠙⢿⣿⣿⣶⣦⣤⣤⣤⣤⣤⣴⣶⣿⣿⣿⣿⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀', --- '⠀⠀⠀⠀⠈⠙⠛⠛⠿⠿⠿⠿⠿⠛⠛⠛⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', --- '', --- } - - --- db.custom_header = { --- " :h- Nhy` ", --- " -mh. h. `Ndho ", --- " hmh+ oNm. oNdhh ", --- " `Nmhd` /NNmd /NNhhd ", --- " -NNhhy `hMNmmm`+NNdhhh ", --- " .NNmhhs ```....`..-:/./mNdhhh+ ", --- " mNNdhhh- `.-::///+++////++//:--.`-/sd` ", --- " oNNNdhhdo..://++//++++++/+++//++///++/-.` ", --- " y. `mNNNmhhhdy+/++++//+/////++//+++///++////-` `/oos: ", --- " . Nmy: :NNNNmhhhhdy+/++/+++///:.....--:////+++///:.`:s+ ", --- " h- dNmNmy oNNNNNdhhhhy:/+/+++/- ---:/+++//++//.` ", --- " hd+` -NNNy`./dNNNNNhhhh+-:///// -+oo:` ::-:+////++///:` ", --- " /Nmhs+oss-:++/dNNNmhho:--::/// /mmmmmo ../-///++///////. ", --- " oNNdhhhhhhhs//osso/:---:::/// /yyyyso ..o+-//////////:/. ", --- " /mNNNmdhhhh/://+///:::////// -:::- ..+sy+:////////::/:/. ", --- " /hNNNdhhs--:/+++////++/////. ..-/yhhs-/////////::/::/` ", --- " .ooo+/-::::/+///////++++//-/ossyyhhhhs/:///////:::/::::/: ", --- " -///:::::::////++///+++/////:/+ooo+/::///////.::://::---+` ", --- " /////+//++++/////+////-..//////////::-:::--`.:///:---:::/: ", --- " //+++//++++++////+++///::-- .::::-------:: ", --- " :/++++///////////++++//////. -:/:----::../- ", --- " -/++++//++///+////////////// .::::---:::-.+` ", --- " `////////////////////////////:. --::-----...-/ ", --- " -///://////////////////////::::-.. :-:-:-..-::.`.+` ", --- " :/://///:///::://::://::::::/:::::::-:---::-.-....``/- - ", --- " ::::://::://::::::::::::::----------..-:....`.../- -+oo/ ", --- " -/:::-:::::---://:-::-::::----::---.-.......`-/. ``", --- " s-`::--:::------:////----:---.-:::...-.....`./: ", --- " yMNy.`::-.--::..-dmmhhhs-..-.-.......`.....-/:` ", --- " oMNNNh. `-::--...:NNNdhhh/.--.`..``.......:/- ", --- " :dy+:` .-::-..NNNhhd+``..`...````.-::-` ", --- " .-:mNdhh:.......--::::-` ", --- " yNh/..------..` ", --- " ", --- "N E O V I M - v " .. version.major .. "." .. version.minor, --- } --- db.custom_header = { --- '', --- ' ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣭⣿⣶⣿⣦⣼⣆ ', --- ' ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ', --- ' ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄ ', --- ' ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ', --- ' ⢠⣿⣿⣿⠈ ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ', --- ' ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ', --- ' ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ', --- ' ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ', --- ' ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ', --- ' ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ', --- ' ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ', --- ' ⢰⣶ ⣶ ⢶⣆⢀⣶⠂⣶⡶⠶⣦⡄⢰⣶⠶⢶⣦ ⣴⣶ ', --- ' ⢸⣿⠶⠶⣿ ⠈⢻⣿⠁ ⣿⡇ ⢸⣿⢸⣿⢶⣾⠏ ⣸⣟⣹⣧ ', --- ' ⠸⠿ ⠿ ⠸⠿ ⠿⠷⠶⠿⠃⠸⠿⠄⠙⠷⠤⠿⠉⠉⠿⠆ ', --- '', --- } --- db.custom_header = { --- [[ ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣭⣿⣶⣿⣦⣼⣆ ]], --- [[ ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ]], --- [[ ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄ ]], --- [[ ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ]], --- [[ ⢠⣿⣿⣿⠈ ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ]], --- [[ ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ]], --- [[ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ]], --- [[ ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ]], --- [[ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ]], --- [[ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ]], --- [[ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ]], --- [[ ⢰⣶ ⣶ ⢶⣆⢀⣶⠂⣶⡶⠶⣦⡄⢰⣶⠶⢶⣦ ⣴⣶ ]], --- [[ ⢸⣿⠶⠶⣿ ⠈⢻⣿⠁ ⣿⡇ ⢸⣿⢸⣿⢶⣾⠏ ⣸⣟⣹⣧ ]], --- [[ ⠸⠿ ⠿ ⠸⠿ ⠿⠷⠶⠿⠃⠸⠿⠄⠙⠷⠤⠿⠉⠉⠿⠆ ]], --- } - --- vim.g.dashboard_default_executive = 'telescope' --- vim.g.dashboard_custom_header = { --- [[ ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣭⣿⣶⣿⣦⣼⣆ ]], --- [[ ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ]], --- [[ ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄ ]], --- [[ ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ]], --- [[ ⢠⣿⣿⣿⠈ ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ]], --- [[ ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ]], --- [[ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ]], --- [[ ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ]], --- [[ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ]], --- [[ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ]], --- [[ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ]], --- [[ ⢰⣶ ⣶ ⢶⣆⢀⣶⠂⣶⡶⠶⣦⡄⢰⣶⠶⢶⣦ ⣴⣶ ]], --- [[ ⢸⣿⠶⠶⣿ ⠈⢻⣿⠁ ⣿⡇ ⢸⣿⢸⣿⢶⣾⠏ ⣸⣟⣹⣧ ]], --- [[ ⠸⠿ ⠿ ⠸⠿ ⠿⠷⠶⠿⠃⠸⠿⠄⠙⠷⠤⠿⠉⠉⠿⠆ ]], --- } --- --- vim.g.dashboard_custom_section = { --- a = {description = {' Find File '}, command = 'Telescope find_files'}, --- d = {description = {' Search Text '}, command = 'Telescope live_grep'}, --- c = {description = {' New File '}, command = 'DashboardNewFile'}, --- b = {description = {' Recent Files '}, command = 'Telescope oldfiles'}, --- -- e = {description = {' Config '}, command = 'edit ~/.config/nvim/init.lua'}, --- } --- vim.g.dashboard_custom_footer = {'Do one thing, do it well - Unix Philosophy'} -local icon_color = "Function" -db.custom_center = { - { - desc = "Find File ", - shortcut = "f", - icon = " ", - icon_hl = { link = icon_color }, - action = "Telescope find_files", - }, - { - desc = "Recents ", - shortcut = "r", - icon = " ", - icon_hl = { link = icon_color }, - action = "Telescope oldfiles", - }, - - { - desc = "Browse Files ", - shortcut = ".", - icon = " ", - icon_hl = { link = icon_color }, - action = "Telescope file_browser" - }, - -- { shortcut = "fg", icon = " ", desc = "Find Word", action = "Telescope live_grep" }, - - { - desc = "New File ", - shortcut = "n", - icon = " ", - icon_hl = { link = icon_color }, - action = "DashboardNewFile", - }, - - -- { shortcut = "fm", icon = " ", desc = "Bookmark", action = "Telescope marks" }, - { - desc = "Load Last Session ", - shortcut = "L", - icon = " ", - icon_hl = { link = icon_color }, - action = "SessionLoad", - }, - - { - desc = "Update Plugins ", - shortcut = "u", - icon = " ", - icon_hl = { link = icon_color }, - action = "PackerUpdate", - }, - { - desc = "Setting ", - shortcut = "s", - icon = " ", - icon_hl = { link = icon_color }, - action = "edit $MYVIMRC", - }, - { - desc = "Exit ", - shortcut = "q", - icon = " ", - icon_hl = { link = icon_color }, - action = "exit", - }, -} - -db.custom_footer = { "type :help or for on-line help" } - - -vim.api.nvim_create_autocmd('Filetype', { - pattern = 'dashboard', - group = vim.api.nvim_create_augroup('Dashboard_au', { clear = true }), - callback = function() - vim.cmd [[ - hi! link DashboardFooter NonText - setlocal buftype=nofile - setlocal nonumber norelativenumber nocursorline noruler - nnoremap f Telescope find_files - nnoremap r Telescope oldfiles - nnoremap . Telescope file_browser - nnoremap n DashboardNewFile - nnoremap en DashboardNewFile - nnoremap L SessionLoad - nnoremap u PackerUpdate - nnoremap s edit $MYVIMRC - nnoremap q exit - ]] - end -}) diff --git a/after/plugin/lspconfig.lua b/after/plugin/lspconfig.lua deleted file mode 100644 index 63d257a..0000000 --- a/after/plugin/lspconfig.lua +++ /dev/null @@ -1,147 +0,0 @@ -local capabilities = vim.lsp.protocol.make_client_capabilities() -capabilities.textDocument.completion.completionItem.snippetSupport = true - --- Mappings. --- See `:help vim.diagnostic.*` for documentation on any of the below functions -local opts = { noremap = true, silent = true } -vim.keymap.set('n', 'e', vim.diagnostic.open_float, opts) -vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts) -vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts) -vim.keymap.set('n', 'q', vim.diagnostic.setloclist, opts) - --- Use an on_attach function to only map the following keys --- after the language server attaches to the current buffer -local on_attach = function(client, bufnr) - -- Enable completion triggered by - vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') - - -- Mappings. - -- See `:help vim.lsp.*` for documentation on any of the below functions - local bufopts = { noremap = true, silent = true, buffer = bufnr } - vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts) - vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) - vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts) - vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts) - vim.keymap.set('n', '', vim.lsp.buf.signature_help, bufopts) - vim.keymap.set('n', 'wa', vim.lsp.buf.add_workspace_folder, bufopts) - vim.keymap.set('n', 'wr', vim.lsp.buf.remove_workspace_folder, bufopts) - vim.keymap.set('n', 'wl', function() - print(vim.inspect(vim.lsp.buf.list_workspace_folders())) - end, bufopts) - vim.keymap.set('n', 'D', vim.lsp.buf.type_definition, bufopts) - vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) - vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) - vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', 'f', vim.lsp.buf.format, bufopts) -end - -local lsp_flags = { - -- This is the default in Nvim 0.7+ - debounce_text_changes = 150, -} - -require 'lspconfig'.lua_ls.setup { - on_init = function(client) - local path = client.workspace_folders[1].name - if vim.loop.fs_stat(path .. '/.luarc.json') or vim.loop.fs_stat(path .. '/.luarc.jsonc') then - return - end - - client.config.settings.Lua = vim.tbl_deep_extend('force', client.config.settings.Lua, { - runtime = { - -- Tell the language server which version of Lua you're using - -- (most likely LuaJIT in the case of Neovim) - version = 'LuaJIT' - }, - -- Make the server aware of Neovim runtime files - workspace = { - checkThirdParty = false, - library = { - vim.env.VIMRUNTIME - -- Depending on the usage, you might want to add additional paths here. - -- "${3rd}/luv/library" - -- "${3rd}/busted/library", - } - -- or pull in all of 'runtimepath'. NOTE: this is a lot slower - -- library = vim.api.nvim_get_runtime_file("", true) - } - }) - end, - settings = { - Lua = {} - } -} - -require 'lspconfig'.prismals.setup {} - -require 'lspconfig'.svelte.setup {} - -require 'lspconfig'.grammarly.setup { - filetypes = { "markdown" } -} - -require 'lspconfig'.tailwindcss.setup({ - filetypes = { "aspnetcorerazor", "astro", "astro-markdown", "blade", "clojure", "django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs", "erb", "eruby", "gohtml", "gohtmltmpl", "haml", "handlebars", "hbs", "html", "html-eex", "heex", "jade", "leaf", "liquid", "markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor", "slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus", "sugarss", "javascript", "javascriptreact", "reason", "rescript", "typescript", "typescriptreact", "vue", "svelte", "templ" }, -}) - -require 'lspconfig'.eslint.setup({ - --- ... - on_attach = function(client, bufnr) - vim.api.nvim_create_autocmd("BufWritePre", { - buffer = bufnr, - command = "EslintFixAll", - }) - end, - filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue", "svelte", "astro" }, -}) - -require 'lspconfig'.emmet_ls.setup({ - -- on_attach = on_attach, - capabilities = capabilities, - filetypes = { "css", "eruby", "html", "javascript", "javascriptreact", "less", "sass", "scss", "svelte", "pug", "typescriptreact", "vue" }, - init_options = { - html = { - options = { - -- For possible options, see: https://github.com/emmetio/emmet/blob/master/src/config.ts#L79-L267 - ["bem.enabled"] = true, - }, - }, - } -}) - -require 'lspconfig'.prismals.setup {} - -require 'lspconfig'.biome.setup {} - -require 'lspconfig'.bashls.setup {} - -require 'lspconfig'.docker_compose_language_service.setup {} - -require("lspconfig").dockerls.setup { - settings = { - docker = { - languageserver = { - formatter = { - ignoreMultilineInstructions = true, - }, - }, - } - } -} - -require('lspconfig')['pyright'].setup { - on_attach = on_attach, - flags = lsp_flags, -} -require('lspconfig')['tsserver'].setup { - on_attach = on_attach, - flags = lsp_flags, -} -require('lspconfig')['rust_analyzer'].setup { - on_attach = on_attach, - flags = lsp_flags, - -- Server-specific settings... - settings = { - ["rust-analyzer"] = {} - } -} diff --git a/after/plugin/lspsaga.lua b/after/plugin/lspsaga.lua deleted file mode 100644 index c5b13e7..0000000 --- a/after/plugin/lspsaga.lua +++ /dev/null @@ -1,54 +0,0 @@ --- local keymap = vim.keymap.set --- local saga = require('lspsaga') --- --- -- saga.init_lsp_saga() --- --- -- Lsp finder find the symbol definition implement reference --- -- if there is no implement it will hide --- -- when you use action in finder like open vsplit then you can --- -- use to jump back --- keymap("n", "gh", "Lspsaga lsp_finder", { silent = true }) --- --- -- Code action --- keymap({"n","v"}, "ca", "Lspsaga code_action", { silent = true }) --- --- -- Rename --- keymap("n", "gr", "Lspsaga rename", { silent = true }) --- --- -- Peek Definition --- -- you can edit the definition file in this flaotwindow --- -- also support open/vsplit/etc operation check definition_action_keys --- -- support tagstack C-t jump back --- keymap("n", "gd", "Lspsaga peek_definition", { silent = true }) --- --- -- Show line diagnostics --- keymap("n", "cd", "Lspsaga show_line_diagnostics", { silent = true }) --- --- -- Show cursor diagnostic --- keymap("n", "cd", "Lspsaga show_cursor_diagnostics", { silent = true }) --- --- -- Diagnsotic jump can use `` to jump back --- keymap("n", "[e", "Lspsaga diagnostic_jump_prev", { silent = true }) --- keymap("n", "]e", "Lspsaga diagnostic_jump_next", { silent = true }) --- --- -- Only jump to error --- keymap("n", "[E", function() --- require("lspsaga.diagnostic").goto_prev({ severity = vim.diagnostic.severity.ERROR }) --- end, { silent = true }) --- keymap("n", "]E", function() --- require("lspsaga.diagnostic").goto_next({ severity = vim.diagnostic.severity.ERROR }) --- end, { silent = true }) --- --- -- Outline --- keymap("n","o", "LSoutlineToggle",{ silent = true }) --- --- -- Hover Doc --- keymap("n", "K", "Lspsaga hover_doc", { silent = true }) --- --- -- Float terminal --- keymap("n", "", "Lspsaga open_floaterm", { silent = true }) --- -- if you want pass somc cli command into terminal you can do like this --- -- open lazygit in lspsaga float terminal --- keymap("n", "", "Lspsaga open_floaterm lazygit", { silent = true }) --- -- close floaterm --- keymap("t", "", [[Lspsaga close_floaterm]], { silent = true }) diff --git a/after/plugin/lualine.lua b/after/plugin/lualine.lua deleted file mode 100644 index cc32a8e..0000000 --- a/after/plugin/lualine.lua +++ /dev/null @@ -1,51 +0,0 @@ -require'lualine'.setup() - --- require('lualine').setup({ --- options = { --- theme = function() --- local colors = { --- darkgray = "#16161d", --- gray = "#727169", --- innerbg = nil, --- outerbg = "#16161D", --- normal = "#7e9cd8", --- insert = "#98bb6c", --- visual = "#ffa066", --- replace = "#e46876", --- command = "#e6c384", --- } --- return { --- inactive = { --- a = { fg = colors.gray, bg = colors.outerbg, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- visual = { --- a = { fg = colors.darkgray, bg = colors.visual, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- replace = { --- a = { fg = colors.darkgray, bg = colors.replace, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- normal = { --- a = { fg = colors.darkgray, bg = colors.normal, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- insert = { --- a = { fg = colors.darkgray, bg = colors.insert, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- command = { --- a = { fg = colors.darkgray, bg = colors.command, gui = "bold" }, --- b = { fg = colors.gray, bg = colors.outerbg }, --- c = { fg = colors.gray, bg = colors.innerbg }, --- }, --- } --- end --- }, --- }) diff --git a/after/plugin/mason.lua b/after/plugin/mason.lua deleted file mode 100644 index 68334ba..0000000 --- a/after/plugin/mason.lua +++ /dev/null @@ -1,4 +0,0 @@ --- require 'mason'.setup() --- require 'mason-lspconfig'.setup({ --- ensure_installed = { "sumneko_lua", "rust_analyzer" } --- }) diff --git a/after/plugin/nvim-cmp.lua b/after/plugin/nvim-cmp.lua deleted file mode 100644 index 3fc9532..0000000 --- a/after/plugin/nvim-cmp.lua +++ /dev/null @@ -1,36 +0,0 @@ -local cmp = require'cmp' -cmp.setup({ -snippet = { - -- REQUIRED - you must specify a snippet engine - expand = function(args) - vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. - -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users. - -- require('snippy').expand_snippet(args.body) -- For `snippy` users. - -- vim.fn["UltiSnips#Anon"](args.body) -- For `ultisnips` users. - end, -}, -window = { - -- completion = cmp.config.window.bordered(), - -- documentation = cmp.config.window.bordered(), -}, -mapping = cmp.mapping.preset.insert({ - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - [''] = cmp.mapping.complete(), - [''] = cmp.mapping.abort(), - [''] = cmp.mapping(cmp.mapping.select_next_item()), - [''] = cmp.mapping(cmp.mapping.select_next_item()), - [''] = cmp.mapping(cmp.mapping.select_prev_item()), - [''] = cmp.mapping.confirm({ select = true }), -}), - -sources = cmp.config.sources({ - { name = 'nvim_lsp' }, - { name = 'vsnip' }, -- For vsnip users. - -- { name = 'luasnip' }, -- For luasnip users. - -- { name = 'ultisnips' }, -- For ultisnips users. - -- { name = 'snippy' }, -- For snippy users. -}, { - { name = 'buffer' }, -}) -}) diff --git a/after/plugin/nvim-transparent.lua b/after/plugin/nvim-transparent.lua deleted file mode 100644 index 159a8d2..0000000 --- a/after/plugin/nvim-transparent.lua +++ /dev/null @@ -1,15 +0,0 @@ --- require("transparent").setup({ --- -- enable = true, -- boolean: enable transparent --- extra_groups = { -- table/string: additional groups that should be cleared --- -- In particular, when you set it to 'all', that means all available groups --- --- -- example of akinsho/nvim-bufferline.lua --- "BufferLineTabClose", --- "BufferlineBufferSelected", --- "BufferLineFill", --- "BufferLineBackground", --- "BufferLineSeparator", --- "BufferLineIndicatorSelected", --- }, --- exclude_groups = {}, -- table: groups you don't want to clear --- }) diff --git a/after/plugin/nvim-tree.lua b/after/plugin/nvim-tree.lua deleted file mode 100644 index 264e53c..0000000 --- a/after/plugin/nvim-tree.lua +++ /dev/null @@ -1,37 +0,0 @@ --- examples for your init.lua - -require("nvim-tree").setup({ - view = { - adaptive_size = true, - mappings = { - custom_only = false, - list = { - { key = "l", action = "edit", action_cb = edit_or_open }, - { key = "L", action = "vsplit_preview", action_cb = vsplit_preview }, - { key = "h", action = "close_node" }, - { key = "H", action = "collapse_all", action_cb = collapse_all } - } - }, - }, - actions = { - open_file = { - quit_on_open = true - } - } - --- sort_by = "case_sensitive", --- view = { --- mappings = { --- list = { --- { key = "u", action = "dir_up" }, --- }, --- }, --- }, --- renderer = { --- group_empty = true, --- }, --- filters = { --- dotfiles = true, --- }, -}) -vim.api.nvim_set_keymap('n', '', ':NvimTreeToggle', {noremap = true, silent = true}) diff --git a/after/plugin/nvim-treesitter.lua b/after/plugin/nvim-treesitter.lua deleted file mode 100644 index d12eec8..0000000 --- a/after/plugin/nvim-treesitter.lua +++ /dev/null @@ -1,53 +0,0 @@ --- vim.opt.foldmethod = 'expr' --- vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' ----WORKAROUND --- vim.api.nvim_create_autocmd({'BufEnter','BufAdd','BufNew','BufNewFile','BufWinEnter'}, { --- group = vim.api.nvim_create_augroup('TS_FOLD_WORKAROUND', {}), --- callback = function() --- vim.opt.foldmethod = 'expr' --- vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' --- end --- }) ----ENDWORKAROUND ---- -require 'nvim-treesitter.configs'.setup { - -- A list of parser names, or "all" (the five listed parsers should always be installed) - ensure_installed = { "c", "lua", "vim", "vimdoc", "query" }, - - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, - - -- Automatically install missing parsers when entering buffer - -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally - auto_install = true, - - -- List of parsers to ignore installing (or "all") - ignore_install = { "javascript" }, - - ---- If you need to change the installation directory of the parsers (see -> Advanced Setup) - -- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")! - - highlight = { - enable = true, - - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is - -- the name of the parser) - -- list of language that will be disabled - -- disable = { "c", "rust" }, - -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files - disable = function(lang, buf) - local max_filesize = 100 * 1024 -- 100 KB - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) - if ok and stats and stats.size > max_filesize then - return true - end - end, - - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, - }, -} diff --git a/after/plugin/onedark.lua b/after/plugin/onedark.lua deleted file mode 100644 index 91a53b7..0000000 --- a/after/plugin/onedark.lua +++ /dev/null @@ -1,38 +0,0 @@ -require('onedark').setup { - -- Main options -- - style = 'dark', -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light' - transparent = true, -- Show/hide background - term_colors = true, -- Change terminal color as per the selected theme style - ending_tildes = false, -- Show the end-of-buffer tildes. By default they are hidden - cmp_itemkind_reverse = false, -- reverse item kind highlights in cmp menu - - -- toggle theme style --- - toggle_style_key = nil, -- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "ts" - toggle_style_list = {'dark', 'darker', 'cool', 'deep', 'warm', 'warmer', 'light'}, -- List of styles to toggle between - - -- Change code style --- - -- Options are italic, bold, underline, none - -- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold' - code_style = { - comments = 'italic', - keywords = 'none', - functions = 'none', - strings = 'none', - variables = 'none' - }, - - -- Custom Highlights -- - colors = {}, -- Override default colors - highlights = {}, -- Override highlight groups - - -- Plugins Config -- - diagnostics = { - darker = true, -- darker colors for diagnostic - undercurl = true, -- use undercurl instead of underline for diagnostics - background = true, -- use background color for virtual text - }, -} -require('onedark').setup { - style = 'darker' -} -require('onedark').load() diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua deleted file mode 100644 index 55c0283..0000000 --- a/after/plugin/telescope.lua +++ /dev/null @@ -1,5 +0,0 @@ -local builtin = require('telescope.builtin') -vim.keymap.set('n', '', builtin.find_files, {}) -vim.keymap.set('n', 'fg', builtin.live_grep, {}) -vim.keymap.set('n', 'fb', builtin.buffers, {}) -vim.keymap.set('n', 'fh', builtin.help_tags, {}) diff --git a/after/plugin/tokyonight.lua b/after/plugin/tokyonight.lua deleted file mode 100644 index b988c3e..0000000 --- a/after/plugin/tokyonight.lua +++ /dev/null @@ -1,4 +0,0 @@ -vim.tokyonight_transparent_sidebar = true -vim.tokyonight_transparent = true -vim.opt.background = "dark" --- vim.cmd("colorscheme tokyonight") diff --git a/init.lua b/init.lua index 4b3b544..ead29ad 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,3 @@ -vim.opt.relativenumber = true - -require "marc.set" -require "marc.remap" -require "marc.packer" +require "config.lazy" +require "config.set" +require "config.keybinds" diff --git a/lua/config/remap.lua b/lua/config/keybinds.lua similarity index 100% rename from lua/config/remap.lua rename to lua/config/keybinds.lua diff --git a/lua/marc/packer.lua b/lua/marc/packer.lua deleted file mode 100644 index 9ee3ca5..0000000 --- a/lua/marc/packer.lua +++ /dev/null @@ -1,126 +0,0 @@ --- This file can be loaded by calling `lua require('plugins')` from your init.vim - --- Only required if you have packer configured as `opt` -local fn = vim.fn - --- Automatically install packer -local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" -if fn.empty(fn.glob(install_path)) > 0 then - PACKER_BOOTSTRAP = fn.system { - "git", - "clone", - "--depth", - "1", - "https://github.com/wbthomason/packer.nvim", - install_path, - } - print "Installing packer close and reopen Neovim..." - vim.cmd [[packadd packer.nvim]] -end - --- Autocommand that reloads neovim whenever you save the plugins.lua file -vim.cmd [[ - augroup packer_user_config - autocmd! - autocmd BufWritePost plugins.lua source | PackerSync - augroup end -]] - -vim.cmd [[packadd packer.nvim]] - -return require('packer').startup(function() - -- Packer can manage itself - use 'wbthomason/packer.nvim' - -- use 'williamboman/mason.nvim' - use 'williamboman/mason-lspconfig.nvim' - - -- raw completion - use 'hrsh7th/nvim-cmp' -- the completion plugin - use 'hrsh7th/cmp-buffer' -- buffer completions - use 'hrsh7th/cmp-path' -- path completions - use 'hrsh7th/cmp-cmdline' -- cmdline completions - use 'hrsh7th/cmp-nvim-lsp' -- use lsp completions - - use 'neovim/nvim-lspconfig' -- - -- use({ "glepnir/lspsaga.nvim", branch = "main" }) - - -- buffers (tabs) - -- use { 'akinsho/bufferline.nvim', tag = "v3.*", requires = 'nvim-tree/nvim-web-devicons' } - use { - 'akinsho/bufferline.nvim', - tag = "*", - config = function() - require('nvim-tree/nvim-web-devicons').setup() - end - } - -- use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'} - - -- comment - use { - 'numToStr/Comment.nvim', - config = function() - require('Comment').setup() - end - } - - -- main theme - use 'navarasu/onedark.nvim' - - -- transparent frontground - -- use 'xiyaowong/nvim-transparent' - -- use 'folke/tokyonight.nvim' - -- - -- smooth scroll with - use 'psliwka/vim-smoothie' - -- integration with pywal - use 'dylanaraps/wal.vim' - -- autopairs - use "windwp/nvim-autopairs" - -- better make - use 'neomake/neomake' - - -- markdown - use { 'marcpartensky/markdown-preview.nvim', run = 'cd app && yarn install', cmd = 'MarkdownPreview' } - use { - "nvim-treesitter/nvim-treesitter", - -- :TSUpdate[Sync] doesn't exist until plugin/nvim-treesitter is loaded (i.e. not after first install); call update() directly - run = function() require("nvim-treesitter.install").update { with_sync = true } end - } - - -- navigation - use { - 'nvim-telescope/telescope.nvim', tag = '0.1.4', - -- or , branch = '0.1.x', - requires = { { 'nvim-lua/plenary.nvim' } } - } - use { - 'nvim-tree/nvim-tree.lua', - requires = { - 'nvim-tree/nvim-web-devicons', -- optional, for file icons - }, - tag = 'nightly' -- optional, updated every week. (see issue #1193) - } - - -- bottom line - use { - 'nvim-lualine/lualine.nvim', - requires = { 'kyazdani42/nvim-web-devicons', opt = true } - } - - -- startup pannel - use 'glepnir/dashboard-nvim' - - -- Lightweight yet powerful formatter plugin for Neovim - use({ - "stevearc/conform.nvim", - config = function() - require("conform").setup() - end, - }) - - -- Automatically set up your configuration after cloning packer.nvim - -- Put this at the end after all plugins - if PACKER_BOOTSTRAP then - require("packer").sync() - end -end) diff --git a/lua/marc/remap.lua b/lua/marc/remap.lua deleted file mode 100644 index 9166fee..0000000 --- a/lua/marc/remap.lua +++ /dev/null @@ -1,68 +0,0 @@ -local keymap = vim.api.nvim_set_keymap - -local opts = { noremap = true, silent = true } - --- Modes --- normal_mode = "n", --- insert_mode = "i", --- visual_mode = "v", --- visual_block_mode = "x", --- term_mode = "t", --- command_mode = "c", - -keymap('n', '', ":!$PWD/%", opts) -keymap('n', '', ":!alacritty -e nvim '+Telescope find_files'n", opts) --- keymap('n', '', ":PackerUpdate", opts) --- tabs -keymap('n', '', ":tabnew", opts) --- keymap('n', '', ":q", opts) -keymap('n', '', ":q", opts) -keymap('n', '', ':BufferLineCycleNext', opts) -keymap('n', '', ':BufferLineCyclePrev', opts) --- keymap('n', '', ":BufferClose", opts) --- keymap('n', '', ':BufferNext', opts) --- keymap('n', '', ':BufferPrevious', opts) --- keymap('n', '', ':BufferGoto 1', opts) --- keymap('n', '', ':BufferGoto 2', opts) --- keymap('n', '', ':BufferGoto 3', opts) --- keymap('n', '', ':BufferGoto 4', opts) --- keymap('n', '', ':BufferGoto 5', opts) --- keymap('n', '', ':BufferGoto 6', opts) --- keymap('n', '', ':BufferGoto 7', opts) --- keymap('n', '', ':BufferGoto 8', opts) --- keymap('n', '', ':BufferGoto 9', opts) --- keymap('n', '', ':BufferLast', opts) --- tabs samy --- keymap("n", "", ":BufferLineCycleNext", opts) --- keymap("n", "", ":BufferLineCyclePrev", opts) --- git -keymap('n', 'gp', ":!gp", opts) -keymap('n', 'gn', ":!gn ", opts) -keymap('n', 'gt', ":!gt ", opts) -keymap('n', 'gl', ":!gpl", opts) -keymap('n', 'gr', ":!grsh", opts) --- selection -keymap('n', '', "ggVG", opts) --- save -keymap('n', '', ":w", opts) --- fn -keymap('n', '', ":PackerSync", opts) -keymap('n', '', ":!curl --silent ipconfig.io", opts) -keymap('n', '', ":make ", opts) --- markdown preview -keymap('n', '', ":MarkdownPreviewToggle", opts) --- linting -keymap('n', '', ":!pylint %", opts) -keymap('n', '', ":!make ", opts) - - --- split -keymap("n", "", "h", opts) -keymap("n", "", "j", opts) -keymap("n", "", "k", opts) -keymap("n", "", "l", opts) - --- comments.nvim -keymap("n", "", "lua require('Comment.api').toggle.linewise.current()", {}) -keymap("i", "", "lua require('Comment.api').toggle.linewise.current()", {}) -keymap("v", "", "gc", {}) diff --git a/lua/marc/set.lua b/lua/marc/set.lua deleted file mode 100644 index c187ad8..0000000 --- a/lua/marc/set.lua +++ /dev/null @@ -1,30 +0,0 @@ -local opt = vim.opt --- inspired from https://github.com/brainfucksec/neovim-lua/blob/main/nvim/lua/core/options.lua - --- general -opt.swapfile = false -opt.clipboard = "unnamedplus" -opt.undofile = true -opt.completeopt = "menuone,noinsert,noselect" - --- neovim ui -opt.number = false -opt.relativenumber = true -opt.smartcase = true -opt.linebreak = true -opt.ignorecase = true -opt.guicursor = "" --- opt.laststatus = 3 - --- tabs indents -opt.expandtab = true -opt.smartindent = true -opt.tabstop = 4 -opt.softtabstop = 4 -opt.shiftwidth = 4 - --- others -opt.hlsearch = false -opt.incsearch = true -opt.wrap = false -opt.nu = true