Skip to content

Commit ee2518f

Browse files
committed
Neovim conf
1 parent 8d1ef97 commit ee2518f

File tree

5 files changed

+110
-20
lines changed

5 files changed

+110
-20
lines changed

Rest

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2. Press [v](v) and move the cursor to the fifth item below. Notice that the
2+
text is highlighted.
3+
4+
3. Press the `:`{normal} character. At the bottom of the screen
5+
6+
`:'<,'>`{vim}
7+
8+
will appear.
9+

hello

285 KB
Binary file not shown.

hello.odin

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
import "core:fmt"
3+
4+
main:: proc(){
5+
fmt.println("Hello, World!")
6+
}
7+

init.lua

Lines changed: 84 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
======== |.-""""""""""""""""""-.| |-----| ========
99
======== || || | === | ========
1010
======== || KICKSTART.NVIM || |-----| ========
11-
======== || || | === | ========
12-
======== || || |-----| ========
1311
======== ||:Tutor || |:::::| ========
14-
======== |'-..................-'| |____o| ========
15-
======== `"")----------------(""` ___________ ========
1612
======== /::::::::::| |::::::::::\ \ no mouse \ ========
17-
======== /:::========| |==hjkl==:::\ \ required \ ========
18-
======== '""""""""""""' '""""""""""""' '""""""""""' ========
13+
======== /::::========| |==hjkl==:::\ \ required \ ========
14+
======== '""""""""""""' '""""""""""""' '"":/""""""""' ========
1915
======== ========
2016
=====================================================================
2117
=====================================================================
@@ -32,7 +28,7 @@ What is Kickstart?
3228
make Neovim your own! That might mean leaving Kickstart just the way it is for a while
3329
or immediately breaking it into modular pieces. It's up to you!
3430
35-
If you don't know anything about Lua, I recommend taking some time to read through
31+
If you don't know anything about Lua, I recommend taking some time to read through
3632
a guide. One possible example which will only take 10-15 minutes:
3733
- https://learnxinyminutes.com/docs/lua/
3834
@@ -137,7 +133,7 @@ vim.opt.updatetime = 250
137133
-- Decrease mapped sequence wait time
138134
-- Displays which-key popup sooner
139135
vim.opt.timeoutlen = 300
140-
136+
vim.o.timeoutlen = 2000
141137
-- Configure how new splits should be opened
142138
vim.opt.splitright = true
143139
vim.opt.splitbelow = true
@@ -231,6 +227,17 @@ require('lazy').setup({
231227
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
232228
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
233229

230+
-- {
231+
'mg979/vim-visual-multi',
232+
-- init = function()
233+
-- vim.g.VM_defaul_mappings = 0
234+
-- vim.g.VM_maps = {
235+
-- ['Find Under'] = '',
236+
-- }
237+
-- vim.g.VM_add_cursor_at_pos_no_mappings = 1
238+
-- end,
239+
--},
240+
234241
-- NOTE: Plugins can also be added by using a table,
235242
-- with the first argument being the link and the following
236243
-- keys can be used to configure plugin behavior/loading/etc.
@@ -270,7 +277,24 @@ require('lazy').setup({
270277
-- Then, because we use the `config` key, the configuration only runs
271278
-- after the plugin has been loaded:
272279
-- config = function() ... end
273-
280+
{
281+
'iruzo/ripgrep.nvim',
282+
version = '*',
283+
build = ':lua require("rg_setup").install_rg()',
284+
},
285+
-- {
286+
-- 'monkoose/neocodeium',
287+
-- event = 'VeryLazy',
288+
-- config = function()
289+
-- local neocodeium = require 'neocodeium'
290+
-- neocodeium.setup()
291+
-- vim.keymap.set('i', '<C-t>', neocodeium.accept)
292+
-- vim.keymap.set('i', '<C-r>', neocodeium.accept_line)
293+
-- vim.keymap.set('i', '<C-e>', neocodeium.cycle)
294+
-- vim.keymap.set('i', '<C-c>', neocodeium.cancel)
295+
-- end,
296+
-- },
297+
-- require('leap').create_default_mappings(),
274298
{ -- Useful plugin to show you pending keybinds.
275299
'folke/which-key.nvim',
276300
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
@@ -436,8 +460,31 @@ require('lazy').setup({
436460
end, { desc = '[S]earch [N]eovim files' })
437461
end,
438462
},
463+
{
464+
'ggandor/leap.nvim',
465+
enabled = true,
466+
keys = {
467+
{ 's', mode = { 'n', 'x', 'o' }, desc = 'Leap Forward to' },
468+
{ 'S', mode = { 'n', 'x', 'o' }, desc = 'Leap Backward to' },
469+
{ 'gs', mode = { 'n', 'x', 'o' }, desc = 'Leap from Windows' },
470+
},
471+
config = function(_, opts)
472+
local leap = require 'leap'
473+
for k, v in pairs(opts) do
474+
leap.opts[k] = v
475+
end
476+
leap.add_default_mappings(true)
439477

478+
vim.keymap.del({ 'x', 'o' }, 'x')
479+
480+
vim.keymap.del({ 'x', 'o' }, 'X')
481+
leap.create_default_mappings()
482+
end,
483+
},
440484
-- LSP Plugins
485+
--{ 'https://github.com/ggandor/leap.nvim',
486+
-- },
487+
441488
{
442489
-- `lazydev` configures Lua LSP for your Neovim config, runtime and plugins
443490
-- used for completion, annotations and signatures of Neovim apis
@@ -537,7 +584,7 @@ require('lazy').setup({
537584

538585
-- Rename the variable under your cursor.
539586
-- Most Language Servers support renaming across files, etc.
540-
map('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
587+
map('<leader>rn', vimlsp.buf.rename, '[R]e[n]ame')
541588

542589
-- Execute a code action, usually your cursor needs to be on top of an error
543590
-- or a suggestion from your LSP for this to activate.
@@ -614,10 +661,17 @@ require('lazy').setup({
614661
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
615662
-- - settings (table): Override the default settings passed when initializing the server.
616663
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
664+
617665
local servers = {
618666
-- clangd = {},
619667
-- gopls = {},
620-
-- pyright = {},
668+
ols = {},
669+
zls = {
670+
cmd = { '/Users/jcoyne/zls/zig-out/bin/zls' },
671+
},
672+
pyright = {},
673+
require('lspconfig').ols.setup {},
674+
require('lspconfig').zls.setup {},
621675
-- rust_analyzer = {},
622676
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
623677
--
@@ -785,7 +839,7 @@ require('lazy').setup({
785839
-- Accept ([y]es) the completion.
786840
-- This will auto-import if your LSP supports it.
787841
-- This will expand snippets if the LSP sent a snippet.
788-
['<C-y>'] = cmp.mapping.confirm { select = true },
842+
['<Tab>'] = cmp.mapping.confirm { select = true },
789843

790844
-- If you prefer more traditional completion keymaps,
791845
-- you can uncomment the following lines
@@ -837,21 +891,30 @@ require('lazy').setup({
837891
{ -- You can easily change to a different colorscheme.
838892
-- Change the name of the colorscheme plugin below, and then
839893
-- change the command in the config to whatever the name of that colorscheme is.
840-
--
841-
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
842-
'folke/tokyonight.nvim',
894+
'EdenEast/nightfox.nvim',
895+
-- vim.cmd.colorscheme 'lunaperche',
896+
843897
priority = 1000, -- Make sure to load this before all the other start plugins.
844898
init = function()
845899
-- Load the colorscheme here.
846900
-- Like many other themes, this one has different styles, and you could load
847901
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
848-
vim.cmd.colorscheme 'tokyonight-night'
902+
vim.cmd.colorscheme 'Terafox'
849903

850-
-- You can configure highlights by doing something like:
904+
-- You can configure highlights by doing something like
851905
vim.cmd.hi 'Comment gui=none'
852906
end,
853907
},
854-
908+
{
909+
'nvim-neo-tree/neo-tree.nvim',
910+
branch = 'v3.x',
911+
dependencies = {
912+
'nvim-lua/plenary.nvim',
913+
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
914+
'MunifTanjim/nui.nvim',
915+
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
916+
},
917+
},
855918
-- Highlight todo, notes, etc in comments
856919
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
857920

@@ -871,7 +934,7 @@ require('lazy').setup({
871934
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
872935
-- - sd' - [S]urround [D]elete [']quotes
873936
-- - sr)' - [S]urround [R]eplace [)] [']
874-
require('mini.surround').setup()
937+
--require('mini.surround').setup()
875938

876939
-- Simple and easy statusline.
877940
-- You could remove this setup call if you don't like it,
@@ -889,6 +952,7 @@ require('lazy').setup({
889952
end
890953

891954
-- ... and there is more!
955+
--
892956
-- Check out: https://github.com/echasnovski/mini.nvim
893957
end,
894958
},
@@ -929,7 +993,7 @@ require('lazy').setup({
929993
--
930994
-- require 'kickstart.plugins.debug',
931995
-- require 'kickstart.plugins.indent_line',
932-
-- require 'kickstart.plugins.lint',
996+
require 'kickstart.plugins.lint',
933997
-- require 'kickstart.plugins.autopairs',
934998
-- require 'kickstart.plugins.neo-tree',
935999
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps

instructions.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Create two arrays
2+
3+
FOR LOOP
4+
Fill First with the first 10 numbers
5+
6+
FOR LOOP
7+
fill second with the first 10 evens
8+
9+
FOR LOOP
10+
print both out

0 commit comments

Comments
 (0)