mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-24 20:31:25 -05:00
Use common style for lua require and setup calls
This commit is contained in:
parent
7b3909f45c
commit
01b4f6685d
4 changed files with 6 additions and 6 deletions
|
@ -1,2 +1,2 @@
|
||||||
require("ts_context_commentstring").setup {}
|
require("ts_context_commentstring").setup()
|
||||||
require("Comment").setup()
|
require("Comment").setup()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
if (vim.g.enablecompletion == 1) then
|
if (vim.g.enablecompletion == 1) then
|
||||||
local snippy = require("snippy")
|
local snippy = require("snippy")
|
||||||
local cmp = require"cmp"
|
local cmp = require("cmp")
|
||||||
|
|
||||||
local has_words_before = function()
|
local has_words_before = function()
|
||||||
unpack = unpack or table.unpack
|
unpack = unpack or table.unpack
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
require("nvim-surround").setup {
|
require("nvim-surround").setup({
|
||||||
move_cursor = false
|
move_cursor = false
|
||||||
}
|
})
|
||||||
|
|
|
@ -9,7 +9,7 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
|
|
||||||
vim.opt.runtimepath:append(parser_dir)
|
vim.opt.runtimepath:append(parser_dir)
|
||||||
|
|
||||||
require("nvim-treesitter.configs").setup {
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
|
@ -71,5 +71,5 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue