initial commit

This commit is contained in:
Ubuntu
2026-06-09 14:23:18 +00:00
commit e6c4ecde86
30 changed files with 989 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
-- vim.keymap.set("n", "", "", {desc = ""})
--PERSONAL
vim.keymap.set("n", "<C-j>", "18j", {desc = "Fast scroll down"})
vim.keymap.set("n", "<C-k>", "18k", {desc = "Fast scroll up"})
vim.keymap.set("n", "<Leader>h", "<cmd>:noh<CR>", {desc = "Remove current highlighting"})
vim.keymap.set("v", "<Leader>y", '"+y', {desc='Yank to "+ register for external copy/paste'})
--CODE/LSP
vim.keymap.set("n", "gl", function() vim.diagnostic.open_float() end, {desc = "Open LSP diagnostic"})
--OIL NVIM EXPLORER
vim.keymap.set("n", "<Leader>-", "<cmd>Oil --float<CR>", {desc = "Open floating Oil Explorer in parent dir"})
--FZF
vim.keymap.set("n", "<Leader>/", "<cmd>:FzfLua files<CR>", {desc = "Open fzf in cwd"})
vim.keymap.set("n", "<Leader>?", "<cmd>:FzfLua files cwd=/<CR>", {desc = "Open fzf in root dir"})
vim.keymap.set("n", "<Leader><A-/>", "<cmd>:FzfLua grep<CR>", {desc = "Grep CWD"})
vim.keymap.set("n", "<Leader><A-?>", "<cmd>:FzfLua grep cwd=/<CR>", {desc = "Grep root dir"})
--BARBAR
vim.keymap.set("n", "<Leader>b[", "<Cmd>BufferPrevious<CR>", {desc = "Previous buffer tab"})
vim.keymap.set("n", "<Leader>b]", "<Cmd>BufferNext<CR>", {desc = "Next buffer tab"})
vim.keymap.set("n", "<Leader>bp", "<Cmd>BufferPin<CR>", {desc = "Pin current buffer"})
vim.keymap.set("n", "<Leader>bq", "<Cmd>BufferClose<CR>", {desc = "Close current buffer"})
vim.keymap.set("n", "<Leader>br", "<Cmd>BufferRestore<CR>", {desc = "Restore buffer"})
vim.keymap.set("n", "<Leader>bg", "<Cmd>BufferPick<CR>", {desc = "Pick buffer"})
--ALPHA
vim.keymap.set("n", "<Leader>a", "<cmd>:Alpha<CR>", {desc = "Open Alpha welcome screen"})
--CONFORM
vim.keymap.set("n", "<Leader>f", "<cmd>:lua require('conform').format()<CR>")
+80
View File
@@ -0,0 +1,80 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
--vim.g.maplocalleader = "\\"
require("config.options")
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "everforest" } },
-- automatically check for plugin updates
checker = {
enabled = true,
notify = false
},
})
--setup colour indents
local highlight = {
"IndentHighlightEverForestGreen",
"IndentHighlightEverForestYellow",
"IndentHighlightEverForestBlue",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "IndentHighlightRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "IndentHighlightYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "IndentHighlightBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "IndentHighlightOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "IndentHighlightGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "IndentHighlightViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "IndentHighlightCyan", { fg = "#56B6C2" })
vim.api.nvim_set_hl(0, "IndentHighlightLightGray", { fg = "#BCCCDC" })
vim.api.nvim_set_hl(0, "IndentHighlightLightTurquoise", { fg = "#70f1bc" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestGreen", { fg = "#A7C080" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestYellow", { fg = "#DBBC7F" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestRed", { fg = "#E67E80" })
vim.api.nvim_set_hl(0, "IndentHighlightEverForestBlue", { fg = "#7FBBB3" })
vim.api.nvim_set_hl(0, "IndentHighlightDraculaBlue", { fg = "#8BE9FD"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaGreen", { fg = "#50FA7B"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaPink", { fg = "#FF79C6"})
vim.api.nvim_set_hl(0, "IndentHighlightDraculaYellow", { fg = "#F1Fa8C"})
end)
require("ibl").setup { indent = { highlight = highlight } }
require("config.keymaps")
+45
View File
@@ -0,0 +1,45 @@
local ignoreServers = require('ignoreConfig.lspIgnoreServers')
local servers = {
jq = {},
clangd = {},
glsl_analyzer = {},
lua_ls = {
-- cmd = { ... },
-- filetypes = { ... },
-- capabilities = {},
--settings = {
-- Lua = {
-- completion = {
-- callSnippet = 'Replace',
-- },
-- -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings
-- diagnostics = { disable = { 'missing-fields' },},
-- runtime = {
-- -- Tell the language server which version of Lua you are using (likely LuaJIT in Neovim)
-- version = 'LuaJIT',
-- },
-- workspace = {
-- -- Make the server aware of Neovim runtime files
-- library = vim.api.nvim_get_runtime_file("", true),
-- },
-- },
--},
},
cssls = {},
marksman = {
filetypes = { "markdown", "md" },
},
--pyright = {},
}
for key,value in pairs(ignoreServers) do
servers[key]=value
--print(key, value)
end
--for key, value in pairs(servers) do
-- print(key, "=", value)
--end
return servers
+28
View File
@@ -0,0 +1,28 @@
vim.opt.smarttab = true
vim.opt.autoindent = true
vim.opt.breakindent = true
vim.opt.number = true
vim.o.confirm = true
--vim.o.inccommand = 'split'
vim.o.cursorline = true
vim.o.undofile = true
vim.o.showmode = false
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.signcolumn = "yes"
vim.o.splitright = true
vim.o.splitbelow = true
vim.opt.list = true
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = ""}
vim.opt.scrolloff = 8
vim.opt.updatetime = 1200;
vim.api.nvim_create_autocmd( "TextYankPost", {
group = vim.api.nvim_create_augroup("YankHighlight", {
clear = true }),
pattern = "*",
callback = function()
vim.highlight.on_yank()
end,
desc = "Highlight Yank",
})