mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
vim.opt and some other stuff
This commit is contained in:
parent
74e8063bfc
commit
5f12febcb1
5 changed files with 38 additions and 49 deletions
|
@ -96,7 +96,7 @@
|
||||||
:neovim/nvim-lspconfig {}
|
:neovim/nvim-lspconfig {}
|
||||||
|
|
||||||
;:hrsh7th/nvim-compe {:mod "dots.plugins.compe"}
|
;:hrsh7th/nvim-compe {:mod "dots.plugins.compe"}
|
||||||
:/home/leon/coding/prs/nvim-compe {:event [:BufEnter]
|
:/home/leon/coding/prs/nvim-compe {:event [:InsertEnter]
|
||||||
:mod "dots.plugins.compe"}
|
:mod "dots.plugins.compe"}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
|
|
||||||
; --------------------------------- >>>>>
|
; --------------------------------- >>>>>
|
||||||
|
|
||||||
(se signcolumn "yes")
|
(set vim.opt.signcolumn "yes")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
(a.println (fennel#.traceback $1)))))
|
(a.println (fennel#.traceback $1)))))
|
||||||
|
|
||||||
(when (vim.fn.has "termguicolors")
|
(when (vim.fn.has "termguicolors")
|
||||||
(se termguicolors true))
|
(set vim.opt.termguicolors true))
|
||||||
|
|
||||||
(make-errors-epic (require "dots.plugins"))
|
(make-errors-epic (require "dots.plugins"))
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
(make-errors-epic (require "dots.keybinds"))
|
(make-errors-epic (require "dots.keybinds"))
|
||||||
|
|
||||||
|
|
||||||
;(se runtimepath (.. vim.o.runtimepath ",/home/leon/coding/projects/kbd-vim"))
|
;(set vim.opt.runtimepath (.. vim.o.runtimepath ",/home/leon/coding/projects/kbd-vim"))
|
||||||
|
|
||||||
; TODO
|
; TODO
|
||||||
;(make-errors-epic (require "smart-compe-conjure"))
|
;(make-errors-epic (require "smart-compe-conjure"))
|
||||||
|
@ -32,37 +32,37 @@
|
||||||
(vim.cmd "filetype plugin indent on")
|
(vim.cmd "filetype plugin indent on")
|
||||||
(vim.cmd "syntax on")
|
(vim.cmd "syntax on")
|
||||||
|
|
||||||
(se foldmethod "marker")
|
(set vim.opt.foldmethod "marker")
|
||||||
(se showmode false)
|
(set vim.opt.showmode false)
|
||||||
(se undodir (.. vim.env.HOME "/.vim/undo-dir"))
|
(set vim.opt.undodir (.. vim.env.HOME "/.vim/undo-dir"))
|
||||||
(se undofile true)
|
(set vim.opt.undofile true)
|
||||||
(se shortmess (.. vim.o.shortmess "c")) ; Don't give completion messages like 'match 1 of 2' or 'The only match'
|
(set vim.opt.shortmess (.. vim.o.shortmess "c")) ; Don't give completion messages like 'match 1 of 2' or 'The only match'
|
||||||
(se hidden true)
|
(set vim.opt.hidden true)
|
||||||
(se encoding "utf-8")
|
(set vim.opt.encoding "utf-8")
|
||||||
(se number false)
|
(set vim.opt.number false)
|
||||||
(se relativenumber false)
|
(set vim.opt.relativenumber false)
|
||||||
(se compatible false)
|
(set vim.opt.compatible false)
|
||||||
(se cursorline true)
|
(set vim.opt.cursorline true)
|
||||||
(se incsearch true)
|
(set vim.opt.incsearch true)
|
||||||
(se hlsearch true)
|
(set vim.opt.hlsearch true)
|
||||||
(se inccommand "nosplit")
|
(set vim.opt.inccommand "nosplit")
|
||||||
(se signcolumn "yes")
|
(set vim.opt.signcolumn "yes")
|
||||||
(se shiftwidth 2)
|
(set vim.opt.shiftwidth 2)
|
||||||
(se tabstop 2)
|
(set vim.opt.tabstop 2)
|
||||||
(se backspace "indent,eol,start")
|
(set vim.opt.backspace "indent,eol,start")
|
||||||
(se autoindent true)
|
(set vim.opt.autoindent true)
|
||||||
(se smartindent true)
|
(set vim.opt.smartindent true)
|
||||||
(se expandtab true)
|
(set vim.opt.expandtab true)
|
||||||
(se wrap false)
|
(set vim.opt.wrap false)
|
||||||
(se completeopt "menuone,noselect")
|
(set vim.opt.completeopt "menuone,noselect")
|
||||||
(se laststatus 2)
|
(set vim.opt.laststatus 2)
|
||||||
(se splitbelow true)
|
(set vim.opt.splitbelow true)
|
||||||
(se splitright true)
|
(set vim.opt.splitright true)
|
||||||
(se mouse "a")
|
(set vim.opt.mouse "a")
|
||||||
(se shell "bash")
|
(set vim.opt.shell "bash")
|
||||||
(se background "dark")
|
(set vim.opt.background "dark")
|
||||||
(se swapfile false)
|
(set vim.opt.swapfile false)
|
||||||
(se undolevels 10000)
|
(set vim.opt.undolevels 10000)
|
||||||
|
|
||||||
(vim-let &t_ut "")
|
(vim-let &t_ut "")
|
||||||
|
|
||||||
|
|
|
@ -83,18 +83,6 @@
|
||||||
(fn [,use-sym]
|
(fn [,use-sym]
|
||||||
,(unpack
|
,(unpack
|
||||||
(icollect [_# v# (ipairs use-statements)]
|
(icollect [_# v# (ipairs use-statements)]
|
||||||
`(,use-sym ,v#)))))))))
|
`(,use-sym ,v#)))))))))}
|
||||||
|
|
||||||
|
|
||||||
:se
|
|
||||||
(fn [name value]
|
|
||||||
(let [str-name (tostring name)
|
|
||||||
(info-ok scope) (pcall #(. (vim.api.nvim_get_option_info str-name) :scope))]
|
|
||||||
(if info-ok
|
|
||||||
(match scope
|
|
||||||
:global `(tset vim.o ,str-name ,value)
|
|
||||||
:win `(tset vim.wo ,str-name ,value)
|
|
||||||
:buf `(do (tset vim.bo ,str-name ,value)
|
|
||||||
(tset vim.o ,str-name ,value))
|
|
||||||
_ (print (.. "option " str-name " has unhandled scope " scope)))
|
|
||||||
(print (.. "Unknown vim-option: " str-name)))))}
|
|
||||||
|
|
|
@ -265,7 +265,8 @@ myStartupHook = do
|
||||||
spawnOnce "xfce4-clipman &"
|
spawnOnce "xfce4-clipman &"
|
||||||
--spawnOnce "redshift -P -O 5000 &"
|
--spawnOnce "redshift -P -O 5000 &"
|
||||||
spawn "xset r rate 300 50 &" -- make key repeat quicker
|
spawn "xset r rate 300 50 &" -- make key repeat quicker
|
||||||
spawn "setxkbmap de nodeadkeys"
|
--spawn "setxkbmap de nodeadkeys"
|
||||||
|
spawn "setxkbmap us -option compose:ralt"
|
||||||
spawn "arbtt-capture"
|
spawn "arbtt-capture"
|
||||||
--spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
|
--spawn "/home/leon/.screenlayout/dualscreen-stacked.sh"
|
||||||
spawn "/home/leon/.screenlayout/tripplescreen-fixed.sh"
|
spawn "/home/leon/.screenlayout/tripplescreen-fixed.sh"
|
||||||
|
|
Loading…
Reference in a new issue