My own configuration files
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
-- general configuration
|
|
|
|
vim.opt.background = 'dark' -- the theme background is dark
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
|
|
|
|
vim.opt.cursorline = true -- highlight the line with the cursor
|
|
|
|
vim.opt.wrap = false -- do not wrap long lines
|
|
|
|
vim.opt.foldmethod = 'marker' -- when folding, use the marker
|
|
|
|
vim.opt.laststatus = 2 -- always show the status line
|
|
|
|
vim.opt.showtabline = 2 -- always show the tab bar
|
|
|
|
vim.opt.scrolloff = 2 -- number of lines to always have around cursor
|
|
|
|
vim.opt.splitright = true -- vertical splits open on the right
|
|
|
|
vim.opt.splitbelow = true -- horizontal splits open on the bottom
|
|
|
|
vim.g.mapleader = ' ' -- space is the leader character
|
|
|
|
|
|
|
|
-- commands that don't exist in lua yet
|
|
|
|
vim.cmd [[
|
|
|
|
color molokai
|
|
|
|
]]
|
|
|
|
|
|
|
|
-- Keybind: use '-' to open the file explorer
|
|
|
|
vim.api.nvim_set_keymap('n', '-', ':Ex<CR>', { noremap=true, silent=true })
|
|
|
|
|
|
|
|
-- Don't show signs on diagnostics
|
|
|
|
vim.diagnostic.config({signs = false})
|
|
|
|
|
|
|
|
-- My plugins and their configuration
|
|
|
|
require('plugins')
|
|
|
|
|
|
|
|
|
|
|
|
-- -- nvim-snippy
|
|
|
|
-- require('snippy').setup({
|
|
|
|
-- mappings = {
|
|
|
|
-- is = {
|
|
|
|
-- ['<Tab>'] = 'expand_or_advance',
|
|
|
|
-- ['<S-Tab>'] = 'previous',
|
|
|
|
-- },
|
|
|
|
-- nx = {
|
|
|
|
-- ['<leader>x'] = 'cut_text',
|
|
|
|
-- },
|
|
|
|
-- },
|
|
|
|
-- })
|