Skip to content

Commit e29e45d

Browse files
committed
init
0 parents  commit e29e45d

File tree

13 files changed

+341
-0
lines changed

13 files changed

+341
-0
lines changed

Diff for: .gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tt.*
2+
.tests
3+
doc/tags
4+
debug
5+
.repro
6+
foo.*
7+
*.log
8+
data

Diff for: README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Nvim my default configuration.
2+
3+
4+
```
5+
Nerd Fonts.
6+
7+
```

Diff for: init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require("runinterface-conf")

Diff for: lazy-lock.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"lazy.nvim": { "branch": "main", "commit": "24fa2a97085ca8a7220b5b078916f81e316036fd" },
3+
"mini.comment": { "branch": "main", "commit": "081bf6876eedaeffd85544752f82c18454694238" },
4+
"mini.completion": { "branch": "main", "commit": "b7f4971ffc0e042f02f90c14ddceeb0e6472904b" },
5+
"mini.cursorword": { "branch": "main", "commit": "b6fb7e8556b3e3bb09c5cca1937d8e542f8a0261" },
6+
"mini.indentscope": { "branch": "main", "commit": "f0d7faa064c892b96997810afcddfadc3f2a15b3" },
7+
"mini.notify": { "branch": "main", "commit": "2d506633f50bd61b1041aa4a6d62e0fe0e6ae09e" },
8+
"mini.nvim": { "branch": "main", "commit": "b0b435873375c4341f2ecbcb95e9e645abe0d679" },
9+
"mini.pairs": { "branch": "main", "commit": "40261dfcec7623cd57be3c3beb50fa73f2650cdf" },
10+
"mini.starter": { "branch": "main", "commit": "3c6ed3caaadef35291e98f0701038254ee1e78b0" },
11+
"mini.trailspace": { "branch": "main", "commit": "f43e2dff55a07e0a84c01ba4b25ed976a12eea44" },
12+
"neoconf.nvim": { "branch": "main", "commit": "4e204e0d423e70293b81ba1655ed17e1f3c97986" },
13+
"neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
14+
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
15+
"nvim-web-devicons": { "branch": "master", "commit": "b77921fdc44833c994fdb389d658ccbce5490c16" },
16+
"tokyonight.nvim": { "branch": "main", "commit": "0fae425aaab04a5f97666bd431b96f2f19c36935" },
17+
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
18+
}

Diff for: lua/runinterface-conf/config/autocmd.lua

Whitespace-only changes.

Diff for: lua/runinterface-conf/config/keymaps.lua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
local map = vim.keymap.set
2+
local opts = { noremap = true, silent = true }
3+
4+
5+
map('n', 'C-_', ':NvimTreeToggle<CR>', opts)

Diff for: lua/runinterface-conf/config/lazy.lua

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2+
3+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
4+
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
5+
end
6+
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
7+
8+
require("lazy").setup({
9+
spec = {
10+
{ import = "runinterface-conf.plugins" },
11+
},
12+
defaults = {
13+
lazy = true,
14+
version = false,
15+
},
16+
install = {
17+
colorscheme = { "tokyonight-moon" }
18+
},
19+
checker = { enabled = true },
20+
performance = {
21+
rtp = {
22+
-- disable some rtp plugins
23+
disabled_plugins = {
24+
"gzip",
25+
-- "matchit",
26+
-- "matchparen",
27+
"netrw",
28+
"netrwPlugin",
29+
"tarPlugin",
30+
"tohtml",
31+
"tutor",
32+
"zipPlugin",
33+
},
34+
},
35+
},
36+
})

Diff for: lua/runinterface-conf/config/options.lua

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
local vim = vim
2+
3+
-- This file is automatically loaded by plugins.core
4+
vim.g.mapleader = " "
5+
vim.g.maplocalleader = "\\"
6+
7+
-- Enable LazyVim auto format
8+
vim.g.autoformat = true
9+
10+
-- LazyVim root dir detection
11+
-- Each entry can be:
12+
-- * the name of a detector function like `lsp` or `cwd`
13+
-- * a pattern or array of patterns like `.git` or `lua`.
14+
-- * a function with signature `function(buf) -> string|string[]`
15+
vim.g.root_spec = { "lsp", { ".git", "lua" }, "cwd" }
16+
17+
-- LazyVim automatically configures lazygit:
18+
-- * theme, based on the active colorscheme.
19+
-- * editorPreset to nvim-remote
20+
-- * enables nerd font icons
21+
-- Set to false to disable.
22+
vim.g.lazygit_config = true
23+
24+
-- Optionally setup the terminal to use
25+
-- This sets `vim.o.shell` and does some additional configuration for:
26+
-- * pwsh
27+
-- * powershell
28+
-- LazyVim.terminal.setup("pwsh")
29+
30+
local opt = vim.opt
31+
32+
opt.autowrite = true -- Enable auto write
33+
34+
if not vim.env.SSH_TTY then
35+
-- only set clipboard if not in ssh, to make sure the OSC 52
36+
-- integration works automatically. Requires Neovim >= 0.10.0
37+
opt.clipboard = "unnamedplus" -- Sync with system clipboard
38+
end
39+
40+
opt.completeopt = "menu,menuone,noselect"
41+
opt.conceallevel = 2 -- Hide * markup for bold and italic, but not markers with substitutions
42+
opt.confirm = true -- Confirm to save changes before exiting modified buffer
43+
opt.cursorline = true -- Enable highlighting of the current line
44+
opt.expandtab = true -- Use spaces instead of tabs
45+
opt.formatoptions = "jcroqlnt" -- tcqj
46+
opt.grepformat = "%f:%l:%c:%m"
47+
opt.grepprg = "rg --vimgrep"
48+
opt.ignorecase = true -- Ignore case
49+
opt.inccommand = "nosplit" -- preview incremental substitute
50+
opt.laststatus = 3 -- global statusline
51+
opt.list = true -- Show some invisible characters (tabs...
52+
opt.mouse = "a" -- Enable mouse mode
53+
opt.number = true -- Print line number
54+
opt.pumblend = 10 -- Popup blend
55+
opt.pumheight = 10 -- Maximum number of entries in a popup
56+
opt.relativenumber = true -- Relative line numbers
57+
opt.scrolloff = 4 -- Lines of context
58+
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize", "help", "globals", "skiprtp", "folds" }
59+
opt.shiftround = true -- Round indent
60+
opt.shiftwidth = 2 -- Size of an indent
61+
opt.shortmess:append({ W = true, I = true, c = true, C = true })
62+
opt.showmode = false -- Dont show mode since we have a statusline
63+
opt.sidescrolloff = 8 -- Columns of context
64+
opt.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
65+
opt.smartcase = true -- Don't ignore case with capitals
66+
opt.smartindent = true -- Insert indents automatically
67+
opt.spelllang = { "en" }
68+
opt.splitbelow = true -- Put new windows below current
69+
opt.splitkeep = "screen"
70+
opt.splitright = true -- Put new windows right of current
71+
opt.tabstop = 2 -- Number of spaces tabs count for
72+
opt.termguicolors = true -- True color support
73+
if not vim.g.vscode then
74+
opt.timeoutlen = 300 -- Lower than default (1000) to quickly trigger which-key
75+
end
76+
opt.undofile = true
77+
opt.undolevels = 10000
78+
opt.updatetime = 200 -- Save swap file and trigger CursorHold
79+
opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode
80+
opt.wildmode = "longest:full,full" -- Command-line completion mode
81+
opt.winminwidth = 5 -- Minimum window width
82+
opt.wrap = false -- Disable line wrap
83+
opt.fillchars = {
84+
foldopen = "󰝰",
85+
foldclose = "",
86+
fold = " ",
87+
foldsep = " ",
88+
diff = "",
89+
eob = " ",
90+
}
91+
92+
if vim.fn.has("nvim-0.10") == 1 then
93+
opt.smoothscroll = true
94+
end
95+
96+
-- Folding
97+
vim.opt.foldlevel = 99
98+
99+
-- Fix markdown indentation settings
100+
vim.g.markdown_recommended_style = 0

Diff for: lua/runinterface-conf/init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require("runinterface-conf.config.options")
2+
require("runinterface-conf.config.lazy")
3+
require("runinterface-conf.config.autocmd")
4+
require("runinterface-conf.config.keymaps")
5+

Diff for: lua/runinterface-conf/plugins/colorschema.lua

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
return {
2+
{
3+
"folke/tokyonight.nvim",
4+
lazy = false,
5+
priority = 1000,
6+
config = function()
7+
require("tokyonight").setup({
8+
style = "moon",
9+
light_style = "day",
10+
transparent = true,
11+
terminal_colors = true,
12+
styles = {
13+
comments = { italic = true },
14+
keywords = { italic = true },
15+
functions = {},
16+
variables = {},
17+
sidebars = "transparent",
18+
floats = "transparent",
19+
},
20+
sidebars = { "qf", "help" },
21+
day_brightness = 0.3,
22+
hide_inactive_statusline = false,
23+
dim_inactive = false,
24+
lualine_bold = false,
25+
on_colors = function(colors) end,
26+
on_highlights = function(highlights, colors)
27+
-- do nothing
28+
end,
29+
})
30+
vim.cmd.colorscheme("tokyonight-moon")
31+
end
32+
},
33+
}

Diff for: lua/runinterface-conf/plugins/init.lua

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
{
3+
"folke/which-key.nvim",
4+
{ "folke/neoconf.nvim", cmd = "Neoconf" },
5+
"folke/neodev.nvim",
6+
}
7+
}

Diff for: lua/runinterface-conf/plugins/mini.lua

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
return {
2+
{
3+
'echasnovski/mini.nvim',
4+
event = "VeryLazy",
5+
version = false
6+
},
7+
{
8+
'echasnovski/mini.starter',
9+
event = "VimEnter",
10+
version = false,
11+
opts = {
12+
header = "Good morning, samurai"
13+
},
14+
config = function(_, opts)
15+
require('mini.starter').setup(opts)
16+
end
17+
},
18+
{
19+
'echasnovski/mini.completion',
20+
event = 'VeryLazy',
21+
version = false,
22+
opts = { },
23+
config = function(_, opts)
24+
require('mini.completion').setup(opts)
25+
end
26+
},
27+
{
28+
'echasnovski/mini.trailspace',
29+
event = "VeryLazy",
30+
version = false,
31+
opts = { },
32+
config = function(_, opts)
33+
require('mini.trailspace').setup(opts)
34+
end
35+
},
36+
{
37+
'echasnovski/mini.indentscope',
38+
event ="VeryLazy",
39+
version = false,
40+
opts = { },
41+
config = function(_, opts)
42+
require('mini.indentscope').setup(opts)
43+
end
44+
},
45+
{
46+
'echasnovski/mini.pairs',
47+
event = 'VeryLazy',
48+
version = false,
49+
opts = { },
50+
config = function(_, opts)
51+
require('mini.pairs').setup(opts)
52+
end
53+
},
54+
{
55+
'echasnovski/mini.notify',
56+
event = "VeryLazy",
57+
version = false,
58+
opts = { },
59+
config = function(_, opts)
60+
require('mini.notify').setup(opts)
61+
end
62+
},
63+
{
64+
'echasnovski/mini.cursorword',
65+
event = 'VeryLazy',
66+
version = false,
67+
opts = { },
68+
config = function(_, opts)
69+
require('mini.cursorword').setup(opts)
70+
end
71+
},
72+
{
73+
'echasnovski/mini.comment',
74+
event = "VeryLazy",
75+
version = false,
76+
opts = {
77+
mappings = {
78+
comment = 'gc',
79+
comment_line = 'gcc',
80+
comment_visual = 'gc',
81+
textobject = 'gc',
82+
},
83+
hooks = {
84+
pre = function() end,
85+
post = function() end,
86+
},
87+
},
88+
config = function(_, opts)
89+
require('mini.comment').setup(opts)
90+
end
91+
},
92+
}

Diff for: lua/runinterface-conf/plugins/neotree.lua

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
return {
2+
"nvim-tree/nvim-tree.lua",
3+
version = "*",
4+
lazy = false,
5+
dependencies = {
6+
"nvim-tree/nvim-web-devicons",
7+
},
8+
config = function()
9+
vim.g.loaded_netrw = 1
10+
vim.g.loaded_netrwPlugin = 1
11+
12+
vim.opt.termguicolors = true
13+
14+
require("nvim-tree").setup({
15+
sort = {
16+
sorter = "case_sensitive",
17+
},
18+
view = {
19+
width = 30,
20+
},
21+
renderer = {
22+
group_empty = true,
23+
},
24+
filters = {
25+
dotfiles = true,
26+
},
27+
})
28+
end
29+
}

0 commit comments

Comments
 (0)