Updates to theme and removing more telescope things.
This commit is contained in:
parent
d5a3a49cb1
commit
ab66632f7f
27
init.lua
27
init.lua
@ -17,8 +17,9 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
require("lazy").setup("plugins")
|
require("lazy").setup("plugins")
|
||||||
|
|
||||||
-- SET NEOVIM THEME --
|
-- SET NEOVIM THEME --
|
||||||
vim.cmd "let g:everforest_background = 'hard'"
|
vim.o.termguicolors = true
|
||||||
vim.cmd.colorscheme('everforest')
|
-- vim.cmd "let g:everforest_background = 'hard'"
|
||||||
|
vim.cmd.colorscheme('nightfox')
|
||||||
|
|
||||||
-- XDEBUG --
|
-- XDEBUG --
|
||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
@ -74,14 +75,14 @@ end)
|
|||||||
local lspconfig = require 'lspconfig'
|
local lspconfig = require 'lspconfig'
|
||||||
local configs = require 'lspconfig.configs'
|
local configs = require 'lspconfig.configs'
|
||||||
if not configs.drupal then
|
if not configs.drupal then
|
||||||
configs.drupal = {
|
configs.drupal = {
|
||||||
default_config = {
|
default_config = {
|
||||||
cmd = {'drupal-lsp'},
|
cmd = {'drupal-lsp'},
|
||||||
filetypes = { 'php'},
|
filetypes = {'php', 'module', 'inc', 'theme'},
|
||||||
root_dir = function(fname)
|
root_dir = function(fname)
|
||||||
return lspconfig.util.root_pattern('composer.json', '.git')(fname)
|
return lspconfig.util.root_pattern('composer.json', '.git')(fname)
|
||||||
end
|
end
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
lspconfig.drupal.setup{autostart = true }
|
lspconfig.drupal.setup{ autostart = true }
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "4c2cdc69d69fe00c15ae8648f7e954d99e5de3ea" },
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "4c2cdc69d69fe00c15ae8648f7e954d99e5de3ea" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||||
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
|
||||||
|
"nightfox": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" },
|
"nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "881a69e25bd6658864fab47450025490b74be878" },
|
"nvim-dap-ui": { "branch": "master", "commit": "881a69e25bd6658864fab47450025490b74be878" },
|
||||||
|
|||||||
@ -9,30 +9,9 @@ return {
|
|||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
harpoon:setup()
|
harpoon:setup()
|
||||||
-- REQUIRED
|
-- REQUIRED
|
||||||
-- basic telescope configuration
|
|
||||||
local conf = require("telescope.config").values
|
|
||||||
local function toggle_telescope(harpoon_files)
|
|
||||||
local file_paths = {}
|
|
||||||
for _, item in ipairs(harpoon_files.items) do
|
|
||||||
table.insert(file_paths, item.value)
|
|
||||||
end
|
|
||||||
|
|
||||||
require("telescope.pickers").new({}, {
|
|
||||||
prompt_title = "Harpoon",
|
|
||||||
finder = require("telescope.finders").new_table({
|
|
||||||
results = file_paths,
|
|
||||||
}),
|
|
||||||
previewer = conf.file_previewer({}),
|
|
||||||
sorter = conf.generic_sorter({}),
|
|
||||||
}):find()
|
|
||||||
end
|
|
||||||
-- vim.keymap.set("n", "<C-h>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
|
|
||||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||||
vim.keymap.set("n", "<leader>c", function() harpoon:list():clear() end)
|
vim.keymap.set("n", "<leader>c", function() harpoon:list():clear() end)
|
||||||
vim.keymap.set("n", "<leader>r", function() harpoon:list():remove() end)
|
vim.keymap.set("n", "<leader>r", function() harpoon:list():remove() end)
|
||||||
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||||
-- Toggle previous & next buffers stored within Harpoon list
|
|
||||||
-- vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
|
||||||
-- vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
5
lua/plugins/nightfox.lua
Normal file
5
lua/plugins/nightfox.lua
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
"EdenEast/nightfox.nvim",
|
||||||
|
priority = 1000,
|
||||||
|
name = "nightfox",
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user