nvim: changed file structure more intuitively

master
tiyn 1 year ago
parent c28479a090
commit 9e5da42a0e

@ -110,7 +110,7 @@
"clipping-range": 6.0,
"fft": "4096",
"input-gain": 0.0,
"output-gain": -20.0,
"output-gain": 15.0,
"std": "ISO226-2003",
"volume": -6.499999999999993
},
@ -119,7 +119,7 @@
"deesser#0",
"filter#0",
"gate#0",
"rnnoise",
"rnnoise#0",
"limiter#0",
"loudness#0"
],

@ -51,24 +51,31 @@ vim.o.signcolumn = "yes"
vim.o.undofile = true
vim.o.undodir = vim.env.XDG_CACHE_HOME .. "/vim/undo"
-- delete trailing whitespaces on save
vim.api.nvim_create_autocmd({'BufWritePre'},
{pattern = {'*'},
command = [[%s/\s\+$//e]],
})
-- python programs to use
vim.g.python_host_prog = '/usr/bin/python2'
vim.g.python3_host_prog = '/usr/bin/python3'
-- read files correctly
vim.filetype.add({
extension = {
h = 'c',
html = 'html',
java = 'java',
md = 'markdown',
nim = 'nim',
py = 'python',
tex = 'tex',
}})
-- load plugins (autoload all files in plugin folder)
require('loadplugins')
-- load filetype specific mappings and commands
require('filetype')
require('autocmd')
-- load general mapped keys
require('keymap')
-- load general colorscheme
require('colorscheme')

@ -1,16 +1,10 @@
-- filetype
-- autocmd
-- read files correctly
vim.filetype.add({
extension = {
h = 'c',
html = 'html',
java = 'java',
md = 'markdown',
nim = 'nim',
py = 'python',
tex = 'tex',
}})
-- delete trailing whitespaces on save
vim.api.nvim_create_autocmd({'BufWritePre'},
{pattern = {'*'},
command = [[%s/\s\+$//e]],
})
-- formatting options
vim.api.nvim_create_autocmd({'FileType'},

@ -1,7 +1,7 @@
#!/bin/sh
window=$(xdotool getwindowfocus)
fps=30
fps=60
audio="$(pactl get-default-sink).monitor"
format="mp4"
lenght=20

Loading…
Cancel
Save