Finished setting up NeoVim configuration now need to implement the instalation script

master
key 2 years ago
parent 34c2df245f
commit 2aed415cbf

@ -12,11 +12,13 @@ set nowrap ""Will continue to go right when line is too long
set incsearch ""incremental searching as i am typing the words will be highligted.
set number ""Self explanatory
set scrolloff=8 ""Will start to scroll down wehn there is still 8 Lines before end of page.
"Backup and Undo
set noswapfile ""No swap file. they are anoying
set nobackup ""Nobackup because we will do a undo dir
set undodir=~/.vim/undodir
set undofile
packadd termdebug
let g:termdebug_wide=1
filetype plugin indent on
@ -28,6 +30,7 @@ syntax enable
"plugins(included with vim) for file specific mappings Located at ~/.vim/ftplugin/
"Example for c Would be: ~/.vim/ftplugin/c_mappings.vim
filetype plugin on
filetype plugin indent on
"Plug pkluginmanager start and end
call plug#begin('~/.vim/plugged')
@ -50,7 +53,7 @@ highlight Normal guibg=blue
"--------------------------------------------------------------------
"REMAPS--------------------------------------------------------------
"(VIM) Remaps Spca bar as the Leader command
"(VIM) Remaps Space bar as the Leader command
let mapleader=" "
"(NAVIGATION)
@ -64,23 +67,41 @@ map <silent> <leader>k :wincmd k<CR><CR>
map <silent> <leader>l :wincmd l<CR><CR>
"(FILES)
map <leader>fw :Sex! <bar> :vertical resize 30<CR>
map <leader>u :UndotreeShow<CR>
map <leader>pv :Ex <bar> :vertical resize 30<CR>
map <leader>pf :Sex! <bar> :vertical resize 30<CR>
"(PUGINS)
"maptree Toggle
map <leader>u :UndotreeToggle<CR>
"(POSITION)
"[P]ut one line [U]p everything from the cursor till the end of the line
map <leader>pu d$O<ESC>p
"[P]ut one line [D]own everything from the cursor till the end of the line
map <leader>pd d$o<ESC>p
"Put at then end of the [L]ine [U]pper from the cursor (everything from the cursor till the end of the line)
map <leader>lu DkA<ESC>p<ESC>jddk<ESC>I<ESC>
"Put at then end of the [L]ine [D]own(er) from the cursor (everything from the cursor till the end of the line)
map <leader>ld DjA<ESC>p<ESC>kddj<ESC>I<ESC>
"Classic Vim's Windo [U]p and [D]onw controls but keeps the cursor in the middle
map <C-d> <C-d>zz
map <C-u> <C-u>zz
"Classic Vim's [n]ext and [N]previous controls but keeps the cursor in the middle
map n nzzzv
map N Nzzzv
"Mooves what's under the cursor
map J :m '>+1<CR>gv=gv
map K :m '<-2<CR>gv=gv
"(COPY PASTE)
"Copy to your clipboard of your system and not in the internal buffer of vim
map <leader>y [["+y]])
map <leader>Y [["+Y]])
"(WORD) Manipulation
"[W]ord [R]reformat for word under the cursor
map <leader>wr ebvey:%s/<C-R>0//g<left><left>
map <leader>wr [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]
"[C]hange [W]ord in registered buffer To be more similar to whant vim implment
map <leader>cw ebvey/<C-R>0<CR>Ncw
"[C]hange [N]ext word in registered buffer To be more similar to what vim implements
@ -97,17 +118,31 @@ map <silent> <leader>wff ebveyG/<C-R>0<CR>
map <silent> <leader>wfl ebveyG/<C-R>0<CR>N
"--------------------------------------------------------------------
"(ADDERS)
"[A]dds a [)] at the end of the line
map <leader>a) A)<ESC>I<ESC>
"[A]dds a [}] at the end of the line
map <leader>a} A}<ESC>I<ESC>
"[A]dds a ["]"] at the end of the line
map <leader>a] A]<ESC>I<ESC>
"DEBUGER--------------------------------------------------------------
map <leader>db :Termdebug <bar> :vertical resize 30<CR>
noremap <silent> <leader>ts :Step<cr>
noremap <silent> <leader>to :Over<cr>
noremap <silent> <leader>tn :Next<cr>
noremap <silent> <leader>tc :Cont<cr>
"QUICKFIX Navigation for going to the next errors and so on
map <leader>ne <cmd>cnext<CR>zz
map <leader>me <cmd>cprev<CR>zz
map <leader>nl <cmd>lnext<CR>zz
map <leader>ml <cmd>lprev<CR>zz
set makeprg=bundle\ exec\ rspec\ -f\ QuickfixFormatter
"--------------------------------------------------------------------
"WILDMENU FOR FUZZY FILE SEARCH--------------------------------------
set path+=**
set wildmenu "Display all matching files when we tab complete
" NOW WE CAN:
" Type :find
@ -137,6 +172,10 @@ command! MakeTags !ctags -R .
" - Use ^n and ^p to go back and forth in the suggestion list
"--------------------------------------------------------------------
""(TERMINAL COMMANDS)
"" Makes current file executable
map <silent> <leader>mx, <cmd>!chmod +x %<CR>
"SNIPPETS------------------------------------------------------------
" Command Read template move cursor
nnoremap <leader>shs :-1read $HOME/.vim/snippets/html_skeleton.html<CR>5jwf>a
@ -146,17 +185,3 @@ nnoremap <leader>scf :-1read $HOME/.vim/snippets/c_for.c<CR>yi)/<C-R>0<CR>N:s/VA
nnoremap <leader>scs :-1read $HOME/.vim/snippets/c_switch.c<CR>yi)/<C-R>0<CR>Ncw
nnoremap <leader>scw :-1read $HOME/.vim/snippets/c_while.c<CR>yi)/<C-R>0<CR>Ncw
"--------------------------------------------------------------------
"BUILD INTEGRATION---------------------------------------------------
" Steal Mr. Bradley's formatter & add it to our spec_helper
" http://philipbradley.net/rspec-into-vim-with-quickfix
" Configure the `make` command to run RSpec
set makeprg=bundle\ exec\ rspec\ -f\ QuickfixFormatter
" NOW WE CAN:
" - Run :make to run RSpec
" - :cl to list errors
" - :cc# to jump to error by number
" - :cn and :cp to navigate forward and back
"--------------------------------------------------------------------

@ -0,0 +1,9 @@
function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0,"Normal",{bg = "none"})
vim.api.nvim_set_hl(0,"NormalFloat",{bg = "none"})
end
ColorMyPencils()

@ -0,0 +1 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git);

@ -0,0 +1,10 @@
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")
vim.keymap.set("n", "<C-a>", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<C-j>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<C-k>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<C-l>", function() ui.nav_file(4) end)

@ -0,0 +1,54 @@
local lsp = require('lsp-zero').preset({})
lsp.ensure_installed({
})
-- Fix Undefined global 'vim'
lsp.nvim_workspace()
local cmp = require('cmp')
local cmp_select = {behavior = cmp.SelectBehavior.Select}
local cmp_mappings = lsp.defaults.cmp_mappings({
['<C-m>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-Space>'] = cmp.mapping.complete(),
})
cmp_mappings['<Tab>'] = nil
cmp_mappings['<S-Tab>'] = nil
lsp.setup_nvim_cmp({
mapping = cmp_mappings
})
lsp.set_preferences({
suggest_lsp_servers = false,
sign_icons = {
error = 'E',
warn = 'W',
hint = 'H',
info = 'I'
}
})
lsp.on_attach(function(client, bufnr)
local opts = {buffer = bufnr, remap = false}
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
vim.keymap.set("n", "K", 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>vd", 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)
vim.keymap.set("n", "<leader>vca", 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)
end)
lsp.setup()
vim.diagnostic.config({
virtual_text = true
})

@ -0,0 +1,6 @@
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
vim.keymap.set('n', '<leader>pg', builtin.git_files, {})
vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({search = vim.fn.input("Grep > ")});
end)

@ -0,0 +1,38 @@
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", "python", "javascript" },
-- 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,
---- 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 = { },
-- 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,
},
}

@ -0,0 +1 @@
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)

@ -0,0 +1,2 @@
map <C-k> :s/^/\/\//<CR>
map <C-l> :s/\/\///<CR>

@ -0,0 +1 @@
require("key")

@ -0,0 +1,3 @@
require("key.set")
require("key.remap")
require("key.packer")

@ -0,0 +1,46 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- 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.2',
-- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}
use {
'nvim-treesitter/nvim-treesitter',
'nvim-treesitter/playground',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
}
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
requires = {
-- LSP Support
{'neovim/nvim-lspconfig'}, -- Required
{'williamboman/mason.nvim'}, -- Optional
{'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required
{'L3MON4D3/LuaSnip'}, -- Required
}
}
use{'rose-pine/neovim', as = 'rose-pine'}
use('theprimeagen/harpoon')
use('mbbill/undotree')
use('tpope/vim-fugitive')
end)

@ -0,0 +1,92 @@
-- (VIM) Remaps Space bar as the Leader command
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
--(NAVIGATION)
--Switches to the Left window
vim.keymap.set("n","<leader>h", ":wincmd h<CR><CR>",{ silent = true })
--Switches to the Bottom window
vim.keymap.set("n","<leader>j", ":wincmd j<CR><CR>",{ silent = true } )
--Switches to the Top window
vim.keymap.set("n","<leader>k", ":wincmd k<CR><CR>",{ silent = true })
--Switches to the Right window
vim.keymap.set("n","<leader>l", ":wincmd l<CR><CR>",{ silent = true })
--(FILES)
vim.keymap.set("n", "<leader>pf", ":Sex! <bar> :vertical resize 30<CR>")
--(POSITION)
--[P]ut one line [U]p everything from the cursor till the end of the line
vim.keymap.set("n","<leader>pu", "d$O<ESC>p")
--[P]ut one line [D]own everything from the cursor till the end of the line
vim.keymap.set("n","<leader>pd", "d$o<ESC>p")
--Put at then end of the [L]ine [U]pper from the cursor (everything from the cursor till the end of the line)
vim.keymap.set("n","<leader>lu", "DkA<ESC>p<ESC>jddk<ESC>I<ESC>")
--Put at then end of the [L]ine [D]own(er) from the cursor (everything from the cursor till the end of the line)
vim.keymap.set("n","<leader>ld", "DjA<ESC>p<ESC>kddj<ESC>I<ESC>")
-- Classic Vim's Windo [U]p and [D]onw controls but keeps the cursor in the middle
vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz")
-- Classic Vim's [n]ext and [N]previous controls but keeps the cursor in the middle
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")
-- Mooves what's under the cursor
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
--(COPY PASTE)
-- Copy to your clipboard of your system and not in the internal buffer of vim
vim.keymap.set({"n", "v"}, "<leader>y", [["+y]])
vim.keymap.set("n", "<leader>Y", [["+Y]])
--(WORD) Manipulation
--[W]ord [R]reformat for word under the cursor
-- Replace Madness from the primeagen
vim.keymap.set("n", "<leader>wr", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
--[C]hange [W]ord in registered buffer To be more similar to whant vim implment
vim.keymap.set("n","<leader>cw", "ebvey/<C-R>0<CR>Ncw")
--[C]hange [N]ext word in registered buffer To be more similar to what vim implements
vim.keymap.set("n","<leader>cn", "ncw")
--[W]ord [N]ext occurence for word under the cursor
vim.keymap.set("n","<leader>wn", "ebvey/<C-R>0<CR>")
--[W]ord [P]revious occurence for word under the cursor
vim.keymap.set("n","<leader>wp", "ebvey/<C-R>0<CR>NN")
--[W]ord [S]earch for word under the cursor
vim.keymap.set("n","<leader>ws", "ebvey/<C-R>0")
--[W]ord [F]ind [F]irst for word under the cursor
vim.keymap.set("n","<leader>wff", "ebveyG/<C-R>0<CR>", { silent = true })
--[W]ord [F]ind [L]ast for word under the cursor
vim.keymap.set("n","<leader>wfl", "ebveyG/<C-R>0<CR>N",{ silent = true })
--(ADDERS)
--[A]dds a [)] at the end of the line
vim.keymap.set("n","<leader>a)", "A)<ESC>I<ESC>")
--[A]dds a [}] at the end of the line
vim.keymap.set("n","<leader>a}", "A}<ESC>I<ESC>")
--[A]dds a ["]"] at the end of the line
vim.keymap.set("n","<leader>a]", "A]<ESC>I<ESC>")
--(DEBUGER)
vim.keymap.set("n","<leader>db", ":Termdebug <bar> :vertical resize 30<CR>")
vim.keymap.set("n","<leader>ts", ":Step<cr>", { silent = true })
vim.keymap.set("n","<leader>to", ":Over<cr>", { silent = true })
vim.keymap.set("n","<leader>tn", ":Next<cr>", { silent = true })
vim.keymap.set("n","<leader>tc", ":Cont<cr>", { silent = true })
--QUICKFIX Navigation for going to the next errors and so on
vim.keymap.set("n", "<leader>ne", "<cmd>cnext<CR>zz")
vim.keymap.set("n", "<leader>me", "<cmd>cprev<CR>zz")
vim.keymap.set("n", "<leader>nl", "<cmd>lnext<CR>zz")
vim.keymap.set("n", "<leader>ml", "<cmd>lprev<CR>zz")
--(TERMINAL COMMANDS)
-- Makes current file executable
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
--SNIPPETS------------------------------------------------------------
-- Command Read template move cursor
vim.keymap.set("n","<leader>shs", ":-1read $HOME/.config/nvim/snippets/html_skeleton.html<CR>5jwf>a")
vim.keymap.set("n","<leader>shb", ":-1read $HOME/.config/nvim/snippets/html_vertical_bracets.html<CR>:s/VARTOCHANGE//g<left><left>")
vim.keymap.set("n","<leader>sht", ":-1read $HOME/.config/nvim/snippets/html_horizontal_bracets.html<CR>:.,+2s/VARTOCHANGE//g<left><left>")
vim.keymap.set("n","<leader>scf", ":-1read $HOME/.config/nvim/snippets/c_for.c<CR>yi)/<C-R>0<CR>N:s/VARTOCHANGE//g<left><left>")
vim.keymap.set("n","<leader>scs", ":-1read $HOME/.config/nvim/snippets/c_switch.c<CR>yi)/<C-R>0<CR>Ncw")
vim.keymap.set("n","<leader>scw", ":-1read $HOME/.config/nvim/snippets/c_while.c<CR>yi)/<C-R>0<CR>Ncw")
----------------------------------------------------------------------

@ -0,0 +1,45 @@
-- Map Leader as spacebar
vim.g.mapleader = " "
-- Big cursor
vim.opt.guicursor = ""
-- Print lines
vim.opt.nu = true
-- Print lines relative
vim.opt.relativenumber = true
vim.opt.scrolloff = 8
-- Indentation to be 4 spaces
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
-- Automatically indents depending on the line before
vim.opt.expandtab = true
vim.opt.smartindent = true
-- Do not go to the a new line when screnn doesn't fit
vim.opt.wrap = false
-- Diabslebing vim's swap and backup as we are using undotree
vim.opt.swapfile = false
vim.opt.backup = false
-- Directory for undotree
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
-- Guidance to hihlight your seraches incremetally
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
-- To show whne there is an issue found by LPS simmilar to GBD
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
-- Column as delimitor
vim.opt.colorcolumn = "80"
-- Fast update times
vim.opt.updatetime = 50

@ -0,0 +1,174 @@
-- Automatically generated packer.nvim plugin loader code
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcall(function()
_G._packer = _G._packer or {}
_G._packer.inside_compile = true
local time
local profile_info
local should_profile = false
if should_profile then
local hrtime = vim.loop.hrtime
profile_info = {}
time = function(chunk, start)
if start then
profile_info[chunk] = hrtime()
else
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
end
end
else
time = function(chunk, start) end
end
local function save_profiles(threshold)
local sorted_times = {}
for chunk_name, time_taken in pairs(profile_info) do
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
end
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
local results = {}
for i, elem in ipairs(sorted_times) do
if not threshold or threshold and elem[2] > threshold then
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end
end
if threshold then
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
end
_G._packer.profile_output = results
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/key/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/key/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/key/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/key/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/key/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
package.cpath = package.cpath .. ';' .. install_cpath_pattern
end
time([[Luarocks path setup]], false)
time([[try_loadstring definition]], true)
local function try_loadstring(s, component, name)
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
if not success then
vim.schedule(function()
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
end)
end
return result
end
time([[try_loadstring definition]], false)
time([[Defining packer_plugins]], true)
_G.packer_plugins = {
LuaSnip = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip"
},
["cmp-nvim-lsp"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
},
harpoon = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/harpoon",
url = "https://github.com/theprimeagen/harpoon"
},
["lsp-zero.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
url = "https://github.com/VonHeikemen/lsp-zero.nvim"
},
["mason-lspconfig.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
url = "https://github.com/williamboman/mason-lspconfig.nvim"
},
["mason.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/mason.nvim",
url = "https://github.com/williamboman/mason.nvim"
},
["nvim-cmp"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp"
},
["nvim-lspconfig"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig"
},
["nvim-treesitter"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter"
},
["packer.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim"
},
playground = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/playground",
url = "https://github.com/nvim-treesitter/playground"
},
["plenary.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim"
},
["rose-pine"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/rose-pine",
url = "https://github.com/rose-pine/neovim"
},
["telescope.nvim"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim"
},
undotree = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/undotree",
url = "https://github.com/mbbill/undotree"
},
["vim-fugitive"] = {
loaded = true,
path = "/home/key/.local/share/nvim/site/pack/packer/start/vim-fugitive",
url = "https://github.com/tpope/vim-fugitive"
}
}
time([[Defining packer_plugins]], false)
_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then
vim.cmd("doautocmd BufRead")
end
_G._packer.needs_bufread = false
if should_profile then save_profiles() end
end)
if not no_errors then
error_msg = error_msg:gsub('"', '\\"')
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
end

@ -0,0 +1,4 @@
for(VARTOCHANGE = 0; VARTOCHANGE < n; VARTOCHANGE++)
{
VARTOCHANGE
}

@ -0,0 +1,19 @@
switch (VARTOCHANGE)
{
case VARTOCHANGE:
break;
case VARTOCHANGE:
break;
case VARTOCHANGE:
break;
case VARTOCHANGE:
break;
case VARTOCHANGE:
break;
default:
}

@ -0,0 +1,4 @@
while(VARTOCHANGE)
{
VARTOCHANGE
}

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
</head>
<body>
<header>
</header>
<main>
</main>
</body>
</html>

@ -1,9 +0,0 @@
#!/bin/bash
NVIMDIR="/home/$USER/.config/"
CURDATE=$(date +%m%d%Y%H%M%S)
cd $NVIMDIR
rm -rf nvim
rm -rf ~/.local/share/nvim
rm -rf ~/.local/state/nvim

@ -0,0 +1,10 @@
sudo apt-get install ninja-build gettext cmake unzip curl ripgrep
git clone https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
cd ..
sudo rm -r neovim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
Loading…
Cancel
Save