summaryrefslogtreecommitdiffstats
path: root/init.lua
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2022-03-07 14:43:57 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2022-03-07 14:43:57 +0100
commit596823bc99e656d3913ad7fe7f6c0f27a30c0110 (patch)
tree9ddf40caf018cc630d445db327d7b8d52994f921 /init.lua
parentcbcab8684e06379c9f5c51cfc9cac68d8684fe0c (diff)
downloadvim-596823bc99e656d3913ad7fe7f6c0f27a30c0110.zip
vim-596823bc99e656d3913ad7fe7f6c0f27a30c0110.tar.gz
switch to neovim + lua
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua43
1 files changed, 43 insertions, 0 deletions
diff --git a/init.lua b/init.lua
new file mode 100644
index 0000000..75b2a16
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,43 @@
+require 'user.options'
+require 'user.bepo'
+require 'user.keymaps'
+require 'user.plugins'
+require 'user.colorscheme'
+require 'user.cmp'
+require 'user.lsp'
+require 'user.comment'
+require 'user.telescope'
+require 'user.treesitter'
+require 'user.autopairs'
+require 'user.gitsigns'
+require 'user.nvim-tree'
+require 'user.bufferline'
+
+require('feline').setup({preset = 'noicon'})
+
+-- When editing a file, always jump to the last known cursor position.
+-- Don't do it when the position is invalid or when inside an event handler
+-- (happens when dropping a file on gvim).
+vim.cmd[[
+ autocmd BufReadPost *
+ \ if line("'\"") > 0 && line("'\"") <= line("$") |
+ \ exe "normal g`\"" |
+ \ endif
+]]
+
+vim.cmd([[
+ augroup CmpDebounceAuGroup
+ au!
+ au TextChangedI * lua require('user.debounce').debounce()
+ augroup end
+]])
+
+-- UTF8 à tester
+-- command! -nargs=* UTF8 call EncodeUTF8(<f-args>)
+-- fun! EncodeUTF8(...)
+-- let utf8str = ""
+-- for i in a:000
+-- let utf8str .= "\\x" . i
+-- endfor
+-- exe "norm i" . eval("\"".utf8str."\"")
+-- endfun