initial commit
This commit is contained in:
commit
413750ce81
10 changed files with 154 additions and 0 deletions
22
lua/config/lazy.lua
Normal file
22
lua/config/lazy.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
-- 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)
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {{ import = "plugins" }},
|
||||
checker = { enabled = false },
|
||||
})
|
40
lua/config/nvim.lua
Normal file
40
lua/config/nvim.lua
Normal file
|
@ -0,0 +1,40 @@
|
|||
-- tabstops -> 4 spaces
|
||||
vim.o.tabstop = 4
|
||||
vim.o.expandtab = true
|
||||
vim.o.softtabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
|
||||
-- disable netrw in favour of telescope
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- colours
|
||||
vim.o.background = "light"
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "number"
|
||||
|
||||
-- line numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "number"
|
||||
|
||||
-- allow virtual lines for lsp inline warnings/errors
|
||||
vim.diagnostic.config({ virtual_lines = true })
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
|
||||
-- custom keymaps
|
||||
-- keymaps for plugins are defined in the plugin config.
|
||||
|
||||
-- keep neovide-specifics neovide-specific
|
||||
if not vim.g.neovide then
|
||||
-- disable cursor animations
|
||||
vim.g.neovide_position_animation_length = 0
|
||||
vim.g.neovide_cursor_animation_length = 0.00
|
||||
vim.g.neovide_cursor_trail_size = 0
|
||||
vim.g.neovide_cursor_animate_in_insert_mode = false
|
||||
|
||||
vim.g.neovide_cursor_animate_command_line = false
|
||||
vim.g.neovide_scroll_animation_far_lines = 0
|
||||
vim.g.neovide_scroll_animation_length = 0.00
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue