From 1c224673a7cf7465fe2846436b5b1b0deffbf7fa Mon Sep 17 00:00:00 2001 From: john wozniak Date: Tue, 26 Mar 2024 08:16:47 -0400 Subject: [PATCH] updated the colorscheme --- init.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index f9f572c4..e17619c5 100644 --- a/init.lua +++ b/init.lua @@ -554,6 +554,17 @@ require('lazy').setup({ -- Some languages (like typescript) have entire language plugins that can be useful: -- https://github.com/pmizio/typescript-tools.nvim -- + phpactor = { + cmd = { 'phpactor', 'language-server' }, + filetypes = { 'php' }, + root_dir = function(pattern) + local cwd = vim.loop.cwd() + local util = require 'lspconfig.util' + local root = util.root_pattern('composer.json', '.git', '.phpactor.json', '.phpactor.yml')(pattern) + -- prefer cwd if root is a descendant + return util.path.is_descendant(cwd, root) and cwd or root + end, + }, -- But for many setups, the LSP (`tsserver`) will work just fine tsserver = { settings = { @@ -766,13 +777,14 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme` - 'folke/tokyonight.nvim', + -- 'folke/tokyonight.nvim', + 'sainnhe/gruvbox-material', priority = 1000, -- make sure to load this before all the other start plugins init = function() -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'gruvbox-material' -- You can configure highlights by doing something like vim.cmd.hi 'Comment gui=none'