-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from BitInByte/lua-config-v2
Lua config v2
- Loading branch information
Showing
8 changed files
with
221 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,77 @@ | ||
return { | ||
{ | ||
"williamboman/mason.nvim", | ||
dependencies = { | ||
"williamboman/mason-lspconfig.nvim", | ||
-- "jayp0521/mason-null-ls.nvim", | ||
"jayp0521/mason-nvim-dap.nvim", | ||
}, | ||
build = ":MasonUpdate", -- :MasonUpdate updates registry contents | ||
config = function() | ||
-- Everything related to LSP need to have the following order | ||
-- Mason should be first and then lsp and lastly all of the others | ||
-- If we change this order, can lead to unexpected behaviour | ||
require("core.mason") -- lsp management | ||
-- Lsp needs to be loaded after mason in order for | ||
-- automatic_installation to work | ||
require("core.lsp") -- lsp engine | ||
require("core.cmp") -- completion | ||
require("core.dap") -- debuggers management | ||
require("core.null-ls") -- formaters management | ||
end, | ||
}, | ||
|
||
{ | ||
"neovim/nvim-lspconfig", | ||
dependencies = { | ||
{ "jose-elias-alvarez/typescript.nvim" }, | ||
{ "lervag/vimtex" }, | ||
{ "akinsho/flutter-tools.nvim", dependencies = { "nvim-lua/plenary.nvim" } }, | ||
}, | ||
-- config = function() | ||
-- -- require("core.lsp") -- lsp engine | ||
-- end, | ||
}, | ||
{ | ||
"neovim/nvim-lspconfig", | ||
dependencies = { | ||
{ "jose-elias-alvarez/typescript.nvim" }, | ||
{ "lervag/vimtex" }, | ||
{ "akinsho/flutter-tools.nvim", dependencies = { "nvim-lua/plenary.nvim" } }, | ||
}, | ||
-- config = function() | ||
-- -- require("core.lsp") -- lsp engine | ||
-- end, | ||
}, | ||
|
||
{ | ||
"williamboman/mason.nvim", | ||
dependencies = { | ||
"williamboman/mason-lspconfig.nvim", | ||
-- "jayp0521/mason-null-ls.nvim", | ||
"jayp0521/mason-nvim-dap.nvim", | ||
}, | ||
build = ":MasonUpdate", -- :MasonUpdate updates registry contents | ||
config = function() | ||
require("core.mason") -- lsp management | ||
-- Lsp needs to be loaded after mason in order for | ||
-- automatic_installation to work | ||
require("core.lsp") -- lsp engine | ||
-- require("core.null-ls") -- formaters management | ||
require("core.dap") -- debuggers management | ||
end, | ||
}, | ||
{ | ||
-- "jay-babu/mason-null-ls.nvim", | ||
"jayp0521/mason-null-ls.nvim", | ||
event = { "BufReadPre", "BufNewFile" }, | ||
dependencies = { | ||
"williamboman/mason.nvim", | ||
"jose-elias-alvarez/null-ls.nvim", | ||
-- "jose-elias-alvarez/null-ls.nvim", | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
-- config = function() | ||
-- require("your.null-ls.config") -- require your null-ls config here (example below) | ||
-- require("core.null-ls") -- formaters management | ||
-- end, | ||
}, | ||
|
||
{ | ||
-- "jay-babu/mason-null-ls.nvim", | ||
"jayp0521/mason-null-ls.nvim", | ||
event = { "BufReadPre", "BufNewFile" }, | ||
dependencies = { | ||
"williamboman/mason.nvim", | ||
"jose-elias-alvarez/null-ls.nvim", | ||
-- "jose-elias-alvarez/null-ls.nvim", | ||
"nvim-lua/plenary.nvim", | ||
}, | ||
config = function() | ||
-- require("your.null-ls.config") -- require your null-ls config here (example below) | ||
require("core.null-ls") -- formaters management | ||
end, | ||
}, | ||
{ | ||
"mfussenegger/nvim-dap", | ||
dependencies = { | ||
"rcarriga/nvim-dap-ui", | ||
}, | ||
}, | ||
|
||
{ "mfussenegger/nvim-dap", dependencies = { | ||
"rcarriga/nvim-dap-ui", | ||
} }, | ||
|
||
-- LSP Sources && Modules | ||
{ | ||
"hrsh7th/nvim-cmp", | ||
config = function() | ||
require("core.cmp") -- completion | ||
end, | ||
dependencies = { | ||
"hrsh7th/cmp-nvim-lsp", | ||
"hrsh7th/cmp-buffer", | ||
"hrsh7th/cmp-path", | ||
"hrsh7th/cmp-cmdline", | ||
"hrsh7th/cmp-calc", | ||
"hrsh7th/cmp-nvim-lua", | ||
"hrsh7th/cmp-nvim-lsp-signature-help", | ||
"onsails/lspkind-nvim", | ||
}, | ||
}, | ||
-- use({ "tzachar/cmp-tabnine", build = "./install.sh", dependencies = "hrsh7th/nvim-cmp" }) | ||
-- LSP Sources && Modules | ||
{ | ||
"hrsh7th/nvim-cmp", | ||
-- config = function() | ||
-- require("core.cmp") -- completion | ||
-- end, | ||
dependencies = { | ||
"hrsh7th/cmp-nvim-lsp", | ||
"hrsh7th/cmp-buffer", | ||
"hrsh7th/cmp-path", | ||
"hrsh7th/cmp-cmdline", | ||
"hrsh7th/cmp-calc", | ||
"hrsh7th/cmp-nvim-lua", | ||
"hrsh7th/cmp-nvim-lsp-signature-help", | ||
"onsails/lspkind-nvim", | ||
}, | ||
}, | ||
-- use({ "tzachar/cmp-tabnine", build = "./install.sh", dependencies = "hrsh7th/nvim-cmp" }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
return { | ||
{ | ||
"L3MON4D3/LuaSnip", | ||
dependencies = { | ||
|
||
"saadparwaiz1/cmp_luasnip", | ||
"rafamadriz/friendly-snippets", | ||
}, | ||
config = function() | ||
local luasnip = require("luasnip") | ||
-- luasnip.filetype_extend("javascript", { "javascriptreact" }) | ||
luasnip.filetype_extend("typescript", { "typescriptreact" }) | ||
-- luasnip.filetype_extend("php", { "html" }) | ||
end, | ||
}, | ||
{ | ||
"L3MON4D3/LuaSnip", | ||
-- follow latest release. | ||
version = "<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release) | ||
-- install jsregexp (optional!). | ||
build = "make install_jsregexp", | ||
dependencies = { | ||
"saadparwaiz1/cmp_luasnip", | ||
"rafamadriz/friendly-snippets", | ||
}, | ||
config = function() | ||
local luasnip = require("luasnip") | ||
require("luasnip.loaders.from_vscode").lazy_load() | ||
-- luasnip.filetype_extend("javascript", { "javascriptreact" }) | ||
luasnip.filetype_extend("typescript", { "typescriptreact" }) | ||
luasnip.filetype_extend("php", { "html" }) | ||
end, | ||
}, | ||
} |
Oops, something went wrong.