mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
oops
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
-- functionality setup
|
||||
local set = vim.opt
|
||||
set.number=true
|
||||
@@ -19,11 +17,22 @@ require('packer').startup(function(use)
|
||||
use { 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } }
|
||||
use 'https://gitlab.com/__tpb/monokai-pro.nvim'
|
||||
use { "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig", }
|
||||
use {
|
||||
"adalessa/laravel.nvim",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
cmd = {"Artisan", "Composer"},
|
||||
config = function()
|
||||
require("laravel").setup()
|
||||
require("telescope").load_extension("laravel")
|
||||
end
|
||||
}
|
||||
--use { 'AlphaTechnolog/pywal.nvim', as = 'pywal' }
|
||||
use {
|
||||
"windwp/nvim-autopairs",
|
||||
config = function() require("nvim-autopairs").setup {} end
|
||||
}
|
||||
"windwp/nvim-autopairs",
|
||||
config = function() require("nvim-autopairs").setup {} end
|
||||
}
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
use 'hrsh7th/cmp-nvim-lua'
|
||||
use 'gpanders/nvim-parinfer'
|
||||
@@ -54,7 +63,7 @@ require("mason").setup {
|
||||
}
|
||||
}
|
||||
require("mason-lspconfig").setup {
|
||||
ensure_installed = { "sumneko_lua" },
|
||||
ensure_installed = { "lua_ls" },
|
||||
}
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
@@ -83,8 +92,20 @@ if not configs.intelephense then
|
||||
}
|
||||
end
|
||||
|
||||
-- for arduino lsp server
|
||||
local MY_FQBN = "arduino:avr:nano"
|
||||
lspconfig.arduino_language_server.setup {
|
||||
cmd = {
|
||||
"arduino-language-server",
|
||||
"-cli-config", "/path/to/arduino-cli.yaml",
|
||||
"-fqbn",
|
||||
MY_FQBN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
||||
local servers = { 'bashls', 'pyright', 'sumneko_lua', 'clangd','intelephense','phpactor'}
|
||||
local servers = { 'bashls', 'pyright', 'lua_ls', 'clangd','intelephense','phpactor' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
lspconfig[lsp].setup {
|
||||
capabilities = capabilities,
|
||||
|
||||
@@ -114,6 +114,15 @@ _G.packer_plugins = {
|
||||
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/friendly-snippets",
|
||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||
},
|
||||
["laravel.nvim"] = {
|
||||
commands = { "Artisan", "Composer" },
|
||||
config = { "\27LJ\2\nf\0\0\3\0\5\0\f6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\0029\0\4\0'\2\1\0B\0\2\1K\0\1\0\19load_extension\14telescope\nsetup\flaravel\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/home/tanveer/.local/share/nvim/site/pack/packer/opt/laravel.nvim",
|
||||
url = "https://github.com/adalessa/laravel.nvim"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/tanveer/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
@@ -189,6 +198,25 @@ time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
|
||||
-- Command lazy-loads
|
||||
time([[Defining lazy-load commands]], true)
|
||||
pcall(vim.api.nvim_create_user_command, 'Artisan', function(cmdargs)
|
||||
require('packer.load')({'laravel.nvim'}, { cmd = 'Artisan', l1 = cmdargs.line1, l2 = cmdargs.line2, bang = cmdargs.bang, args = cmdargs.args, mods = cmdargs.mods }, _G.packer_plugins)
|
||||
end,
|
||||
{nargs = '*', range = true, bang = true, complete = function()
|
||||
require('packer.load')({'laravel.nvim'}, {}, _G.packer_plugins)
|
||||
return vim.fn.getcompletion('Artisan ', 'cmdline')
|
||||
end})
|
||||
pcall(vim.api.nvim_create_user_command, 'Composer', function(cmdargs)
|
||||
require('packer.load')({'laravel.nvim'}, { cmd = 'Composer', l1 = cmdargs.line1, l2 = cmdargs.line2, bang = cmdargs.bang, args = cmdargs.args, mods = cmdargs.mods }, _G.packer_plugins)
|
||||
end,
|
||||
{nargs = '*', range = true, bang = true, complete = function()
|
||||
require('packer.load')({'laravel.nvim'}, {}, _G.packer_plugins)
|
||||
return vim.fn.getcompletion('Composer ', 'cmdline')
|
||||
end})
|
||||
time([[Defining lazy-load commands]], false)
|
||||
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
vim.cmd("doautocmd BufRead")
|
||||
|
||||
Reference in New Issue
Block a user