Skip to content

Commit 11a6bc3

Browse files
changed smth
autocommand mappings installer
1 parent d6bc783 commit 11a6bc3

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

lua/core/autocommands.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ local function TermWrapper(command)
244244
else
245245
error(
246246
'ERROR! g:split_term_style is not a valid value (must be "horizontal" or "vertical" but is currently set to "'
247-
.. vim.g.split_term_style
248-
.. '")'
247+
.. vim.g.split_term_style
248+
.. '")'
249249
)
250250
end
251251

@@ -288,3 +288,13 @@ vim.api.nvim_create_autocmd("FileType", {
288288
pattern = "cpp",
289289
command = "nnoremap <leader>fr :CompileAndRunWithFile<CR>",
290290
})
291+
292+
augroup("json_conceal", {})
293+
-- Fix conceallevel for json files
294+
vim.api.nvim_create_autocmd({ "FileType" }, {
295+
group = "json_conceal",
296+
pattern = { "json", "jsonc", "json5" },
297+
callback = function()
298+
vim.opt_local.conceallevel = 0
299+
end,
300+
})

lua/core/mappings.lua

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
-- local nimap = require("core.utils").normal_insert()
1414

1515
local map = vim.keymap.set
16-
vim.api.nvim_set_keymap(
17-
"v",
18-
"<Leader>re",
19-
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>]],
20-
{ noremap = true, silent = true, expr = false }
21-
)
2216

2317
map("n", "<leader>ta", [[<cmd>put! =repeat(nr2char(10), v:count1)<cr>'[]])
2418
-----------------------------------

lua/modules/lsp/installer.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ local servers = {
22
"clangd",
33
"jsonls",
44
"ts_ls",
5-
"ltex",
6-
"texlab",
75
"lua_ls",
86
"jedi_language_server",
97
"pyright",

nvim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit d6bc783ffaaa453456e4159d5994af35e94a2f9b

0 commit comments

Comments
 (0)