Compare commits

..

No commits in common. "cf566a7e20184470d96dfea52ae3b4919ea812a8" and "c27deb9b6585aef511db21d2ad6a45ff7e9b139b" have entirely different histories.

12 changed files with 13 additions and 51 deletions

View File

@ -1,8 +0,0 @@
***************************************************************************
**NOTE**
Please verify that the `base repository` above has the intended destination!
Github by default opens Pull Requests against the parent of a forked repository.
If this is your personal fork and you didn't intend to open a PR for contribution
to the original project then adjust the `base repository` accordingly.
**************************************************************************

View File

@ -15,6 +15,9 @@ If you are experiencing issues, please make sure you have the latest versions.
### Install External Dependencies ### Install External Dependencies
> **NOTE**
> [Backup](#FAQ) your previous configuration (if any exists)
External Requirements: External Requirements:
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`) - Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
- [ripgrep](https://github.com/BurntSushi/ripgrep#installation) - [ripgrep](https://github.com/BurntSushi/ripgrep#installation)
@ -27,11 +30,6 @@ External Requirements:
> See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes > See [Install Recipes](#Install-Recipes) for additional Windows and Linux specific notes
> and quick install snippets > and quick install snippets
### Install Kickstart
> **NOTE**
> [Backup](#FAQ) your previous configuration (if any exists)
Neovim's configurations are located under the following paths, depending on your OS: Neovim's configurations are located under the following paths, depending on your OS:
| OS | PATH | | OS | PATH |
@ -81,7 +79,7 @@ nvim
``` ```
That's it! Lazy will install all the plugins you have. Use `:Lazy` to view That's it! Lazy will install all the plugins you have. Use `:Lazy` to view
current plugin status. Hit `q` to close the window. current plugin status.
### FAQ ### FAQ

View File

@ -6,9 +6,6 @@ vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed -- Set to true if you have a Nerd Font installed
vim.g.have_nerd_font = true vim.g.have_nerd_font = true
-- Save start directory as base
vim.g.base_dir = vim.fn.getcwd()
-- [[ Setting options ]] -- [[ Setting options ]]
require 'options' require 'options'

View File

@ -32,15 +32,11 @@ return {
-- Open harpoon list window -- Open harpoon list window
vim.keymap.set('n', '<leader>ho', function() vim.keymap.set('n', '<leader>ho', function()
toggle_telescope(harpoon:list()) toggle_telescope(harpoon:list())
end, { desc = '[H]arpoon [O]pen' }) end, { desc = '[H]arpoon [Open]' })
-- Append to harpoon list -- Append to harpoon list
vim.keymap.set('n', '<leader>ha', function() vim.keymap.set('n', '<leader>ha', function()
harpoon:list():append() harpoon:list():append()
end, { desc = '[H]arpoon [A]ppend' }) end, { desc = '[H]arpoon [A]ppend' })
-- Append to harpoon list
vim.keymap.set('n', '<leader>hr', function()
harpoon:list():remove()
end, { desc = '[H]arpoon [R]emove' })
-- Toggle previous & next buffers stored within Harpoon list -- Toggle previous & next buffers stored within Harpoon list
vim.keymap.set('n', '<C-S-P>', function() vim.keymap.set('n', '<C-S-P>', function()
harpoon:list():prev() harpoon:list():prev()

View File

@ -1,7 +1,6 @@
-- Smooth scroll plugin and keymaps -- Smooth scroll plugin and keymaps
return { return {
'karb94/neoscroll.nvim', 'karb94/neoscroll.nvim',
enabled = not vim.g.neovide,
config = function() config = function()
require('neoscroll').setup { require('neoscroll').setup {
hide_cursor = false, hide_cursor = false,

View File

@ -39,8 +39,6 @@ vim.keymap.set('v', '<leader>pny', '"_dP', { desc = '[P]aste [N]o [Y]ank' })
-- Populate CMD to prepare for change directory -- Populate CMD to prepare for change directory
vim.keymap.set('n', '<leader>cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' }) vim.keymap.set('n', '<leader>cd', ':cd ', { desc = 'Prepare CMD for [C]hange [D]irectory' })
-- Navigate to 'base' directory, the initial dir that nvim was run in
vim.keymap.set('n', '<leader>cdh', '<cmd>cd ' .. vim.g.base_dir .. '<cr>', { desc = '[C]hange [D]irectory to [H]ome' })
-- Delete current buffer without closing window -- Delete current buffer without closing window
vim.keymap.set('n', '<leader>bd', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>', { desc = '[B]uffer [D]elete' }) vim.keymap.set('n', '<leader>bd', '<cmd>bp<bar>sp<bar>bn<bar>bd<cr>', { desc = '[B]uffer [D]elete' })

View File

@ -1,17 +1,6 @@
return { return {
{ -- Autoformat { -- Autoformat
'stevearc/conform.nvim', 'stevearc/conform.nvim',
lazy = false,
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_fallback = true }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
opts = { opts = {
notify_on_error = false, notify_on_error = false,
format_on_save = function(bufnr) format_on_save = function(bufnr)

View File

@ -13,14 +13,16 @@ return {
-- Installs the debug adapters for you -- Installs the debug adapters for you
'williamboman/mason.nvim', 'williamboman/mason.nvim',
'jay-babu/mason-nvim-dap.nvim', 'jay-babu/mason-nvim-dap.nvim',
-- Debugger dependencies
'leoluz/nvim-dap-go',
}, },
config = function() config = function()
local dap = require 'dap' local dap = require 'dap'
local dapui = require 'dapui' local dapui = require 'dapui'
require('mason-nvim-dap').setup { require('mason-nvim-dap').setup {
automatic_installation = true, automatic_setup = true,
ensure_installed = {},
handlers = {}, handlers = {},
} }

View File

@ -13,8 +13,7 @@ return {
delete = { text = '_' }, delete = { text = '_' },
topdelete = { text = '' }, topdelete = { text = '' },
changedelete = { text = '~' }, changedelete = { text = '~' },
}, }, on_attach = function(bufnr)
on_attach = function(bufnr)
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns
local function map(mode, l, r, opts) local function map(mode, l, r, opts)
@ -54,8 +53,10 @@ return {
end, { desc = 'reset git hunk' }) end, { desc = 'reset git hunk' })
-- normal mode -- normal mode
map('n', '<leader>hs', gs.stage_hunk, { desc = 'git stage hunk' }) map('n', '<leader>hs', gs.stage_hunk, { desc = 'git stage hunk' })
map('n', '<leader>hr', gs.reset_hunk, { desc = 'git reset hunk' })
map('n', '<leader>hS', gs.stage_buffer, { desc = 'git Stage buffer' }) map('n', '<leader>hS', gs.stage_buffer, { desc = 'git Stage buffer' })
map('n', '<leader>hu', gs.undo_stage_hunk, { desc = 'undo stage hunk' }) map('n', '<leader>hu', gs.undo_stage_hunk, { desc = 'undo stage hunk' })
map('n', '<leader>hR', gs.reset_buffer, { desc = 'git Reset buffer' })
map('n', '<leader>hp', gs.preview_hunk, { desc = 'preview git hunk' }) map('n', '<leader>hp', gs.preview_hunk, { desc = 'preview git hunk' })
map('n', '<leader>hb', function() map('n', '<leader>hb', function()
gs.blame_line { full = false } gs.blame_line { full = false }

View File

@ -19,7 +19,6 @@ return {
'vim', 'vim',
'svelte', 'svelte',
'c_sharp', 'c_sharp',
'luadoc',
'markdown', 'markdown',
'gitcommit', 'gitcommit',
'gitignore', 'gitignore',

View File

@ -28,7 +28,6 @@ return {
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' }, ['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
['<leader>b'] = { name = '[B]uffer/[B]reakpoint', _ = 'which_key_ignore' }, ['<leader>b'] = { name = '[B]uffer/[B]reakpoint', _ = 'which_key_ignore' },
['<leader>c'] = { name = '[C]ode/[C]odeium', _ = 'which_key_ignore' }, ['<leader>c'] = { name = '[C]ode/[C]odeium', _ = 'which_key_ignore' },
['<leader>cd'] = { name = '[D]irectory', _ = 'which_key_ignore' },
['<leader>d'] = { name = '[D]ocument/[D]elete', _ = 'which_key_ignore' }, ['<leader>d'] = { name = '[D]ocument/[D]elete', _ = 'which_key_ignore' },
['<leader>h'] = { name = '[H]unk/[H]arpoon', _ = 'which_key_ignore' }, ['<leader>h'] = { name = '[H]unk/[H]arpoon', _ = 'which_key_ignore' },
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, ['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },

View File

@ -84,12 +84,4 @@ vim.opt.cursorline = true
vim.opt.scrolloff = 8 vim.opt.scrolloff = 8
vim.opt.sidescrolloff = 12 vim.opt.sidescrolloff = 12
-- Options specifically targeted at Neovide
if vim.g.neovide then
vim.o.guifont = 'CaskaydiaCove Nerd Font Mono:h14'
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_cursor_animation_length = 0
vim.g.neovide_cursor_trail_length = 0
end
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et