home: vim: use actual lua files

Since most of the settings are actually just lua in a VimL file.
This commit is contained in:
Bruno BELANYI 2023-05-07 13:10:36 +01:00
parent 9530864b10
commit c2d231d3f1
20 changed files with 0 additions and 41 deletions

View file

@ -1,4 +1,3 @@
lua << EOF
local wk = require("which-key")
local keys = {
@ -9,4 +8,3 @@ local keys = {
}
wk.register(keys, { prefix = "gc" })
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local wk = require("which-key")
local keys = {
@ -6,4 +5,3 @@ local keys = {
}
wk.register(keys, { prefix = "<leader>" })
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local wk = require("which-key")
local telescope_builtin = require("telescope.builtin")
@ -14,5 +13,3 @@ local keys = {
}
wk.register(keys, { prefix = "<leader>" })
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local wk = require("which-key")
local motions = {
@ -29,4 +28,3 @@ local objects = {
wk.register(motions, { mode = "n" })
wk.register(objects, { mode = "o" })
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local wk = require("which-key")
local keys = {
@ -125,4 +124,3 @@ local keys = {
}
wk.register(keys)
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local abbreviations = {
-- A few things that are hard to write in ASCII
["(R)"] = "©",
@ -8,4 +7,3 @@ local abbreviations = {
for text, result in pairs(abbreviations) do
vim.cmd.abbreviate(text, result)
end
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
-- Show lines numbers
vim.opt.number = true
@ -22,4 +21,3 @@ vim.api.nvim_create_autocmd({ "TermOpen" }, {
group = numbertoggle,
command = "setlocal nonu nornu",
})
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
-- Show completion menu in all cases, and don't select anything
vim.opt.completeopt = { "menu", "menuone", "noselect" }
@ -61,4 +60,3 @@ cmp.setup({
ghost_text = true,
},
})
EOF

View file

@ -1,8 +1,6 @@
lua << EOF
local dressing = require("dressing")
dressing.setup({
-- Use a relative prompt size
prefer_width = 0.4,
})
EOF

View file

@ -1,6 +1,4 @@
lua << EOF
-- Intercept all fold commands
vim.g.fastfold_fold_command_suffixes = {
"x", "X", "a", "A", "o", "O", "c", "C", "r", "R", "m", "M", "i", "n", "N",
}
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local gitsigns = require('gitsigns')
local wk = require("which-key")
@ -57,4 +56,3 @@ local visual = {
wk.register(keys, { buffer = bufnr })
wk.register(objects, { buffer = bufnr, mode = "o" })
wk.register(visual, { buffer = bufnr, mode = "x" })
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local lspconfig = require("lspconfig")
local lsp = require("ambroisie.lsp")
local utils = require("ambroisie.utils")
@ -44,4 +43,3 @@ if utils.is_executable("rust-analyzer") then
on_attach = lsp.on_attach,
})
end
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local lualine = require("lualine")
local utils = require("ambroisie.utils")
@ -60,4 +59,3 @@ lualine.setup({
"quickfix",
},
})
EOF

View file

@ -1,3 +1 @@
lua << EOF
require("luasnip.loaders.from_vscode").lazy_load()
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local null_ls = require("null-ls")
local lsp = require("ambroisie.lsp")
local utils = require("ambroisie.utils")
@ -122,4 +121,3 @@ null_ls.register({
condition = utils.is_executable_condition("shfmt"),
}),
})
EOF

View file

@ -1,5 +1,3 @@
lua << EOF
require("nvim-surround").setup({
-- No configuration at the moment
})
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local telescope = require("telescope")
telescope.setup({
@ -23,4 +22,3 @@ telescope.setup({
telescope.load_extension("fzf")
telescope.load_extension("lsp_handlers")
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local ts_config = require("nvim-treesitter.configs")
ts_config.setup({
highlight = {
@ -55,4 +54,3 @@ ts_config.setup({
},
},
})
EOF

View file

@ -1,4 +1,2 @@
lua << EOF
local wk = require("which-key")
wk.setup()
EOF

View file

@ -1,4 +1,3 @@
lua << EOF
local signtoggle = vim.api.nvim_create_augroup("signtoggle", { clear = true })
-- Only show sign column for the currently focused buffer
@ -19,4 +18,3 @@ vim.api.nvim_create_autocmd({ "TermOpen" }, {
group = signtoggle,
command = "setlocal signcolumn=no",
})
EOF