transition to lazy.nvim and deleted old stuff
This commit is contained in:
@@ -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 = "<M-e>",
|
||||
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 = "" } })
|
||||
@@ -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,
|
||||
-- }
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
})
|
||||
@@ -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" }
|
||||
},
|
||||
})
|
||||
@@ -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 = "<leader>fg", icon = " ", desc = "Find Word", action = "Telescope live_grep" },
|
||||
|
||||
{
|
||||
desc = "New File ",
|
||||
shortcut = "n",
|
||||
icon = " ",
|
||||
icon_hl = { link = icon_color },
|
||||
action = "DashboardNewFile",
|
||||
},
|
||||
|
||||
-- { shortcut = "<leader>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<Enter> or <F1> 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 <buffer> f <cmd>Telescope find_files<CR>
|
||||
nnoremap <buffer> r <cmd>Telescope oldfiles<CR>
|
||||
nnoremap <buffer> . <cmd>Telescope file_browser<CR>
|
||||
nnoremap <buffer> n <cmd>DashboardNewFile<CR>
|
||||
nnoremap <buffer> <leader>en <cmd>DashboardNewFile<CR>
|
||||
nnoremap <buffer> L <cmd>SessionLoad<CR>
|
||||
nnoremap <buffer> u <cmd>PackerUpdate<CR>
|
||||
nnoremap <buffer> s <cmd>edit $MYVIMRC<CR>
|
||||
nnoremap <buffer> q <cmd>exit<CR>
|
||||
]]
|
||||
end
|
||||
})
|
||||
@@ -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', '<space>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', '<space>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 <c-x><c-o>
|
||||
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', '<C-k>', vim.lsp.buf.signature_help, bufopts)
|
||||
vim.keymap.set('n', '<space>wa', vim.lsp.buf.add_workspace_folder, bufopts)
|
||||
vim.keymap.set('n', '<space>wr', vim.lsp.buf.remove_workspace_folder, bufopts)
|
||||
vim.keymap.set('n', '<space>wl', function()
|
||||
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
|
||||
end, bufopts)
|
||||
vim.keymap.set('n', '<space>D', vim.lsp.buf.type_definition, bufopts)
|
||||
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts)
|
||||
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts)
|
||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
|
||||
vim.keymap.set('n', '<space>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"] = {}
|
||||
}
|
||||
}
|
||||
@@ -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 <C-t> to jump back
|
||||
-- keymap("n", "gh", "<cmd>Lspsaga lsp_finder<CR>", { silent = true })
|
||||
--
|
||||
-- -- Code action
|
||||
-- keymap({"n","v"}, "<leader>ca", "<cmd>Lspsaga code_action<CR>", { silent = true })
|
||||
--
|
||||
-- -- Rename
|
||||
-- keymap("n", "gr", "<cmd>Lspsaga rename<CR>", { 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", "<cmd>Lspsaga peek_definition<CR>", { silent = true })
|
||||
--
|
||||
-- -- Show line diagnostics
|
||||
-- keymap("n", "<leader>cd", "<cmd>Lspsaga show_line_diagnostics<CR>", { silent = true })
|
||||
--
|
||||
-- -- Show cursor diagnostic
|
||||
-- keymap("n", "<leader>cd", "<cmd>Lspsaga show_cursor_diagnostics<CR>", { silent = true })
|
||||
--
|
||||
-- -- Diagnsotic jump can use `<c-o>` to jump back
|
||||
-- keymap("n", "[e", "<cmd>Lspsaga diagnostic_jump_prev<CR>", { silent = true })
|
||||
-- keymap("n", "]e", "<cmd>Lspsaga diagnostic_jump_next<CR>", { 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","<leader>o", "<cmd>LSoutlineToggle<CR>",{ silent = true })
|
||||
--
|
||||
-- -- Hover Doc
|
||||
-- keymap("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
|
||||
--
|
||||
-- -- Float terminal
|
||||
-- keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm<CR>", { silent = true })
|
||||
-- -- if you want pass somc cli command into terminal you can do like this
|
||||
-- -- open lazygit in lspsaga float terminal
|
||||
-- keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm lazygit<CR>", { silent = true })
|
||||
-- -- close floaterm
|
||||
-- keymap("t", "<A-d>", [[<C-\><C-n><cmd>Lspsaga close_floaterm<CR>]], { silent = true })
|
||||
@@ -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
|
||||
-- },
|
||||
-- })
|
||||
@@ -1,4 +0,0 @@
|
||||
-- require 'mason'.setup()
|
||||
-- require 'mason-lspconfig'.setup({
|
||||
-- ensure_installed = { "sumneko_lua", "rust_analyzer" }
|
||||
-- })
|
||||
@@ -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({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
['<C-e>'] = cmp.mapping.abort(),
|
||||
['<Tab>'] = cmp.mapping(cmp.mapping.select_next_item()),
|
||||
['<C-j>'] = cmp.mapping(cmp.mapping.select_next_item()),
|
||||
['<C-k>'] = cmp.mapping(cmp.mapping.select_prev_item()),
|
||||
['<CR>'] = 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' },
|
||||
})
|
||||
})
|
||||
@@ -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
|
||||
-- })
|
||||
@@ -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', '<C-o>', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
@@ -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 "<leader>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()
|
||||
@@ -1,5 +0,0 @@
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<C-p>', 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, {})
|
||||
@@ -1,4 +0,0 @@
|
||||
vim.tokyonight_transparent_sidebar = true
|
||||
vim.tokyonight_transparent = true
|
||||
vim.opt.background = "dark"
|
||||
-- vim.cmd("colorscheme tokyonight")
|
||||
@@ -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"
|
||||
|
||||
@@ -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 <afile> | 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 <C-d>
|
||||
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)
|
||||
@@ -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', '<C-i>', ":!$PWD/%<CR>", opts)
|
||||
keymap('n', '<c-n>', ":!alacritty -e nvim '+Telescope find_files'<CR>n", opts)
|
||||
-- keymap('n', '<C-u>', ":PackerUpdate<cr>", opts)
|
||||
-- tabs
|
||||
keymap('n', '<c-t>', ":tabnew<cr>", opts)
|
||||
-- keymap('n', '<c-w>', ":q<cr>", opts)
|
||||
keymap('n', '<c-w>', ":q<cr>", opts)
|
||||
keymap('n', '<tab>', ':BufferLineCycleNext<CR>', opts)
|
||||
keymap('n', '<s-tab>', ':BufferLineCyclePrev<CR>', opts)
|
||||
-- keymap('n', '<c-w>', ":BufferClose<cr>", opts)
|
||||
-- keymap('n', '<tab>', ':BufferNext<CR>', opts)
|
||||
-- keymap('n', '<s-tab>', ':BufferPrevious<CR>', opts)
|
||||
-- keymap('n', '<c-1>', ':BufferGoto 1<CR>', opts)
|
||||
-- keymap('n', '<c-2>', ':BufferGoto 2<CR>', opts)
|
||||
-- keymap('n', '<c-3>', ':BufferGoto 3<CR>', opts)
|
||||
-- keymap('n', '<c-4>', ':BufferGoto 4<CR>', opts)
|
||||
-- keymap('n', '<c-5>', ':BufferGoto 5<CR>', opts)
|
||||
-- keymap('n', '<c-6>', ':BufferGoto 6<CR>', opts)
|
||||
-- keymap('n', '<c-7>', ':BufferGoto 7<CR>', opts)
|
||||
-- keymap('n', '<c-8>', ':BufferGoto 8<CR>', opts)
|
||||
-- keymap('n', '<c-9>', ':BufferGoto 9<CR>', opts)
|
||||
-- keymap('n', '<c-0>', ':BufferLast<CR>', opts)
|
||||
-- tabs samy
|
||||
-- keymap("n", "<TAB>", ":BufferLineCycleNext<CR>", opts)
|
||||
-- keymap("n", "<S-TAB>", ":BufferLineCyclePrev<CR>", opts)
|
||||
-- git
|
||||
keymap('n', 'gp', ":!gp<cr>", opts)
|
||||
keymap('n', 'gn', ":!gn ", opts)
|
||||
keymap('n', 'gt', ":!gt ", opts)
|
||||
keymap('n', 'gl', ":!gpl<cr>", opts)
|
||||
keymap('n', 'gr', ":!grsh<cr>", opts)
|
||||
-- selection
|
||||
keymap('n', '<c-a>', "ggVG", opts)
|
||||
-- save
|
||||
keymap('n', '<c-s>', ":w<cr>", opts)
|
||||
-- fn
|
||||
keymap('n', '<f1>', ":PackerSync<cr>", opts)
|
||||
keymap('n', '<f3>', ":!curl --silent ipconfig.io<cr>", opts)
|
||||
keymap('n', '<f4>', ":make ", opts)
|
||||
-- markdown preview
|
||||
keymap('n', '<mp>', ":MarkdownPreviewToggle", opts)
|
||||
-- linting
|
||||
keymap('n', '<c-y>', ":!pylint %<cr>", opts)
|
||||
keymap('n', '<c-m>', ":!make <cr>", opts)
|
||||
|
||||
|
||||
-- split
|
||||
keymap("n", "<C-h>", "<C-w>h", opts)
|
||||
keymap("n", "<C-j>", "<C-w>j", opts)
|
||||
keymap("n", "<C-k>", "<C-w>k", opts)
|
||||
keymap("n", "<C-l>", "<C-w>l", opts)
|
||||
|
||||
-- comments.nvim
|
||||
keymap("n", "<C-/>", "<Cmd>lua require('Comment.api').toggle.linewise.current()<CR>", {})
|
||||
keymap("i", "<C-/>", "<Cmd>lua require('Comment.api').toggle.linewise.current()<CR>", {})
|
||||
keymap("v", "<C-/>", "gc", {})
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user