mirror of
https://github.com/TheM1Stery/dotfiles.git
synced 2025-04-20 00:51:11 +00:00
remove the after folder and packer
This commit is contained in:
parent
1e985677c2
commit
3bbcb48c37
@ -1,23 +0,0 @@
|
|||||||
require("cloak").setup({
|
|
||||||
enabled = true,
|
|
||||||
cloak_character = "*",
|
|
||||||
-- The applied highlight group (colors) on the cloaking, see `:h highlight`.
|
|
||||||
highlight_group = "Comment",
|
|
||||||
patterns = {
|
|
||||||
{
|
|
||||||
-- Match any file starting with ".env".
|
|
||||||
-- This can be a table to match multiple file patterns.
|
|
||||||
file_pattern = {
|
|
||||||
".env*",
|
|
||||||
"wrangler.toml",
|
|
||||||
".dev.vars",
|
|
||||||
"*.env*"
|
|
||||||
},
|
|
||||||
-- Match an equals sign and any character after it.
|
|
||||||
-- This can also be a table of patterns to cloak,
|
|
||||||
-- example: cloak_pattern = { ":.+", "-.+" } for yaml files.
|
|
||||||
cloak_pattern = "=.+"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
require('Comment').setup({
|
|
||||||
toggler = {
|
|
||||||
-- if you're using other terminals use '<C-_>' but for some reason in kitty this didn't work, so i used '<C-/>'
|
|
||||||
line = '<C-/>',
|
|
||||||
block = '<C-\\>',
|
|
||||||
},
|
|
||||||
opleader = {
|
|
||||||
-- look at the comment above
|
|
||||||
line = '<C-/>',
|
|
||||||
block = '<C-\\>',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
vim.g.copilot_no_tab_map = true
|
|
||||||
vim.api.nvim_set_keymap("i", "<C-J>", 'copilot#Accept("<CR>")', { silent = true, expr = true })
|
|
@ -1,16 +0,0 @@
|
|||||||
-- dap keymaps
|
|
||||||
vim.keymap.set("n", "<F5>", "<cmd>lua require'dap'.continue()<CR>")
|
|
||||||
vim.keymap.set("n", "<F10>", "<cmd>lua require'dap'.step_over()<CR>")
|
|
||||||
vim.keymap.set("n", "<F11>", "<cmd>lua require'dap'.step_into()<CR>")
|
|
||||||
vim.keymap.set("n", "<F12>", "<cmd>lua require'dap'.step_out()<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>b", "<cmd>lua require'dap'.toggle_breakpoint()<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>B", "<cmd>lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>lp", "<cmd>lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<CR>")
|
|
||||||
vim.keymap.set("n", "<leader>dr", "<cmd>lua require'dap'.repl.open()<CR>")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require("dapui").setup()
|
|
||||||
|
|
||||||
-- dapui keymaps
|
|
||||||
vim.keymap.set("n", "<leader>dui", "<cmd>lua require'dapui'.toggle()<CR>")
|
|
@ -1 +0,0 @@
|
|||||||
vim.keymap.set("n", "<leader>ds", vim.cmd.Dashboard, {noremap = true})
|
|
@ -1,29 +0,0 @@
|
|||||||
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
|
|
||||||
|
|
||||||
local ThePrimeagen_Fugitive = vim.api.nvim_create_augroup("ThePrimeagen_Fugitive", {})
|
|
||||||
|
|
||||||
local autocmd = vim.api.nvim_create_autocmd
|
|
||||||
autocmd("BufWinEnter", {
|
|
||||||
group = ThePrimeagen_Fugitive,
|
|
||||||
pattern = "*",
|
|
||||||
callback = function()
|
|
||||||
if vim.bo.ft ~= "fugitive" then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
|
||||||
local opts = {buffer = bufnr, remap = false}
|
|
||||||
vim.keymap.set("n", "<leader>p", function()
|
|
||||||
vim.cmd.Git('push')
|
|
||||||
end, opts)
|
|
||||||
|
|
||||||
-- rebase always
|
|
||||||
vim.keymap.set("n", "<leader>P", function()
|
|
||||||
vim.cmd.Git({'pull', '--rebase'})
|
|
||||||
end, opts)
|
|
||||||
|
|
||||||
-- NOTE: It allows me to easily set the branch i am pushing and any tracking
|
|
||||||
-- needed if i did not set the branch up correctly
|
|
||||||
vim.keymap.set("n", "<leader>t", ":Git push -u origin ", opts);
|
|
||||||
end,
|
|
||||||
})
|
|
@ -1 +0,0 @@
|
|||||||
require("gitsigns").setup()
|
|
@ -1,14 +0,0 @@
|
|||||||
local harpoon = require("harpoon")
|
|
||||||
|
|
||||||
harpoon:setup()
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
|
|
||||||
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
|
||||||
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>hlc", function() harpoon:list():clear() end)
|
|
||||||
vim.keymap.set("n", "<leader>hc", function() harpoon:list():remove() end)
|
|
||||||
vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
|
|
||||||
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
|
|
||||||
vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
|
|
||||||
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
|
|
@ -1,28 +0,0 @@
|
|||||||
require("image").setup({
|
|
||||||
backend = "kitty",
|
|
||||||
integrations = {
|
|
||||||
markdown = {
|
|
||||||
enabled = true,
|
|
||||||
clear_in_insert_mode = false,
|
|
||||||
download_remote_images = true,
|
|
||||||
only_render_image_at_cursor = false,
|
|
||||||
filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here
|
|
||||||
},
|
|
||||||
neorg = {
|
|
||||||
enabled = true,
|
|
||||||
clear_in_insert_mode = false,
|
|
||||||
download_remote_images = true,
|
|
||||||
only_render_image_at_cursor = false,
|
|
||||||
filetypes = { "norg" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
max_width = nil,
|
|
||||||
max_height = nil,
|
|
||||||
max_width_window_percentage = nil,
|
|
||||||
max_height_window_percentage = 50,
|
|
||||||
window_overlap_clear_enabled = false, -- toggles images when windows are overlapped
|
|
||||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
|
||||||
editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus
|
|
||||||
tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off)
|
|
||||||
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp" }, -- render image files as images when opened
|
|
||||||
})
|
|
@ -1 +0,0 @@
|
|||||||
require("ibl").setup()
|
|
@ -1,3 +0,0 @@
|
|||||||
require("nvim-lightbulb").setup({
|
|
||||||
autocmd = {enabled = true}
|
|
||||||
})
|
|
@ -1,164 +0,0 @@
|
|||||||
require("neodev").setup({
|
|
||||||
library = { plugins = { "nvim-dap-ui" }, types = true }
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local lsp = require("lsp-zero")
|
|
||||||
-- lsp.preset("recommended")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lsp.configure('csharp_ls', {
|
|
||||||
handlers = {
|
|
||||||
["textDocument/definition"] = require("csharpls_extended").handler,
|
|
||||||
["textDocument/typeDefinition"] = require("csharpls_extended").handler
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lsp.configure('clangd', {
|
|
||||||
cmd = { 'clangd', '--offset-encoding=utf-16' },
|
|
||||||
})
|
|
||||||
--
|
|
||||||
-- -- Fix Undefined global 'vim'
|
|
||||||
-- lsp.configure('lua-language-server', {
|
|
||||||
-- settings = {
|
|
||||||
-- Lua = {
|
|
||||||
-- diagnostics = {
|
|
||||||
-- globals = { 'vim' }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- this code makes it so that the css language server doesn't complain about tailwindcss classes
|
|
||||||
lsp.configure("cssls", {
|
|
||||||
settings = {
|
|
||||||
css = {
|
|
||||||
lint = { unknownAtRules = "ignore" }
|
|
||||||
},
|
|
||||||
scss = {
|
|
||||||
lint = { unknownAtRules = "ignore" }
|
|
||||||
},
|
|
||||||
less = {
|
|
||||||
lint = { unknownAtRules = "ignore" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
lsp.set_server_config({
|
|
||||||
capabilities = {
|
|
||||||
textDocument = {
|
|
||||||
foldingRange = {
|
|
||||||
dynamicRegistration = false,
|
|
||||||
lineFoldingOnly = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local cmp = require('cmp')
|
|
||||||
local cmp_action = lsp.cmp_action()
|
|
||||||
local cmp_format = lsp.cmp_format()
|
|
||||||
|
|
||||||
require('luasnip.loaders.from_vscode').lazy_load()
|
|
||||||
|
|
||||||
vim.opt.completeopt = {'menu', 'menuone', 'noselect'}
|
|
||||||
|
|
||||||
cmp.setup({
|
|
||||||
formatting = cmp_format,
|
|
||||||
preselect = 'item',
|
|
||||||
completion = {
|
|
||||||
completeopt = 'menu,menuone,noinsert'
|
|
||||||
},
|
|
||||||
window = {
|
|
||||||
documentation = cmp.config.window.bordered(),
|
|
||||||
},
|
|
||||||
sources = {
|
|
||||||
{name = 'path'},
|
|
||||||
{name = 'nvim_lsp'},
|
|
||||||
{name = 'nvim_lua'},
|
|
||||||
{name = 'buffer', keyword_length = 3},
|
|
||||||
{name = 'luasnip', keyword_length = 2},
|
|
||||||
},
|
|
||||||
mapping = cmp.mapping.preset.insert({
|
|
||||||
-- confirm completion item
|
|
||||||
['<CR>'] = cmp.mapping.confirm({select = false, behavior = cmp.ConfirmBehavior.Insert}),
|
|
||||||
['<Tab>'] = cmp.mapping.confirm({select = false, behavior = cmp.ConfirmBehavior.Replace}),
|
|
||||||
|
|
||||||
-- toggle completion menu
|
|
||||||
['<C-e>'] = cmp_action.toggle_completion(),
|
|
||||||
|
|
||||||
-- tab complete
|
|
||||||
-- ['<Tab>'] = cmp_action.tab_complete(),
|
|
||||||
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
|
||||||
|
|
||||||
-- navigate between snippet placeholder
|
|
||||||
['<C-d>'] = cmp_action.luasnip_jump_forward(),
|
|
||||||
['<C-b>'] = cmp_action.luasnip_jump_backward(),
|
|
||||||
|
|
||||||
-- scroll documentation window
|
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(5),
|
|
||||||
['<C-u>'] = cmp.mapping.scroll_docs(-5),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
local navic = require("nvim-navic")
|
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
|
||||||
local opts = { buffer = bufnr, remap = false }
|
|
||||||
lsp.default_keymaps({buffer = bufnr})
|
|
||||||
if client.server_capabilities.documentSymbolProvider then
|
|
||||||
navic.attach(client, bufnr)
|
|
||||||
end
|
|
||||||
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
|
|
||||||
vim.keymap.set("n", "<leader>dc", function() vim.lsp.buf.hover() end, opts)
|
|
||||||
vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
|
|
||||||
vim.keymap.set("n", "<leader>ed", function() vim.diagnostic.open_float() end, opts)
|
|
||||||
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
|
|
||||||
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
|
|
||||||
-- for the code action key map to work you need to change key binding('.' symbol) of your terminal, otherwise it won't work
|
|
||||||
vim.keymap.set("n", "<C-.>", function() vim.lsp.buf.code_action() end, opts)
|
|
||||||
vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts)
|
|
||||||
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
|
|
||||||
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
|
|
||||||
-- sometimes lsp fails, we can restart it with this keymap
|
|
||||||
vim.keymap.set('n', "<leader>lr", vim.cmd.LspRestart, opts)
|
|
||||||
end)
|
|
||||||
|
|
||||||
require("mason").setup({});
|
|
||||||
require("mason-lspconfig").setup({
|
|
||||||
ensure_installed = {'tsserver', 'tailwindcss', 'svelte', 'lua_ls'},
|
|
||||||
handlers = {
|
|
||||||
lsp.default_setup,
|
|
||||||
lua_ls = function()
|
|
||||||
local lua_opts = lsp.nvim_lua_ls()
|
|
||||||
require('lspconfig').lua_ls.setup(lua_opts)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
lsp.set_sign_icons({
|
|
||||||
error = '✘',
|
|
||||||
warn = '▲',
|
|
||||||
hint = '⚑',
|
|
||||||
info = ''
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.diagnostic.config({
|
|
||||||
virtual_text = false,
|
|
||||||
severity_sort = true,
|
|
||||||
float = {
|
|
||||||
style = 'minimal',
|
|
||||||
border = 'rounded',
|
|
||||||
source = 'always',
|
|
||||||
header = '',
|
|
||||||
prefix = '',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- because we want to add another source, the ones that are set by lsp-zero will be lost,
|
|
||||||
-- we need to add them again together with the new one
|
|
@ -1,216 +0,0 @@
|
|||||||
local colors = {
|
|
||||||
bg = '#202328',
|
|
||||||
fg = '#bbc2cf',
|
|
||||||
yellow = '#ECBE7B',
|
|
||||||
cyan = '#008080',
|
|
||||||
darkblue = '#081633',
|
|
||||||
green = '#98be65',
|
|
||||||
orange = '#FF8800',
|
|
||||||
violet = '#a9a1e1',
|
|
||||||
magenta = '#c678dd',
|
|
||||||
blue = '#51afef',
|
|
||||||
red = '#ec5f67',
|
|
||||||
}
|
|
||||||
|
|
||||||
local conditions = {
|
|
||||||
buffer_not_empty = function()
|
|
||||||
return vim.fn.empty(vim.fn.expand('%:t')) ~= 1
|
|
||||||
end,
|
|
||||||
hide_in_width = function()
|
|
||||||
return vim.fn.winwidth(0) > 80
|
|
||||||
end,
|
|
||||||
check_git_workspace = function()
|
|
||||||
local filepath = vim.fn.expand('%:p:h')
|
|
||||||
local gitdir = vim.fn.finddir('.git', filepath .. ';')
|
|
||||||
return gitdir and #gitdir > 0 and #gitdir < #filepath
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Config
|
|
||||||
local config = {
|
|
||||||
options = {
|
|
||||||
-- Disable sections and component separators
|
|
||||||
component_separators = '',
|
|
||||||
section_separators = '',
|
|
||||||
theme = 'onedark_vivid',
|
|
||||||
globalstatus = true
|
|
||||||
},
|
|
||||||
sections = {
|
|
||||||
-- these are to remove the defaults
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {},
|
|
||||||
-- These will be filled later
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {
|
|
||||||
{
|
|
||||||
require("noice").api.status.command.get,
|
|
||||||
cond = require("noice").api.status.command.has,
|
|
||||||
color = { fg = "#ff9e64" },
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
inactive_sections = {
|
|
||||||
-- these are to remove the defaults
|
|
||||||
lualine_a = {},
|
|
||||||
lualine_b = {},
|
|
||||||
lualine_y = {},
|
|
||||||
lualine_z = {},
|
|
||||||
lualine_c = {},
|
|
||||||
lualine_x = {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Inserts a component in lualine_c at left section
|
|
||||||
local function ins_left(component)
|
|
||||||
table.insert(config.sections.lualine_c, component)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Inserts a component in lualine_x at right section
|
|
||||||
local function ins_right(component)
|
|
||||||
table.insert(config.sections.lualine_x, component)
|
|
||||||
end
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
function()
|
|
||||||
return '▊'
|
|
||||||
end,
|
|
||||||
color = { fg = colors.blue }, -- Sets highlighting of component
|
|
||||||
padding = { left = 0, right = 1 }, -- We don't need space before this
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- mode component
|
|
||||||
function()
|
|
||||||
return ''
|
|
||||||
end,
|
|
||||||
color = function()
|
|
||||||
-- auto change color according to neovims mode
|
|
||||||
local mode_color = {
|
|
||||||
n = colors.red,
|
|
||||||
i = colors.green,
|
|
||||||
v = colors.blue,
|
|
||||||
[''] = colors.blue,
|
|
||||||
V = colors.blue,
|
|
||||||
c = colors.magenta,
|
|
||||||
no = colors.red,
|
|
||||||
s = colors.orange,
|
|
||||||
S = colors.orange,
|
|
||||||
[''] = colors.orange,
|
|
||||||
ic = colors.yellow,
|
|
||||||
R = colors.violet,
|
|
||||||
Rv = colors.violet,
|
|
||||||
cv = colors.red,
|
|
||||||
ce = colors.red,
|
|
||||||
r = colors.cyan,
|
|
||||||
rm = colors.cyan,
|
|
||||||
['r?'] = colors.cyan,
|
|
||||||
['!'] = colors.red,
|
|
||||||
t = colors.red,
|
|
||||||
}
|
|
||||||
return { fg = mode_color[vim.fn.mode()] }
|
|
||||||
end,
|
|
||||||
padding = { right = 1 },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- filesize component
|
|
||||||
'filesize',
|
|
||||||
cond = conditions.buffer_not_empty,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
'filename',
|
|
||||||
cond = conditions.buffer_not_empty,
|
|
||||||
color = { fg = colors.magenta, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left { 'location' }
|
|
||||||
|
|
||||||
ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } }
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
'diagnostics',
|
|
||||||
sources = { 'nvim_diagnostic' },
|
|
||||||
symbols = { error = ' ', warn = ' ', info = ' ' },
|
|
||||||
diagnostics_color = {
|
|
||||||
color_error = { fg = colors.red },
|
|
||||||
color_warn = { fg = colors.yellow },
|
|
||||||
color_info = { fg = colors.cyan },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Insert mid section. You can make any number of sections in neovim :)
|
|
||||||
-- for lualine it's any number greater then 2
|
|
||||||
ins_left {
|
|
||||||
function()
|
|
||||||
return '%='
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_left {
|
|
||||||
-- Lsp server name .
|
|
||||||
function()
|
|
||||||
local msg = 'No Active Lsp'
|
|
||||||
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
|
||||||
local clients = vim.lsp.get_active_clients()
|
|
||||||
if next(clients) == nil then
|
|
||||||
return msg
|
|
||||||
end
|
|
||||||
for _, client in ipairs(clients) do
|
|
||||||
local filetypes = client.config.filetypes
|
|
||||||
if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
|
||||||
return client.name
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return msg
|
|
||||||
end,
|
|
||||||
icon = ' LSP:',
|
|
||||||
color = { fg = '#ffffff', gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Add components to right sections
|
|
||||||
ins_right {
|
|
||||||
'o:encoding', -- option component same as &encoding in viml
|
|
||||||
fmt = string.upper, -- I'm not sure why it's upper case either ;)
|
|
||||||
cond = conditions.hide_in_width,
|
|
||||||
color = { fg = colors.green, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
'fileformat',
|
|
||||||
fmt = string.upper,
|
|
||||||
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
|
||||||
color = { fg = colors.green, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
'branch',
|
|
||||||
icon = '',
|
|
||||||
color = { fg = colors.violet, gui = 'bold' },
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
'diff',
|
|
||||||
-- Is it me or the symbol for modified us really weird
|
|
||||||
symbols = { added = ' ', modified = ' ', removed = ' ' },
|
|
||||||
diff_color = {
|
|
||||||
added = { fg = colors.green },
|
|
||||||
modified = { fg = colors.orange },
|
|
||||||
removed = { fg = colors.red },
|
|
||||||
},
|
|
||||||
cond = conditions.hide_in_width,
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_right {
|
|
||||||
function()
|
|
||||||
return '▊'
|
|
||||||
end,
|
|
||||||
color = { fg = colors.blue },
|
|
||||||
padding = { left = 1 },
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
require('lualine').setup(config)
|
|
@ -1,61 +0,0 @@
|
|||||||
-- https://github.com/nvim-neo-tree/neo-tree.nvim/issues/202#issuecomment-1428278234
|
|
||||||
-- These two functions were taken from the issue above. So, Thanks!
|
|
||||||
|
|
||||||
local delete = function(state)
|
|
||||||
local inputs = require("neo-tree.ui.inputs")
|
|
||||||
local path = state.tree:get_node().path
|
|
||||||
local msg = "Are you sure you want to trash " .. path
|
|
||||||
inputs.confirm(msg, function(confirmed)
|
|
||||||
if not confirmed then return end
|
|
||||||
|
|
||||||
vim.fn.system { "trash", path }
|
|
||||||
require("neo-tree.sources.manager").refresh(state.name)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- over write default 'delete_visual' command to 'trash' x n.
|
|
||||||
local delete_visual = function(state, selected_nodes)
|
|
||||||
local inputs = require("neo-tree.ui.inputs")
|
|
||||||
|
|
||||||
-- get table items count
|
|
||||||
function GetTableLen(tbl)
|
|
||||||
local len = 0
|
|
||||||
for n in pairs(tbl) do
|
|
||||||
len = len + 1
|
|
||||||
end
|
|
||||||
return len
|
|
||||||
end
|
|
||||||
|
|
||||||
local count = GetTableLen(selected_nodes)
|
|
||||||
local msg = "Are you sure you want to trash " .. count .. " files ?"
|
|
||||||
inputs.confirm(msg, function(confirmed)
|
|
||||||
if not confirmed then return end
|
|
||||||
for _, node in ipairs(selected_nodes) do
|
|
||||||
vim.fn.system { "trash", node.path }
|
|
||||||
end
|
|
||||||
require("neo-tree.sources.manager").refresh(state.name)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
|
||||||
require("neo-tree").setup({
|
|
||||||
window = {
|
|
||||||
position = "float",
|
|
||||||
},
|
|
||||||
filesystem = {
|
|
||||||
filtered_items = {
|
|
||||||
visible = true
|
|
||||||
},
|
|
||||||
use_libuv_file_watcher = true,
|
|
||||||
commands = {
|
|
||||||
delete = delete,
|
|
||||||
delete_visual = delete_visual,
|
|
||||||
},
|
|
||||||
hijack_netrw_behavior = "open_current"
|
|
||||||
},
|
|
||||||
})
|
|
||||||
vim.keymap.set("n", "<leader>tf", vim.cmd.Neotree)
|
|
||||||
vim.keymap.set("n", "<leader>tt", "<Cmd>Neotree reveal=true position=float toggle <CR>")
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
require("noice").setup({
|
|
||||||
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,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- you can enable a preset for easier configuration
|
|
||||||
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 = {
|
|
||||||
{
|
|
||||||
-- this is needed to filter out excessive lsp progress messages from Ionide(F#)
|
|
||||||
-- we just check if the message contains .fs extension and skip it
|
|
||||||
filter = {
|
|
||||||
event = "lsp",
|
|
||||||
kind = "progress",
|
|
||||||
find = ".*%.fs.*",
|
|
||||||
},
|
|
||||||
opts = { skip = true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
require("notify").setup({
|
|
||||||
background_colour = "#000000",
|
|
||||||
})
|
|
@ -1,5 +0,0 @@
|
|||||||
require("presence").setup({
|
|
||||||
workspace_text = "Working on project",
|
|
||||||
editing_text = "Editing file",
|
|
||||||
buttons = false
|
|
||||||
})
|
|
@ -1,5 +0,0 @@
|
|||||||
require('refactoring').setup({})
|
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("v", "<leader>ri", [[ <Esc><Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]], {noremap = true, silent = true, expr = false})
|
|
||||||
|
|
||||||
|
|
@ -1,52 +0,0 @@
|
|||||||
local builtin = require('telescope.builtin')
|
|
||||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
|
|
||||||
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
|
|
||||||
vim.keymap.set('n', '<leader>ps', function()
|
|
||||||
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
|
||||||
end)
|
|
||||||
vim.keymap.set('n', '<leader>pb', builtin.buffers, {})
|
|
||||||
vim.keymap.set('n', '<leader>vh', builtin.help_tags, {})
|
|
||||||
|
|
||||||
|
|
||||||
local actions = require('telescope.actions')
|
|
||||||
|
|
||||||
require('telescope').setup{
|
|
||||||
extensions = {
|
|
||||||
["ui-select"] = {
|
|
||||||
require("telescope.themes").get_cursor {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
defaults = {
|
|
||||||
mappings = {
|
|
||||||
i = {
|
|
||||||
["<C-s>"] = actions.select_vertical,
|
|
||||||
},
|
|
||||||
n = {
|
|
||||||
["<C-s>"] = actions.select_vertical,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
pickers = {
|
|
||||||
find_files = {
|
|
||||||
theme = "dropdown"
|
|
||||||
},
|
|
||||||
git_files = {
|
|
||||||
theme = "dropdown"
|
|
||||||
},
|
|
||||||
grep_string = {
|
|
||||||
theme = "dropdown"
|
|
||||||
},
|
|
||||||
buffers = {
|
|
||||||
theme = "dropdown",
|
|
||||||
mappings = {
|
|
||||||
n = {
|
|
||||||
['<C-d>'] = actions.delete_buffer
|
|
||||||
},
|
|
||||||
i = {
|
|
||||||
['<C-d>'] = actions.delete_buffer
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
require("telescope").load_extension("ui-select")
|
|
@ -1,14 +0,0 @@
|
|||||||
-- require('onedark').setup{
|
|
||||||
-- style = 'deep'
|
|
||||||
-- }
|
|
||||||
--
|
|
||||||
-- require('onedark').load()
|
|
||||||
|
|
||||||
require("onedarkpro").setup({
|
|
||||||
options = {
|
|
||||||
transparency = true,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd("colorscheme onedark_vivid")
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
require'nvim-treesitter.configs'.setup {
|
|
||||||
-- A list of parser names, or "all"
|
|
||||||
ensure_installed = { "vimdoc", "javascript", "typescript", "c", "lua", "rust", "c_sharp" },
|
|
||||||
|
|
||||||
-- 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,
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
-- `false` will disable the whole extension
|
|
||||||
enable = true,
|
|
||||||
|
|
||||||
-- 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,
|
|
||||||
},
|
|
||||||
autotag = {
|
|
||||||
enable = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
vim.keymap.set("n", "<leader>xq", "<cmd>TroubleToggle<cr>",
|
|
||||||
{silent = true, noremap = true}
|
|
||||||
)
|
|
@ -1,11 +0,0 @@
|
|||||||
vim.o.foldcolumn = '1' -- '0' is not bad
|
|
||||||
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
|
||||||
vim.o.foldlevelstart = 99
|
|
||||||
vim.o.foldenable = true
|
|
||||||
|
|
||||||
require('ufo').setup()
|
|
||||||
|
|
||||||
vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
|
|
||||||
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
|
|
||||||
vim.keymap.set('n', 'zr', require('ufo').openFoldsExceptKinds)
|
|
||||||
vim.keymap.set('n', 'zm', require('ufo').closeFoldsWith) -- closeAllFolds == closeFoldsWith(0)
|
|
@ -1,2 +0,0 @@
|
|||||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
|
|
||||||
vim.keymap.set("n", "<leader>zz", function()
|
|
||||||
require("zen-mode").setup {
|
|
||||||
window = {
|
|
||||||
width = 90,
|
|
||||||
options = { }
|
|
||||||
},
|
|
||||||
}
|
|
||||||
require("zen-mode").toggle()
|
|
||||||
vim.wo.wrap = false
|
|
||||||
vim.wo.number = true
|
|
||||||
vim.wo.rnu = true
|
|
||||||
ColorMyPencils()
|
|
||||||
end)
|
|
||||||
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>zZ", function()
|
|
||||||
require("zen-mode").setup {
|
|
||||||
window = {
|
|
||||||
width = 80,
|
|
||||||
options = { }
|
|
||||||
},
|
|
||||||
}
|
|
||||||
require("zen-mode").toggle()
|
|
||||||
vim.wo.wrap = false
|
|
||||||
vim.wo.number = false
|
|
||||||
vim.wo.rnu = false
|
|
||||||
vim.opt.colorcolumn = "0"
|
|
||||||
ColorMyPencils()
|
|
||||||
end)
|
|
@ -1,168 +0,0 @@
|
|||||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vimpacke
|
|
||||||
|
|
||||||
-- Only required if you have packer configured as `opt`
|
|
||||||
vim.cmd.packadd('packer.nvim')
|
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
|
||||||
-- Packer can manage itself
|
|
||||||
use 'wbthomason/packer.nvim'
|
|
||||||
|
|
||||||
use {
|
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.x',
|
|
||||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
|
||||||
}
|
|
||||||
|
|
||||||
use 'numToStr/Comment.nvim'
|
|
||||||
|
|
||||||
use "olimorris/onedarkpro.nvim"
|
|
||||||
|
|
||||||
use({
|
|
||||||
"folke/trouble.nvim",
|
|
||||||
config = function()
|
|
||||||
require("trouble").setup {
|
|
||||||
icons = false,
|
|
||||||
-- your configuration comes here
|
|
||||||
-- or leave it empty to use the default settings
|
|
||||||
-- refer to the configuration section below
|
|
||||||
}
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })
|
|
||||||
use("nvim-treesitter/playground")
|
|
||||||
use("theprimeagen/refactoring.nvim")
|
|
||||||
use("mbbill/undotree")
|
|
||||||
use("tpope/vim-fugitive")
|
|
||||||
use("nvim-treesitter/nvim-treesitter-context");
|
|
||||||
|
|
||||||
use {
|
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
|
||||||
branch = 'v3.x',
|
|
||||||
requires = {
|
|
||||||
-- LSP Support
|
|
||||||
{ 'neovim/nvim-lspconfig' },
|
|
||||||
{ 'williamboman/mason.nvim' },
|
|
||||||
{ 'williamboman/mason-lspconfig.nvim' },
|
|
||||||
|
|
||||||
-- Autocompletion
|
|
||||||
{ 'hrsh7th/nvim-cmp' },
|
|
||||||
{ 'hrsh7th/cmp-buffer' },
|
|
||||||
{ 'hrsh7th/cmp-path' },
|
|
||||||
{ 'saadparwaiz1/cmp_luasnip' },
|
|
||||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
|
||||||
{ 'hrsh7th/cmp-nvim-lua' },
|
|
||||||
|
|
||||||
-- Snippets
|
|
||||||
{ 'L3MON4D3/LuaSnip' },
|
|
||||||
{ 'rafamadriz/friendly-snippets' },
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
use("folke/zen-mode.nvim")
|
|
||||||
use("github/copilot.vim")
|
|
||||||
-- use("zbirenbaum/copilot.lua")
|
|
||||||
|
|
||||||
|
|
||||||
use("eandrju/cellular-automaton.nvim")
|
|
||||||
use("laytan/cloak.nvim")
|
|
||||||
|
|
||||||
use {
|
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
|
||||||
branch = "v3.x",
|
|
||||||
requires = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
|
||||||
"MunifTanjim/nui.nvim",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
use('lewis6991/gitsigns.nvim')
|
|
||||||
|
|
||||||
use('windwp/nvim-ts-autotag')
|
|
||||||
|
|
||||||
use('theprimeagen/vim-be-good')
|
|
||||||
|
|
||||||
use {
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
config = function() require("nvim-autopairs").setup {} end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {
|
|
||||||
'nvim-lualine/lualine.nvim',
|
|
||||||
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
|
||||||
}
|
|
||||||
|
|
||||||
use 'andweeb/presence.nvim'
|
|
||||||
|
|
||||||
|
|
||||||
use {
|
|
||||||
'glepnir/dashboard-nvim',
|
|
||||||
event = 'VimEnter',
|
|
||||||
config = function()
|
|
||||||
require('dashboard').setup({
|
|
||||||
theme = "hyper",
|
|
||||||
config = {
|
|
||||||
project = {
|
|
||||||
action = function(path)
|
|
||||||
vim.cmd('Neotree dir=')
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
requires = { 'nvim-tree/nvim-web-devicons' }
|
|
||||||
}
|
|
||||||
|
|
||||||
use({
|
|
||||||
"utilyre/barbecue.nvim",
|
|
||||||
tag = "*",
|
|
||||||
requires = {
|
|
||||||
"SmiteshP/nvim-navic",
|
|
||||||
"nvim-tree/nvim-web-devicons", -- optional dependency
|
|
||||||
},
|
|
||||||
after = "nvim-web-devicons", -- keep this if you're using NvChad
|
|
||||||
config = function()
|
|
||||||
require("barbecue").setup({
|
|
||||||
attach_navic = false
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
use { 'kosayoda/nvim-lightbulb' }
|
|
||||||
|
|
||||||
use "lukas-reineke/indent-blankline.nvim"
|
|
||||||
|
|
||||||
use { 'nvim-telescope/telescope-ui-select.nvim' }
|
|
||||||
|
|
||||||
use 'mfussenegger/nvim-dap'
|
|
||||||
|
|
||||||
use { "rcarriga/nvim-dap-ui", requires = { "mfussenegger/nvim-dap" } }
|
|
||||||
|
|
||||||
use { "folke/neodev.nvim" }
|
|
||||||
|
|
||||||
use { "folke/noice.nvim", requires = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify" } }
|
|
||||||
|
|
||||||
use { 'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async' }
|
|
||||||
|
|
||||||
use { '3rd/image.nvim' }
|
|
||||||
|
|
||||||
use { 'ionide/Ionide-vim', event = 'VimEnter' }
|
|
||||||
|
|
||||||
use {
|
|
||||||
"ThePrimeagen/harpoon",
|
|
||||||
branch = "harpoon2",
|
|
||||||
requires = { { "nvim-lua/plenary.nvim" } }
|
|
||||||
}
|
|
||||||
|
|
||||||
use ({
|
|
||||||
'ggandor/leap.nvim',
|
|
||||||
requires = { 'tpope/vim-repeat' },
|
|
||||||
config = function ()
|
|
||||||
require('leap').create_default_mappings()
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
use {"Decodetalkers/csharpls-extended-lsp.nvim"}
|
|
||||||
end)
|
|
Loading…
Reference in New Issue
Block a user