feat: initial commit

New neovim configuration, a continuation from
a1a9da1ddc,
but based on Nix as the plugin/package manager. With a wrapped neovim
instance, for better portability.
This commit is contained in:
Guz
2024-12-03 18:17:33 -03:00
commit 4dd2211721
8 changed files with 456 additions and 0 deletions

10
lua/dot013/init.lua Normal file
View File

@@ -0,0 +1,10 @@
require("dot013.options")
vim.g.lze = {
--@type fun(name: string)
load = vim.cmd.packadd,
--@type boolean
verbose = true,
}
require("lze").load("dot013.plugins")

58
lua/dot013/options.lua Normal file
View File

@@ -0,0 +1,58 @@
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- vim.g.loaded_netrw = 1;
-- vim.g.loaded_netrwPlugin = 1;
vim.wo.number = true
vim.o.mouse = "a"
-- True colors
vim.o.termguicolors = true
-- Enable filetype plugins
vim.o.filetype = "on"
-- Enable spell checking by default
vim.o.spell = true
-- Set relative line numbers
vim.o.number = true
vim.o.relativenumber = true
vim.o.signcolumn = "number"
-- Set indentation
vim.o.expandtab = false
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
-- vim.o.expandtab = 4;
vim.o.breakindent = true
-- Scroll off
vim.o.scrolloff = 10
-- Line length column
vim.o.colorcolumn = "80"
-- Sync NeoVim and OS clipboards
vim.o.clipboard = "unnamedplus"
-- Highlight search
vim.o.hlsearch = false
vim.o.incsearch = true
-- Save undo history
vim.o.undofile = true
-- Case-insensitive search, unless \C or capital in search
vim.o.ignorecase = true
vim.o.smartcase = true
vim.wo.signcolumn = "yes"
vim.o.updatetime = 250
vim.o.timeoutlen = 300
vim.o.completeopt = "menuone,noselect"

View File

@@ -0,0 +1,41 @@
return {
{
"plenary.nvim",
dep_of = {
"telescope.nvim",
},
},
{
"telescope-fzf-native.nvim",
dep_of = {
"telescope.nvim"
},
},
{
"telescope.nvim",
cmd = {
"Telescope",
},
keys = {
{ "<leader><space>", function() return require("telescope.builtin").buffers end, "Find existing buffers" },
{
"/",
function() return require("telescope.builtin").current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({
windblend = 10,
previewer = false,
})) end,
"Find in current buffer"
},
{ "fr", ":lua require('telescope.builtin').oldfiles()<cr>", "Find recent files" },
{ "ff", "<cmd>Telescope find_files<cr>", "Find files" },
{ "fw", ":lua require('telescope.builtin').grep_string()<cr>", "Find word" },
{ "<leader>fw", "<cmd>Telescope live_grep<cr>","Find word in all files" },
{ "gf", ":lua require('telescope.builtin').git_files()<cr>", "Git files" },
{ "fs", ":lua require('telescope.builtin').resume()<cr>", "Resume search" },
},
after = function ()
require("telescope").setup()
require("telescope").load_extension("fzf")
end,
}
}