various revisions
This commit is contained in:
parent
97ccdab2a8
commit
8a03b4415d
4 changed files with 24 additions and 21 deletions
|
@ -1,24 +1,24 @@
|
||||||
return {
|
return {
|
||||||
keys = {
|
keys = {
|
||||||
["("] = { escape = false, close = true, pair = "()" },
|
["("] = { escape = false, close = true, pair = "()" },
|
||||||
["["] = { escape = false, close = true, pair = "[]" },
|
["["] = { escape = false, close = true, pair = "[]" },
|
||||||
["{"] = { escape = false, close = true, pair = "{}" },
|
["{"] = { escape = false, close = true, pair = "{}" },
|
||||||
|
|
||||||
[">"] = { escape = true, close = false, pair = "<>" },
|
[">"] = { escape = true, close = false, pair = "<>" },
|
||||||
[")"] = { escape = true, close = false, pair = "()" },
|
[")"] = { escape = true, close = false, pair = "()" },
|
||||||
["]"] = { escape = true, close = false, pair = "[]" },
|
["]"] = { escape = true, close = false, pair = "[]" },
|
||||||
["}"] = { escape = true, close = false, pair = "{}" },
|
["}"] = { escape = true, close = false, pair = "{}" },
|
||||||
|
|
||||||
['"'] = { escape = true, close = true, pair = '""' },
|
['"'] = { escape = true, close = true, pair = '""' },
|
||||||
["'"] = { escape = true, close = true, pair = "''" },
|
["'"] = { escape = true, close = true, pair = "''" },
|
||||||
["`"] = { escape = true, close = true, pair = "``" },
|
["`"] = { escape = true, close = true, pair = "``" },
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
disabled_filetypes = { "text" },
|
disabled_filetypes = { "text" },
|
||||||
disable_when_touch = false,
|
disable_when_touch = false,
|
||||||
touch_regex = "[%w(%[{]",
|
touch_regex = "[%w(%[{]",
|
||||||
pair_spaces = false,
|
pair_spaces = false,
|
||||||
auto_indent = true,
|
auto_indent = true,
|
||||||
disable_command_mode = false,
|
disable_command_mode = false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,9 @@ local function build()
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
nix = {
|
||||||
|
require("formatter.filetypes.nix").nixfmt,
|
||||||
|
},
|
||||||
["*"] = {
|
["*"] = {
|
||||||
require("formatter.filetypes.any").remove_trailing_whitespace,
|
require("formatter.filetypes.any").remove_trailing_whitespace,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
|
|
||||||
local function open_nvim_tree(data)
|
local function open_nvim_tree(data)
|
||||||
-- buffer is a real file on the disk
|
-- buffer is a real file on the disk
|
||||||
local real_file = vim.fn.filereadable(data.file) == 1
|
local real_file = vim.fn.filereadable(data.file) == 1
|
||||||
|
|
|
@ -98,6 +98,7 @@ require("lazy").setup({
|
||||||
"hrsh7th/cmp-cmdline",
|
"hrsh7th/cmp-cmdline",
|
||||||
"hrsh7th/cmp-path",
|
"hrsh7th/cmp-path",
|
||||||
"hrsh7th/cmp-nvim-lua",
|
"hrsh7th/cmp-nvim-lua",
|
||||||
|
"hrsh7th/cmp-vsnip",
|
||||||
},
|
},
|
||||||
init = function()
|
init = function()
|
||||||
require("nvim-cmp-config")
|
require("nvim-cmp-config")
|
||||||
|
|
Loading…
Add table
Reference in a new issue